aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Resizable swing elements Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Resizable swing elements" Watch "Resizable swing elements" New topic
Author

Resizable swing elements

Prasath Nadarajah
Greenhorn

Joined: Sep 18, 2010
Posts: 18
Hi
i want a User interface for my project just like netbeans where i need three main resizable swing elements
In that main three parts i want to add more elements but the elements will remain in the group (Just like netbeans)
what element i can use for that??
Kevin Workman
Ranch Hand

Joined: Sep 28, 2010
Posts: 151
Using Swing Components
Laying Out Components
Read through those and let us know what you think. And just as an "fyi", those are the first two links listed when googling "java swing".
pete stein
Bartender

Joined: Feb 23, 2007
Posts: 1561
Kevin's links will help you, of that I've no doubt. If after reading them you're still stuck, please come on back and show us what you've tried, describe to us what is not working and how it's not working, provide pictures if necessary, and let's see if we can help you get this thing off the ground.

Best of luck!
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4523
    
    5

Adn don't forget that you can build an application on the NetBeans platform. To learn how to do that, read the help file / search the net / ask on a NetBeans forum.


luck, db
There are no new questions, but there may be new answers.
Prasath Nadarajah
Greenhorn

Joined: Sep 18, 2010
Posts: 18
Hi
i,m using border layout for my UI.
how can set the property such that resizing windows is allowed
somrthing like this
http://www.bramstein.com/projects/jlayout/borderlayout-resize-ghost.html
Kevin Workman
Ranch Hand

Joined: Sep 28, 2010
Posts: 151
Nadarajah Prasath wrote:Hi
i,m using border layout for my UI.
how can set the property such that resizing windows is allowed
somrthing like this
http://www.bramstein.com/projects/jlayout/borderlayout-resize-ghost.html


If you had read through the first link I posted, you would have found JSplitPane.
Prasath Nadarajah
Greenhorn

Joined: Sep 18, 2010
Posts: 18
Ok
There are two sections when we use splitpanes left and right
if i want a three ( or even multi section splitpanes ) is there any better way way to achieve that??
I nested two splitpanes
Also if i use a layout (borcer layout) i want to set the three section of the splitpanes in three positions (center , east , west)
how can i set that??
Prasath Nadarajah
Greenhorn

Joined: Sep 18, 2010
Posts: 18
also when i resize the windows its getting messy
i want to to set such that when i resize the windows all three parts must and its componenets must resize themselves
Stephan van Hulst
Bartender

Joined: Sep 20, 2010
Posts: 3401
    
    9
If you want three panes side by side, take one splitpane and nest a second one in it.
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4523
    
    5

Nadarajah Prasath wrote:Ok
if i want a three ( or even multi section splitpanes ) is there any better way way to achieve that??

I already told you, but you chose to ignore me. Both NetBeans and Eclipse provide a RCP on which you can build your application.
Prasath Nadarajah
Greenhorn

Joined: Sep 18, 2010
Posts: 18
Hi daryl!!
i,m creating a weblog client to write posts in offline mode
i use netbeans.
I do that by right click on project, create new jform, drag and drop swing elements in the palette and code for that.
Is that a wrong approach ??
When you mentioned about using i thought you were refering to this

What is the difference in using RCP?
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4523
    
    5

Net search: NetBeans Eclipse RCP
 
jQuery in Action, 2nd edition
 
subject: Resizable swing elements
 
Similar Threads
What is the latest/best way to do UIs in Java?
Immodifable List
Eclipse
How to create resizable swing components as in Netbeans Swings (GUI), drag and drop?
Collections Question