wood burning stoves*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes JTable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "JTable" Watch "JTable" New topic
Author

JTable

shubangini Dave
Greenhorn

Joined: Mar 06, 2001
Posts: 2
My GUI runs like this.I've 2 main panels on a frame.Frame is set to BorderLayout and the main panels are added to the frame.
first panel set above on the frame is set to gridLayout.
The first panel has 4 subpanel having comboboxes ant textfield.
Problem 1) when the GUI is activated I get a blank screen and then when I resize the frame using window maximize(-)
I get the proper Layout comboboxes and textfield.
how to rectify this?
Problem 2) How to add a JTable to the second mainPanel?
tried many things but didn't work.
Do anyone faced with a similar problem address my query?
Thanks in advance.
Karthik Guru
Ranch Hand

Joined: Mar 06, 2001
Posts: 1209

add the Jtable to a JScrollPane and then add the ScrollPane to the frame specifiyng BorderLayout.CENTER as the constraint. It worked for me , infact i have a very similar layout structure.
Okay intially try using pack() and then maximize. Hope it works.
I decided on a random setSize dimension.
karthik.

Originally posted by shubangini Dave:
My GUI runs like this.I've 2 main panels on a frame.Frame is set to BorderLayout and the main panels are added to the frame.
first panel set above on the frame is set to gridLayout.
The first panel has 4 subpanel having comboboxes ant textfield.
Problem 1) when the GUI is activated I get a blank screen and then when I resize the frame using window maximize(-)
I get the proper Layout comboboxes and textfield.
how to rectify this?
Problem 2) How to add a JTable to the second mainPanel?
tried many things but didn't work.
Do anyone faced with a similar problem address my query?
Thanks in advance.

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: JTable
 
Similar Threads
Render,set editor to JTable Cells
JTable in JFrame
problem with connecting to a SQLServer database
jtable
JTable Problem...