Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Resizable swing elements

 
Prasath Nadarajah
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 151
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5125
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Prasath Nadarajah
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 151
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 5590
55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you want three panes side by side, take one splitpane and nest a second one in it.
 
Darryl Burke
Bartender
Posts: 5125
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5125
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Net search: NetBeans Eclipse RCP
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic