Java Eclipse GUI Tutorial 16 # Get value from JTable to set into JTextField

Поділитися
Вставка
  • Опубліковано 19 вер 2024
  • Donate to ProgrammingKnowledge -- (www.paypal.com...)
    Show data from JTable in Jtextfield
    How can I make a JTable cell do different things on single-click
    netbeans java tutorial
    Values to be displayed in JTextfield when Clicked on JTable Cells.
    Click on JTable Model Updates JTextfield
    how can i get value from JTable and set it to textfield.
    Show data from JTable in Jtextfield
    Sharing document between JTable Cells and JTextFields
    get jtextfield from jtable
    iit Learn java netbeans
    java tutorial netbeans
    Get value from JTable and set it to jtextfield in Eclipse Java and Sqlite

КОМЕНТАРІ • 24

  • @markbilly1788
    @markbilly1788 8 років тому +5

    I've watched a lot of your videos. now I done half of my assignment. thank you for your great tutorial.

  • @robl39
    @robl39 10 років тому

    These tutorials are saving me. Liking, subscribing and donating.

  • @thehihatchi6408
    @thehihatchi6408 9 років тому +1

    Nice vids dude.. You can explain real well i could even follow the videos without sound!!

  • @sainikhila1193
    @sainikhila1193 4 роки тому

    Bro you made my day

  • @ogunodabas9332
    @ogunodabas9332 6 років тому

    Hi, I found the problem for those who can not find the Design Components table section. Do table mauseClick. Do not do it from the scrollpane!

  • @dmytrii_t
    @dmytrii_t 8 років тому

    Really useful content, thanks man

  • @yadnyeshrane7448
    @yadnyeshrane7448 4 роки тому

    my code is right but i dont now when i click one the particular row it gives null pointer exception

  • @ProgrammingKnowledge
    @ProgrammingKnowledge  10 років тому

    • @alexlacanilao2176
      @alexlacanilao2176 8 років тому

      how to auto increment using java eclipse in your tutorial?

  • @yahoo0593
    @yahoo0593 9 років тому

    this ";" fucken character here cost me hrs to debug my shit fuck xD THANKS FOR THE GREAT TUTORIAL

  • @sitihadijahbintimohamad4781
    @sitihadijahbintimohamad4781 8 років тому

    how if i want to Get image (blob) from JTable to set into JTextField. because i have a problem to fetch image from my sqlite databse according this video. thanks

  • @enesard
    @enesard 6 років тому

    Thanks a lot.

  • @hanin6151
    @hanin6151 7 років тому

    (when i do ( tablename.getselectedrow
    it doesn't show how can i solve this problem i need help

  • @krichemeriem8781
    @krichemeriem8781 7 років тому

    thank you please do a tutorial of foreign key (sqlite) pleaseeeee

  • @rjgracelladoc9552
    @rjgracelladoc9552 6 років тому

    so sad my while(rs.next()) returns false.. how can I fix this?

    • @ogunodabas9332
      @ogunodabas9332 6 років тому

      Hi, do not click the mouse in the scroll zone. Make a mouse click over the table.the problem is fixed :)

  • @shishiraithal308
    @shishiraithal308 4 роки тому

    can anyone pls tell the function of getModel()

  • @marcovyski
    @marcovyski 8 років тому

    Hi... My name's Marco, I'm from Brazil and I learning JAVA with yours videos (so Tks a lot). I'm trying to make this code works but always return this error (Values not bound to statement)
    try{
    String query="Select * from EmployeeInfo where name=?";
    PreparedStatement pst=connection.prepareStatement(query);
    ResultSet rs=pst.executeQuery();
    pst.setString(1,(String)comboBoxName.getSelectedItem());
    while (rs.next())
    {
    textEID.setText(rs.getString("EID"));///NR.
    textName.setText(rs.getString("Name"));//////Marco
    textSurName.setText(rs.getString("SurName"));///Aurélio
    textUserName.setText(rs.getString("Name"));//41
    textAge.setText(rs.getString("Age"));///////41
    }
    } catch (Exception e7){
    e7.printStackTrace();
    }
    }
    Can you Help me... PLEASE

    • @dmytrii_t
      @dmytrii_t 8 років тому

      Привет/Hi. You have an errors in the code.
      Correctly code:
      try{
      String query="Select * from EmployeeInfo where name=?";
      PreparedStatement pst=connection.prepareStatement(query);
      pst.setString(1,(String)comboBoxName.getSelectedItem());
      ResultSet rs=pst.executeQuery();
      while (rs.next())
      {
      textEID.setText(rs.getString("EID"));///NR.
      textName.setText(rs.getString("Name"));//////Marco
      textSurName.setText(rs.getString("SurName"));///Aurélio
      textUserName.setText(rs.getString("Name"));//41
      textAge.setText(rs.getString("Age"));///////41
      }
      pst.close();
      } catch (Exception e7){
      e7.printStackTrace();
      }
      }

    • @dmytrii_t
      @dmytrii_t 8 років тому

      @marcovyski If you have a guestions, write me)) i from Ukraine. And I also programmer. Do you have SKYPE?

  • @mohdezaz2290
    @mohdezaz2290 3 роки тому

    I code in eclipse and run in intellij

  • @ogunodabas9332
    @ogunodabas9332 6 років тому

    Can someone help me if I can?

  • @haydarbey323
    @haydarbey323 5 років тому

    hello source code link pls

  • @baderkhaneoussama
    @baderkhaneoussama 9 років тому

    getselectedrow return for me -1