🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.java.programmer
Article #208

Re: help with applet layout!

#208
From: KhAiReEl
Date: Sat, 24 Jul 1999 00:00
29 lines
2254 bytes
I have had that problem too. But then I decided to do away with the whole
Layout stuffs and just be creative and calculative on my own.

I used the following commands on paint() :
1) component.setLocation(int x1, int y1)
2) component.reshape(int x1, int y1, int width, int height), or
    component.setBounds(int x1, int y1, int width, int height).


Luis Hernandez <lmhernan@unix.amherst.edu> wrote in message
news:37968D90.C39CE214@unix.amherst.edu...
> 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: <7nbshb$i3n$1@enyo.uwa.edu.au>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <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: 10fd6d,2b96696819c6d6b2
X-Google-Attributes: gid10fd6d,public
X-Google-Thread: 10d6db,2b96696819c6d6b2
X-Google-Attributes: gid10d6db,public
X-Google-Thread: 11648c,2b96696819c6d6b2
X-Google-Attributes: gid11648c,public
X-Google-Thread: 10a146,2b96696819c6d6b2
X-Google-Attributes: gid10a146,public
From: "KhAiReEl" <khaireel@tartarus.uwa.edu.au>
Subject: Re: help with applet layout!
Date: 1999/07/24
Message-ID: <7nbshb$i3n$1@enyo.uwa.edu.au>
X-Deja-AN: 505107319
References: <37968D90.C39CE214@unix.amherst.edu>
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211
Organization: The University of Western Australia
X-MSMail-Priority: Normal
Newsgroups: comp.lang.java.programmer,de.comp.lang.java,fj.comp.lang.java,aus.computers.java,comp.lang.java.gui