I have an application which is okay butI am feeling problem with setting its top level panel jPanel1 which is added in North of the frame.
Now jPanel1 is the main JPanel which has a gridlayout of 4 rows. it contains 3 Jpanels namely jpanTop1, jpanTop2 and jpanTop3, and a new JPanel() as the fourth element. It is added to JScrollPane topScroll, that in turn is added to Jframe Center and finally jPanel2 which holds buttons in the South. Please note that if you don't added resultPanel to jpanTop3, the display is okay. I have yet to added functionality to limit ResultSet to 10 or specified no of records.
What I want is to shape upper (North) of the JFrame so as to beautify it...
The classes are GridTable.java and ResultsModel.java. You may download these files and help me with this.
It also had some other problems which I overcome regarding SQL and Model which I will discuss later...
Maki Jav [ January 29, 2006: Message edited by: Maki Jav ]
It is not as small as you wished but fully commented so as to guide you fully. The problem lies between line nos. 102-149 ie in the top third row where I was trying to add a functionality to restrict records.