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
Type: Posts; User: SeanyC
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
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(...
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
...
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
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...
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\Sean\Documents\NetBeansProjects\RestaurantBillCalculator\src>javac Rest...
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
Although that may be helpful, i got it working, cheers anyways
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...
forget it, got someone else helping me
Its alright, i have it working now, thanks
This is what i have done:
private double calculateSubtotal()
{
double total = 0;
String[] items = billItems;
try
{
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...
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
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?
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
{
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...
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
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...
3139
This is what its like when i compile, when i hit the x on the JFrame, BUild Successful appears in my output area :/
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.
---...
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...
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...
:) I aware ItemEvent.selected does not exist, i should have spelt it correctly sorry and also thanks, ill give it a go.
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...