Search:

Type: Posts; User: e93

Search: Search took 0.56 seconds.

  1. Why is the value of the selected row stays the same in textfield?

    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");...
  2. Replies
    2
    Views
    3

    Re: Not seeing the result in the databse

    I fixed it.
    Turned out that the error was from easyphp my admin
    i did it with workbench and it worked
  3. Replies
    2
    Views
    3

    Not seeing the result in the databse

    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...
  4. get values from database and set them in text fields

    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...
  5. Replies
    0
    Views
    1

    define foreign key in netbeans

    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
  6. Replies
    5
    Views
    6

    Re: close original frame

    I want the original frame to close automatically after the second frame pops up
  7. Replies
    5
    Views
    6

    Re: close original frame

    I meant Close the original frame
  8. Replies
    5
    Views
    6

    close 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...
  9. Re: Copy Selected Value from JComboBox to jTextField

    strings
  10. Copy Selected Value from JComboBox to jTextField

    If I have a ComboBox and I want to copy the selected value to textfield. How can I do it?
  11. Thread: graph in java

    by e93
    Replies
    3
    Views
    85

    Re: graph in java

    in a frame I need the curve to start in the middle
  12. Thread: graph in java

    by e93
    Replies
    3
    Views
    85

    graph in java

    If I have a function for example y=x^2
    How can I draw the curve?
  13. Thread: javadoc creation

    by e93
    Replies
    2
    Views
    128

    javadoc creation

    How can I create a javadoc?
    Should I write comments for every class methods and interface?
  14. Replies
    5
    Views
    141

    Re: File Writer not writing no error in code

    I'm editing the code without the space it's not saving it, i'm saving
  15. Replies
    5
    Views
    141

    Re: File Writer not writing no error in code

    My bad there isn't a space
    The code is not working. not creating the result file
  16. Replies
    5
    Views
    141

    File Writer not writing no error in code

    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...
  17. Replies
    6
    Views
    208

    Re: copy values from arraylist to another java

    in the second arraylist shouldn't it be get(i) not i+1 ?
    and for int i =1?
  18. Thread: code explenation

    by e93
    Replies
    1
    Views
    112

    code explenation

    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())
    ...
  19. Replies
    6
    Views
    208

    copy values from arraylist to another java

    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 ();...
  20. Replies
    6
    Views
    208

    copy values from arraylist to another

    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.
  21. Replies
    1
    Views
    196

    read a text file containing multiple lines

    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...
  22. Thread: Translation Game

    by e93
    Replies
    7
    Views
    304

    Re: Translation Game

    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...
  23. Thread: Translation Game

    by e93
    Replies
    7
    Views
    304

    Re: Translation Game

    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...
  24. Thread: Translation Game

    by e93
    Replies
    7
    Views
    304

    Translation Game

    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...
Results 1 to 24 of 24