Results 1 to 3 of 3
Thread: Need Swing Layout Advice
- 03-08-2011, 12:26 AM #1
Member
- Join Date
- Feb 2011
- Posts
- 10
- Rep Power
- 0
Need Swing Layout Advice
I'm creating a Java app that is going to be used as a survey tool. I'm creating the user interface based on XML data. I'm thinking each question will have it's own panel and then I'd like to stack the panels on top of each other. Ideally I'd like scroll bar so I can keep the window size constant.
Is there a way to do this in Swing and what LayoutManager would work best for this situation
Thanks,
Rocketz
-
You can swap JPanels with a CardLayout which sounds most intuitive to me. Otherwise you seem to be describing a GridLayout. Realize though that most GUI's that are more than the most simplistic will do best with nested JPanels, each using its own layout.
- 03-08-2011, 12:46 AM #3
- Join Date
- Jan 2011
- Location
- Richmond, Virginia
- Posts
- 3,069
- Blog Entries
- 3
- Rep Power
- 7
Similar Threads
-
Swing Html Layout
By Kiruthigadhandapani in forum AWT / SwingReplies: 1Last Post: 05-03-2011, 03:39 PM -
Package layout problems trying to make a new Swing component.
By TheShagg in forum AWT / SwingReplies: 13Last Post: 12-06-2010, 05:57 AM -
New to Swing, need some advice on programming style
By Gorgro in forum AWT / SwingReplies: 1Last Post: 10-31-2010, 07:41 PM -
Swing layout is done wrong
By Onra in forum New To JavaReplies: 5Last Post: 10-08-2010, 04:36 AM -
Add Swing Layout.jar
By anilkumar_vist in forum New To JavaReplies: 0Last Post: 10-02-2010, 04:42 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks