Re: GridBagLayout



Alex.From.Ohio.Java@xxxxxxxxx wrote:
On May 7, 1:29 pm, Knute Johnson <nos...@xxxxxxxxxxxxxxxxxxxxxxx>
wrote:
Brian wrote:
Hi
I'm trying to create a GUI using GridBagLayout.
I have two separate JPanels where i need to place items in the same
place in each panel.
Is it possible to use at GridBagLayout with a fixed / predifined no.
of colums - and all of them with the same width?
/Brian
Maybe. GBL is very dependent on the preferred sizes of the components.
So if they were all the same size or you make them all the same size,
then yes probably. Also with GBL you can set the weights and fill to
allow the components to expand to the available space in the layout.

I wrote a GBL simulator if you want to try setting up a layout,

http://rabbitbrush.frazmtn.com/gridbagtester.html

If you try it, I would appreciate any feedback.

--

Knute Johnson
email s/nospam/linux/

--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDemon.com<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access

I tried it - really awesome.

The only suggestion is to create function to export created layout in
Java source format. It will really help developers to visually crate
layout and then use it.

Nice job!

Alex.
http://www.myjavaserver.com/~alexfromohio/

That's a good idea, I'll think about that.

--

Knute Johnson
email s/nospam/linux/

--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDemon.com<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access
.



Relevant Pages

  • Re: [JPanel child of JPanel]how to get a rectangle object with the dimensions of the JPanel object
    ... For the time being the layout of my mainJPanel is Absolute where I have positioned my childJPanel with xpos, ypos, height and width but I do not think that here it has no direct impact as the methods listed above shoud work for any layouts? ... public class test8 extends Frame { ... Posted via NewsDemon.com - Premium Uncensored Newsgroup Service ... Unlimited Access, Anonymous Accounts, Uncensored Broadband Access ...
    (comp.lang.java.help)
  • Re: GridBagLayout
    ... Is it possible to use at GridBagLayout with a fixed / predifined no. ... Also with GBL you can set the weights and fill to allow the components to expand to the available space in the layout. ... Posted via NewsDemon.com - Premium Uncensored Newsgroup Service ... Unlimited Access, Anonymous Accounts, Uncensored Broadband Access ...
    (comp.lang.java.programmer)
  • Re: Preferred Size, Minimum Size, Size
    ... I *have* to use setMinimumSize to prevent this from happening?/ ...  I just tried it with my GridBagLayout ... Posted via NewsDemon.com - Premium Uncensored Newsgroup Service ... Unlimited Access, Anonymous Accounts, Uncensored Broadband Access ...
    (comp.lang.java.programmer)
  • Re: Hiding a JTexfield from the GUI
    ... I'd like to hide a JTextField from the GUI so that the layout doesn't ... "see it" anymore? ... Posted via NewsDemon.com - Premium Uncensored Newsgroup Service ... Unlimited Access, Anonymous Accounts, Uncensored Broadband Access ...
    (comp.lang.java.gui)
  • Re: Aqualunging?
    ... Posted via NewsDemon.com - Premium Uncensored Newsgroup Service ... Unlimited Access, Anonymous Accounts, Uncensored Broadband Access ... Country, I suppose. ... Actually I play in a few different venues. ...
    (rec.boats)