Article View: comp.lang.java.programmer
Article #207Re: help with applet layout!
From: Matt
Date: Thu, 22 Jul 1999 00:00
Date: Thu, 22 Jul 1999 00:00
25 lines
2220 bytes
2220 bytes
As far as getting some buttons on one line, and others on another. I would use a GridLayout instead of a FlowLayout. To get the buttons to look right, add them to a Panel first, then add the Panel to the layout. Try the same thing as far as getting the stuff to appear in the applet. Hope this helps, Matt Luis Hernandez wrote: > I've been programming in Java for two years now, but it was mostly in > unix command line. Now I'm moving into applets, and I'm having trouble > with laying out my applets. Any resources that would be helpful for an > applet programmer for layout? > Specific questions: > With FlowLayout, is there any type of command to make the layout process > go to the next line and continue layoung out the additional components? > For example, if I wanted a button on one line, and the next button on > the next line, what is the easiest way to make flow layout to do it? > Also, if I create a new layout manager, how do I set it so that the > applet takes on that layout manager? I tried > setLayourManager(LayoutManager); but it didn't do anything, all the > components added to that manager didn't display. > > Thanks for any help, > Luis
Technical Details
Message-ID:
<3796D9E1.4394F16D@holly.colostate.edu>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<37968D90.C39CE214@unix.amherst.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10568c,2b96696819c6d6b2 X-Google-Attributes: gid10568c,public X-Google-Thread: 11648c,2b96696819c6d6b2 X-Google-Attributes: gid11648c,public X-Google-Thread: 10fd6d,2b96696819c6d6b2 X-Google-Attributes: gid10fd6d,public X-Google-Thread: 10d6db,2b96696819c6d6b2 X-Google-Attributes: gid10d6db,public X-Google-Thread: 10a146,2b96696819c6d6b2 X-Google-Attributes: gid10a146,public From: Matt <matth@holly.colostate.edu> Subject: Re: help with applet layout! Date: 1999/07/22 Message-ID: <3796D9E1.4394F16D@holly.colostate.edu> X-Deja-AN: 504045327 Content-Transfer-Encoding: 7bit References: <37968D90.C39CE214@unix.amherst.edu> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Trace: PM01NEWS 932658225 166.34.135.243 (Thu, 22 Jul 1999 15:43:45 GMT) MIME-Version: 1.0 NNTP-Posting-Date: Thu, 22 Jul 1999 15:43:45 GMT Newsgroups: comp.lang.java.programmer,de.comp.lang.java,fj.comp.lang.java,aus.computers.java,comp.lang.java.gui