User Profile

Collapse

Profile Sidebar

Collapse
cblank
cblank
Last Activity: Dec 8 '07, 03:05 AM
Joined: Nov 12 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • cblank
    replied to Inventory Program Part 6
    in Java
    I know this is a lot to ask for in a short notice, but I have worked really hard until now and I just wish my teacher could he me its the last part of the program and I just want to do good in my class. Thanks, If someone could just tell me which part I need to look at and might need to change would help.

    Thanks,
    See more | Go to post

    Leave a comment:


  • cblank
    replied to Inventory Program Part 6
    in Java
    Last One

    Code:
    import java.io.InputStreamReader;
    import java.io.BufferedReader;
    import java.io.IOException;
    import javax.swing.JFrame;
    
    //begin InvenotoryMain Class
    
     class InventoryMain
    {
         public static void main( String[] args){
    			
    		double restockFee = 0.05;	 // restock fee
    						
    	//array Information
    					
    		PC p = new
    ...
    See more | Go to post

    Leave a comment:


  • cblank
    replied to Inventory Program Part 6
    in Java
    More Code

    Code:
    try
    		{
    			lnr = new LineNumberReader(new BufferedReader(new FileReader(FileName)));
    
    			while ((line = lnr.readLine()) != null)
    			{
    				lno = lnr.getLineNumber();
    				
    
    				String s1[];
    				if (item == lno)
    				{
    					s1 = new String[lno];
    					s1[0] = line;
    					st = new StringTokenizer(s1[0]);
    ...
    See more | Go to post

    Leave a comment:


  • cblank
    replied to Inventory Program Part 6
    in Java
    More Code

    Code:
    for (int i = 0; i < cmdlen; i++)
    			{
    				cmdbutton[i] = new JButton(cmdlabels[i]);
    				cmdbutton[i].addActionListener(this);
    				gbconstraint.gridx = i;
    				pan.add(cmdbutton[i], gbconstraint);
    			}
    
    			titledborder = BorderFactory.createTitledBorder("Main Navigation");
    			pan.setBorder(titledborder);
    
    			// add panel to container
    ...
    See more | Go to post

    Leave a comment:


  • cblank
    replied to Inventory Program Part 6
    in Java
    More Code...

    Code:
    // Being PC Class
    
    class PC extends Inventory implements ActionListener,Serializable
    { 
    
    	static String manufacture[] = new String[100];						// Subclass to add to Workstation - Manufacture 
    	static String Workstation_Type[] = new String[100];					// Subclass to add to Workstation - Workstation Type
    	static double restockingFee[] = new double[100];					//
    ...
    See more | Go to post

    Leave a comment:


  • cblank
    started a topic Inventory Program Part 6
    in Java

    Inventory Program Part 6

    I'm having some trouble with my inventory program. Its due tom and my teacher is not wanting to help. He keeps giving me a soluction that is not related to my code. I have everything working except the Delete and Modify Button. The Search button works but it only searchs the new .dat file or what is set in the array. Not sure what is going on there. But if I can get my delete and modify button to work that will be good.

    Code.......
    See more | Go to post

  • cblank
    replied to How to design an Inventory Program GUI
    in Java
    The gui program will be built using Swing. I have tried to program using the JAVA gui before, but I am not having any luck. I really dont know were to start. I have done ok up until now. Right now I just need The application to use a GUI to display the product information of one product, including the item number, the name of the product, the number of units in stock, the price of each unit, and the value of the inventory of that product.The GUI...
    See more | Go to post

    Leave a comment:


  • cblank
    started a topic How to design an Inventory Program GUI
    in Java

    How to design an Inventory Program GUI

    I need some help if someone could help me. I know everyone is asking for help in java. But for some reason I'm the same as everyone else when it comes to programming in java. I have an inventory program that I have built so far with no problem. But I cannot figure out how to turn it into a GUI application.
    This is what I'm trying to get it to do.

    Modify the Inventory Program to use a GUI. The GUI should display the information...
    See more | Go to post
No activity results to display
Show More
Working...