[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
> 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.
You are subscribed to the progsoc mailing list. To unsubscribe, send a
message containing "unsubscribe" to email@example.com.
If you are having trouble, ask firstname.lastname@example.org for help.