java interface layout

Asked

Viewed 641 times

4

I am developing a program for a friend and I am using the Java language for this. I am using the Netbeans IDE that has the feature of building the user interface (UI) by drag n' drop, using Swing.

I have a lot of difficulty to build UI, I am very good in the back end, but I am very weak in the front end.

By my friend’s specifications I set up the UI that way:

inserir a descrição da imagem aqui

Only I used an Absolute Layout, and when I try to maximize it looks terrible.

I wanted to know first how I can develop for a Full Screen.

And what are the layouts indicated to make this screen if it is not asking too much.

  • Already tried the free design?

  • as well as free desgin?

  • If I’m not mistaken, there in the Netbeans prototyper has a layout option, I think it’s "free design", it comes as default.

1 answer

3


In Netbeans I recommend the Grouplayout. The IDE has excellent support and the layout is quite flexible (allowing anchor elements, set policies for vertical and horizontal growth, etc). You’ll have a very similar experience with IDES development from Borland and Microsoft.

Keep in mind however that the code generated to position the elements with GroupLayout will be very difficult to edit at hand. If you want more control I would suggest the Mig Layout which is simple enough to use manually, yet powerful enough for most situations.

Finally, avoid the Gridbaglayout. That is why: Totally Gridbag.

  • I’ll try Anthony, thanks for the tip!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.