0

I am trying to design a medical prescription. My requirement is to design a table where user can insert data into it; just like user enters data into text fields.

Basically i need a table template, where user can insert data.

I have gone through JTable documentation and found that we can insert some static data in it. Please let me know if we can insert dynamic data into it or is there any way to create a table template to enter data.

3
  • It's been long I built a swing interface, but the way to do this is to use the Model object of the JTable, then invalidate the interface (JFrame) after each insert or delete. Commented Jul 22, 2016 at 7:31
  • Welcome to stack overflow :-) Please look at How to Ask and how to create a minimal reproducible example. This will help to get useful answers. Commented Jul 22, 2016 at 7:33
  • you should use property editable in jtable. In Netbeen Jtable property provide this property and we can also add textfield in our column( cell ). Commented Jul 22, 2016 at 7:35

1 Answer 1

1

You can find an explanation of the most important basics how to work with JTable in the Java Tutorial.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.