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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Manage Layouts in java" Watch "Manage Layouts in java" New topic
Author

Manage Layouts in java

dushantha Rathnayake
Ranch Hand

Joined: Feb 27, 2010
Posts: 103
Hi,

I am using eclipse. Using this I can develop swing interfaces (using UI editor). In netbeans also I can developed the interfaces. but the problem is in eclipse I have to set the layout. In netbeans do not need to set the layout. The advantage in netbeans is we can design the interface freely and after execute if we click the maximize button then full interface maximized with internal panels,buttons,text boxes, etc.. How can I do this in eclipse? I want to design freely and I want flexible execution in run time. How can I do this? are there any layout that I can use? or any other solution?

Thank you.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 9990
    
    7

Search the forums. There are lots of topics where not using UI builders is encouraged. You will also find the reasoning for that.
For layouts, http://download.oracle.com/javase/tutorial/uiswing/layout/using.html


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
dushantha Rathnayake
Ranch Hand

Joined: Feb 27, 2010
Posts: 103
Maneesh Godbole wrote:Search the forums. There are lots of topics where not using UI builders is encouraged. You will also find the reasoning for that.
For layouts, http://download.oracle.com/javase/tutorial/uiswing/layout/using.html


Hi

Actually I know about some layouts. But they are not free (freely draw the interfaces). I mean in Layout null state we can develop (drag and draw) interfaces very easy. If we use box layout, GridLayout,etc.. we have to develop our GUI according to their structure. I want to know are their a method or a plugging for eclipse to develop interfaces as in netbeans. I mean the tool or the plugging have to manage the layouts. we don't need to set them.

Thank you.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 9990
    
    7

dushantha Rathnayake wrote: I want to know are their a method or a plugging for eclipse to develop interfaces as in netbeans. I mean the tool or the plugging have to manage the layouts. we don't need to set them.

You mean to say you are willing to invest time searching for a plugin, and then learning how the plugin works and how to integrate with your code? And you want to invest all this time and energy because you dont want to write something simple such as myPanel.setLayout(new FlowLayout(FlowLayout.CENTER));
dushantha Rathnayake
Ranch Hand

Joined: Feb 27, 2010
Posts: 103
Maneesh Godbole wrote: myPanel.setLayout(new FlowLayout(FlowLayout.CENTER));


Hi,

Is this simple and easy method for very complex and spiral model development ???

Thank you.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 9990
    
    7

What's spiral model development? I am not sure I understand.
Anand Shrivastava
Ranch Hand

Joined: Jul 22, 2007
Posts: 125
So far as UI is concerned, even I found netbeans better than eclipse.


Anand Shrivastava
SCJA
Mario Bud
Greenhorn

Joined: Sep 09, 2011
Posts: 3
in my honest opinion using a gui builder is not really worth it. they can only help you with the "positioning" which is by far the easiest part of constructing a gui anyway. of course i gave it a shot, but i found it better (at least for me) to make the positioning myself. it might take longer but produces better readable/structured code which you really understand.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Manage Layouts in java
 
Similar Threads
Using NetBeans GUI Editor with Code Not Created in NetBeans
Critical issue- Running Two Jvm's
Insider's Guide to Mixing Swing and JavaFX
Netbeans - How to set up look & feel
Can i convert a interface to web servcice ?