User Profile

Collapse

Profile Sidebar

Collapse
nexcompac
nexcompac
Last Activity: Aug 20 '07, 03:13 AM
Joined: May 25 '07
Location: AZ
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • nexcompac
    replied to Adding a GUI
    in Java
    Ok, so I removed the line to work backwards to move forward. Now, it complies but the GUI does not show up. When I run the program it goes to the comand prompt.

    Code:
    import java.util.*;
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    import javax.swing.JFrame; // provides basic window features
    import javax.swing.JLabel; // displays text and images
    import javax.swing.SwingConstants;
    ...
    See more | Go to post

    Leave a comment:


  • nexcompac
    replied to Adding a GUI
    in Java
    ok, changed that line of code to read what you sugested and here are the error codes.

    Code:
    C:\Users\Brian\Desktop\Java Inventory program\Inventory.java:35: reference to List is ambiguous, both class java.awt.List in java.awt and class java.util.List in java.util match
    	private List nwProduct;
    	        ^
    1 error
    
    Tool completed with exit code 1

    What is ment by where is my...
    See more | Go to post

    Leave a comment:


  • nexcompac
    replied to Adding a GUI
    in Java
    I tried both ways with the capitols. Still got the same errors.
    See more | Go to post

    Leave a comment:


  • nexcompac
    started a topic Adding a GUI
    in Java

    Adding a GUI

    Ok, I am working on an inventory program and this is where I am at thus far. I seem to be getting two errors that I can not figure out. I will post the errors at the end of the code.


    Code:
    import java.util.*;
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    
    
    
    public class Inventory extends JFrame// Main class
    {
    
    
    	private JLabel prodNameLabel;
    ...
    See more | Go to post

  • nexcompac
    replied to Adding a Restock Fee
    in Java
    Ok, so what is the best method in proceeding to add the GUI to this?...
    See more | Go to post

    Leave a comment:


  • nexcompac
    replied to Adding a Restock Fee
    in Java
    Now I can not take all the credit as my teacher has done most of the work.

    Code:
    import java.util.*;
    
    public class Company extends product implements Comparable
    {
        private String developer;
        //double total;
    
        /** Creates a new instance of Company */
        public Company()
        {
            super();
            String developer ="";
            //total
    ...
    See more | Go to post

    Leave a comment:


  • nexcompac
    replied to Adding a Restock Fee
    in Java
    Heres what someone pointed out to me....
    See more | Go to post

    Leave a comment:


  • nexcompac
    replied to Adding a Restock Fee
    in Java
    Product.java:61 cannot find symbol
    symbol : method value<>
    location: class product
    return value<> * 0.05;

    Product.java:65 cannot find symbol
    symbol : method value<>
    location: class product
    return value<> * 0.05;

    Product.java:82 cannot find symbol
    symbol : method value<>
    location: class product
    return value<> * 0.05;...
    See more | Go to post

    Leave a comment:


  • nexcompac
    replied to Adding a Restock Fee
    in Java
    ok, so now I am going in circles.....
    Back to three errors
    See more | Go to post

    Leave a comment:


  • nexcompac
    replied to Adding a Restock Fee
    in Java
    Ok, so now I am getting just one error.
    Again just typing out manually.
    product.java:8: ';' expected
    ^
    1 error

    Here is what I changed

    Code:
    class product implements Comparable 
    {
    private String productName; // class variable that stores the item name
    private int itemNumber; // class variable that stores the item number
    private double unitProduct; // class variable
    ...
    See more | Go to post

    Leave a comment:


  • nexcompac
    replied to Adding a Restock Fee
    in Java
    Ok, so should this be defined in the current class which it resides in or should it be designed in the public main class?...
    See more | Go to post

    Leave a comment:


  • nexcompac
    replied to Adding a Restock Fee
    in Java
    You googled Lysol? Funny....
    For some reason I am having troubles with TextPad and the way it complies on my home computer. My laptop works just fine, but I can not use it at work. My work computer does not have permission to install the JDK files and its not worth "tweeking" it at the moment. So, I need to wait until I get home unless you have a way of doing it without requireing the Admin password.

    About the...
    See more | Go to post

    Leave a comment:


  • nexcompac
    replied to Adding a Restock Fee
    in Java
    In reguards to the fishy smell, cant help you with that. Try lysol. About the error. I have been trying to compile from the bin folder using the comand prompt. Since I am unaware how to copy and paste from the CMD, I just typed it out.

    I am very new to this and my work computer will not let me install the jdk on it without admin access. I could install it if I REALLY needed to, but it is not worth getting in trouble over. =)...
    See more | Go to post

    Leave a comment:


  • nexcompac
    replied to Adding a Restock Fee
    in Java
    I am not sure that was the issue. If I take out these lines:

    ***************
    public double RestockFee() // Method to set the Restocking fee
    {
    return value() * 0.05;
    } // end
    ***************
    public double setRestockFee() // Method to set the Restocking fee
    {
    return value() * 0.05;
    }
    public double getRestockFee()...
    See more | Go to post

    Leave a comment:


  • nexcompac
    replied to Adding a Restock Fee
    in Java
    Yep your right.... That's what happens when your tired.

    here it is:
    Code:
    import java.util.*; // program uses any class available
    
    class product implements Comparable 
    {
       private String productName; // class variable that stores the item name
       private int itemNumber; // class variable that stores the item number
       private double unitProduct; // class variable that stores
    ...
    See more | Go to post

    Leave a comment:


  • nexcompac
    replied to Adding a Restock Fee
    in Java
    I have been compiling within the bin folders at the cmd prompt.

    Product.java:61 cannot find symbol
    symbol : method value<>
    location: class product
    return value<> * 0.05;

    Product.java:65 cannot find symbol
    symbol : method value<>
    location: class product
    return value<> * 0.05;

    Product.java:82 cannot find symbol
    symbol...
    See more | Go to post

    Leave a comment:


  • nexcompac
    started a topic Adding a Restock Fee
    in Java

    Adding a Restock Fee

    I am getting I believe three erros in this code. I had it running perfect untill I added all the restock fee items.

    This is what I have so far:

    Code:
    import java.util.*; // program uses class Scanner
    
    public class Inventory 
    {    
        // main method begins execution of Java application
       public static void main( String args[]) 
       {    
          product[] myProduct =
    ...
    See more | Go to post
    Last edited by nexcompac; Jul 30 '07, 04:27 AM. Reason: Spelling errors

  • nexcompac
    replied to Inventory program
    in Java
    What is the best way to keep track and fix my brackets?
    See more | Go to post

    Leave a comment:


  • nexcompac
    started a topic Inventory program
    in Java

    Inventory program

    Ok, I posted a similar post but now need to jump back into it. Here is what I have been able to clean up. I am using textpad and jbuilder.

    Still getting used to the whole java world and I am trying to compile a program using TextPad. Here is what I have so far.

    Code:
    /*
     * Main.java
     *
     * Created on July 19, 2007, 5:54 PM
     *
     * To change this template, choose Tools | Template Manager
    ...
    See more | Go to post

  • nexcompac
    replied to New to the forum
    in Java
    Ok,
    Error: (217) invalid method declaratioin; return type required
    Error: (217) illegal start of type
    Error: (220) illegal start of type
    Error: (223) illegal start of type
    Error: (226) illegal start of type
    Error: (233) '}' expected...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...