try {
System.out.println("1");
int row = jTable4.getSelectedRow();
System.out.println("row");
String str = (jTable4.getModel().getValueAt(row, 0).toString());
System.out.println("model");...
Type: Posts; User: e93
try {
System.out.println("1");
int row = jTable4.getSelectedRow();
System.out.println("row");
String str = (jTable4.getModel().getValueAt(row, 0).toString());
System.out.println("model");...
I fixed it.
Turned out that the error was from easyphp my admin
i did it with workbench and it worked
Here's my code for a button that add values into an empty database.
The program skips system.out.println("1");
And the database is still empty. I can't figure out why
private void...
I have a button in which I need to do the following:
After I click it It reads the values given in a jtextfield1
and in the other jtextfields I need it to settext in them from the database
I mean...
I've created a database using easyphp.
I've defined the primary and foreign keys in the tables,but I don't how to define those foreign key in netbeans.
I should use alter table but i don't konw how
I want the original frame to close automatically after the second frame pops up
I meant Close the original frame
I have a frame (frame1) containing a button linking to another frame (frame2).
when I click the button I want the first frame to close
I've tried frame.setVisible(false);
It didn't work any...
If I have a ComboBox and I want to copy the selected value to textfield. How can I do it?
in a frame I need the curve to start in the middle
If I have a function for example y=x^2
How can I draw the curve?
How can I create a javadoc?
Should I write comments for every class methods and interface?
I'm editing the code without the space it's not saving it, i'm saving
My bad there isn't a space
The code is not working. not creating the result file
I checked the path multiple times, the file where it reads from is in the same location
("C:\\Users\\Toshiba\\Desktop\\read.txt");
but can't write in a new text file
public static void...
in the second arraylist shouldn't it be get(i) not i+1 ?
and for int i =1?
Can somebody explain to me the following codes plz :/
Date myDate = new Date();
String a = myDate.toString()
bw.write("Given number : "+ f)
for(i=0;i<=score;i++)
if( br.ready())
...
How can I copy values from a ArrayList to another. if I have a ArrayList containing 10 values and I want to copy the 2nd 4rd values and so on.
Here's my code:
ArrayList tab = new ArrayList ();...
Please I need help :/
How can I copy values from a ArrayList to another.
if I have a ArrayList containing 10 values and I want to copy the 2nd 4rd values and so on.
So in this file I have like 20 lines. each line has 2 word seperated by ;
This is what I did so far
FileInputStreamReader f = new FileInputStreamReader(C://Desktop/test.txt);
InputStreamReader...
I want to use the loop for the number of words given by the person.
The words I need to link are in a text file
if I put like 50 words in this text file and the person gave me 100 words, I have to...
I did the name the number of words. but I'm finding a difficulty in class Question and Interface IParser. I'm confused. I know that i need a ArrayList but how to link them both (The class and...
Hi everybody I'm new to java programming and our teacher gave us the following project.
I don't know where nor how to start. I appreciate your help.
The project is :
The project is to develop...