Tabel1.setModel(new DefaultTableModel(x,y));
JScrollPane pane = new JScrollPane(Tabel1);
When I run the program the scrollpane appears bigger than the table. How can I make the scrollpane layout the same as the table?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
how i can make scrollpane layout the same of table??if your
JTablecontains only a few rowsTabel1.setModel(new DefaultTableModel(x,y));use Java Naming Conventions correctly, then not
Tabel1buttabel1