Good Lord !!! Which JDK do you use ? 1.4 ? We are at 1.7 but I recommend 1.6
replace
add(bigPanel);
by
getContentPane().add(bigPanel);
31 Replies - 955 Views - Last Post: 25 September 2012 - 06:13 PM
#16
Re: How can i transfer the data to other txtfield when click submit
Posted 23 September 2012 - 07:37 PM
#17
Re: How can i transfer the data to other txtfield when click submit
Posted 23 September 2012 - 07:53 PM
Waaaaaa...
Im an old version T_T...
Sir can you give a new version of java.
Im an old version T_T...
Sir can you give a new version of java.
#18
Re: How can i transfer the data to other txtfield when click submit
Posted 23 September 2012 - 07:55 PM
Google java jdk download
but
getContentPane().add(bigPanel);
should work
but
getContentPane().add(bigPanel);
should work
#19
Re: How can i transfer the data to other txtfield when click submit
Posted 23 September 2012 - 08:00 PM
It WORK SIR.....THANK YOUUUUUUUUUUUUUUUUUUUUUUUUUU...
sir.How can I change the textfields in column employees into Int cause
I will use the min max button there?
Thank you....SO MUCH.... SIR
sir.How can I change the textfields in column employees into Int cause
I will use the min max button there?
Thank you....SO MUCH.... SIR
#20
Re: How can i transfer the data to other txtfield when click submit
Posted 23 September 2012 - 08:07 PM
JTextField and JLabel are to represent data (input or output) have nothing to do with actual data value. That is a whole other concept.
#21
Re: How can i transfer the data to other txtfield when click submit
Posted 23 September 2012 - 08:13 PM
ahh. There is no need to convert it into integer right?
thankkkk..you again sir.
thankkkk..you again sir.
#22
Re: How can i transfer the data to other txtfield when click submit
Posted 24 September 2012 - 05:47 AM
Sir can you do the Max Button that if I click it, the Employee ID,Name and the max sales
will be shown in a messageBOX?
will be shown in a messageBOX?
#23
Re: How can i transfer the data to other txtfield when click submit
Posted 24 September 2012 - 05:52 AM
You will have to do a for() loop for each of your row
Use Double.parseDouble() to translate from string to double what is contain in the label of the last column text
Remember the highest one (and its index) to display the name in your Box
Use Double.parseDouble() to translate from string to double what is contain in the label of the last column text
Remember the highest one (and its index) to display the name in your Box
#24
Re: How can i transfer the data to other txtfield when click submit
Posted 24 September 2012 - 06:36 AM
Sorry for bothering you sir can you give me at least example of it
cause I really don't know what to do..
and my teacher don't teach well about java and I'm only self studying.
Sorry sir.
cause I really don't know what to do..
and my teacher don't teach well about java and I'm only self studying.
Sorry sir.
#25
Re: How can i transfer the data to other txtfield when click submit
Posted 25 September 2012 - 06:53 AM
is this correct?
int x = Double.parseDouble(labels);
int x = Double.parseDouble(labels);
#26
Re: How can i transfer the data to other txtfield when click submit
Posted 25 September 2012 - 07:35 AM
What type of variable is labels? The Double.parseDouble() method accepts a String, not a Component or an array.
Also, try running the code yourself. You'll figure out if it's correct much faster.
Also, try running the code yourself. You'll figure out if it's correct much faster.
#27
Re: How can i transfer the data to other txtfield when click submit
Posted 25 September 2012 - 08:29 AM
Im not moving forward
#28
Re: How can i transfer the data to other txtfield when click submit
Posted 25 September 2012 - 09:07 AM
I don't mean to be rude, but stop being helpless. Make an effort. Write code. If it fails, look at the errors. If there are logical bugs, make an effort at debugging. We're here to help you, but we aren't simply going to hold your hand.
#29
Re: How can i transfer the data to other txtfield when click submit
Posted 25 September 2012 - 10:18 AM
How can i change the labels[row][2] into double?
I've try it many times but I always got it wrong.
Sorry for out of knowledge of java program
me...!!!
I've try it many times but I always got it wrong.
Sorry for out of knowledge of java program
#30
Re: How can i transfer the data to other txtfield when click submit
Posted 25 September 2012 - 11:08 AM
for(int row = 0; row < 5; ++row)
double x = Double.parseDouble( labels[row][2]);
double x = Double.parseDouble( labels[row][2]);
|
|

New Topic/Question
This topic is locked




MultiQuote






|