Search:

Type: Posts; User: SeanyC

Page 1 of 2 1 2

Search: Search took 0.07 seconds.

  1. Replies
    13
    Views
    1,536

    Re: Command Line and two arguments

    On it thanks

    --- Update ---



    Hey can you you help me out with this one below, its the only one im stuck on and its doing my head in?


    // set up beverageJComboBox
  2. Replies
    13
    Views
    1,536

    Re: Command Line and two arguments

    CAn you help me out with it? the first one i have my combobox called:


    beverageJComboBox = new javax.swing.JComboBox();


    Next one is:


    private void beverageJComboBoxItemStateChanged(...
  3. Replies
    13
    Views
    1,536

    Re: Command Line and two arguments

    Okay i got the list of what is wrong, and i get these warnings below

    RestaurantBillCalculator.java:308: warning: [unchecked] unchecked call to addIte
    m(E) as a member of the raw type JComboBox
    ...
  4. Replies
    13
    Views
    1,536

    Re: Command Line and two arguments

    There is no errors, this is what i don't understand! the program runs fine in Netbeans but when i run it at the command line, it asks to recompile with -Xlint
  5. Replies
    13
    Views
    1,536

    Re: Command Line and two arguments

    So how do i write that in the command line? the way you have it exactly or what?

    --- Update ---

    If this is just a warning, why wont my code compile in the command line? i have 7 warnings but no...
  6. Replies
    13
    Views
    1,536

    Re: Command Line and two arguments

    Microsoft Windows [Version 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation. All rights reserved.

    C:\Users\Sean\Documents\NetBeansProjects\RestaurantBillCalculator\src>javac Rest...
  7. Replies
    13
    Views
    1,536

    Command Line and two arguments

    Simply put, i have to run my program from the command line

    My code is:



    public static void main( String[] args )
    {

    // check command-line arguments
  8. Replies
    2
    Views
    1,009

    [SOLVED] Re: Enable/Disable JPanel and its ComboBoxes

    Although that may be helpful, i got it working, cheers anyways
  9. Replies
    2
    Views
    1,009

    [SOLVED] Enable/Disable JPanel and its ComboBoxes

    Hi, Ill explain what im stuck on,
    I have a class that extends JFrame, within that, i have set up JPanel where within that i have four JComboBoxes, I am to enable this JPanel and its JComboBoxes at...
  10. Re: Why is my JFrame not showing components such as JComboBoxes

    forget it, got someone else helping me
  11. Re: Query database to retrieve a column for all menu Items in an ArrayList

    Its alright, i have it working now, thanks
  12. Re: Query database to retrieve a column for all menu Items in an ArrayList

    This is what i have done:


    private double calculateSubtotal()
    {
    double total = 0;
    String[] items = billItems;

    try
    {
  13. Re: Why is my JFrame not showing components such as JComboBoxes

    No i haven't, problem is i keep find examples with No argument constructors like this:
    code not executing (Beginning Java forum at JavaRanch)

    My constructor has two-arguments: public...
  14. Re: Why is my JFrame not showing components such as JComboBoxes

    Can i just add to your post here and say that there was supposed to be two // in front of anonymous inner class, typo problems sorry
  15. Re: Query database to retrieve a column for all menu Items in an ArrayList

    This is the rest of the question: This method should then calculate the total price of all the items in the ArrayList and return this value as a double.

    Probably doesn't help?
  16. Query database to retrieve a column for all menu Items in an ArrayList

    Having trouble figuring out the code in order to find the price column for all items in a ArrayList

    so far i have:


    private double calculateSubtotal()
    {

    try
    {
  17. Re: Why is my JFrame not showing components such as JComboBoxes

    Good practice in a sense that when I am positioning components
    such as Jcomboboxes i can position stuff with setBounds

    Prob any other time I would not use it and my lecturer would
    prob say...
  18. Re: Why is my JFrame not showing components such as JComboBoxes

    I just don't have the time I'm afraid, Hence I'm asking all of this, any
    Other day of the week I would listen and would never use null layout
    I've asked my lecturer now to figure out this problem
  19. Re: Why is my JFrame not showing components such as JComboBoxes

    Unfortunately i have to use Null Layout, lecturer wants it for good practice purposes

    --- Update ---



    Well i wish i had the time, this is a project due in soon, i cant start with something...
  20. Re: Why is my JFrame not showing components such as JComboBoxes

    3139

    This is what its like when i compile, when i hit the x on the JFrame, BUild Successful appears in my output area :/
  21. Re: Why is my JFrame not showing components such as JComboBoxes

    You see this is what i am not sure about, have i actually added anything to the frame, when I compile this, a window does appear but nothing in it, I'm not sure where i have went wrong here.

    ---...
  22. Why is my JFrame not showing components such as JComboBoxes

    HI, I would really appreciate it if someone could look through my code and find out (what i can't) why and where my code is going wrong, Problem is my JFrame is not showing anything, point me in the...
  23. Re: Insert code that adds the String representation of the selected item to the ArrayList billItems.

    After messing around with it a lot i finally got it working, its fairly similar to what you said except i need it to be associated with the ArrayList billItems

    code is:


    private void...
  24. Re: Insert code that adds the String representation of the selected item to the ArrayList billItems.

    :) I aware ItemEvent.selected does not exist, i should have spelt it correctly sorry and also thanks, ill give it a go.
  25. Re: Insert code that adds the String representation of the selected item to the ArrayList billItems.

    That's what i am asking for, how do i do the LISTENER inside that method? all i want is an example of how to do the ItemEvent.selected within beverageJComboBoxItemStateCHanged method. I am not not...
Results 1 to 25 of 33
Page 1 of 2 1 2