[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ProgSoc] JFC/Swing basic java question



>
>
> 	Try using a specific LayoutManager. The simplest is probably
>BorderLayout(). I cannot recall the exaxt syntax but it should be
>something like:
>	this.getContentPane().addLayoutManager(new BorderLayout());
>	this.getContentPane().add(checks, BorderLayout.NORTH);
>	this.getContentPane().add(scrolly, BorderLayout.CENTRE);
>

That did the trick. Although I had to use setLayout not 
addLayoutManager, and CENTRE is spelt CENTER in the free world ;)

>
>	The other suggestion is go through the java doc about the
>content pane and scrollpane.
>
Documentation? bah.

chow

vik




-
You are subscribed to the progsoc mailing list. To unsubscribe, send a
message containing "unsubscribe" to progsoc-request@nospam.progsoc.uts.edu.au.
If you are having trouble, ask owner-progsoc@nospam.progsoc.uts.edu.au for help.