Re: setLocation problem
From: Scott Vetter (svetter_at_ameritech.net)
Date: 11/26/03
- Next message: ak: "Re: Need some help with animation"
- Previous message: John Wheeler: "Re: Custom ComboBox Editor in JTable focus issue"
- In reply to: Thomas Weidenfeller: "Re: setLocation problem"
- Next in thread: Andrew Thompson: "Re: setLocation problem"
- Reply: Andrew Thompson: "Re: setLocation problem"
- Reply: Xavier Tarrago: "Re: setLocation problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 26 Nov 2003 18:40:05 GMT
Thomas:
Thank you for the response. Agreed there are probably better
methods to do the things that need to be done, but for right now I have
to start using the simple stuff to understand.
Scott
Thomas Weidenfeller wrote:
> Scott Vetter <svetter@ameritech.net> writes:
>
>> I'm a newbie to Java and am trying to figure out a small problem
>>with the setLocation statement in that nomatter what settings I use, it
>>text always appears at the same location.
>
>
> Don't mess with setLocation at all. Fortunately, you use a layout
> manager, and the layout manager decides about the location, that is his
> job. Forget about the setLocation thing. Instead, you time is best
> spent by learning the layout managers. You could e.g. start here:
>
> http://java.sun.com/docs/books/tutorial/uiswing/mini/layout.html
>
> and here:
>
> http://java.sun.com/docs/books/tutorial/uiswing/layout/index.html
>
> /Thomas
- Next message: ak: "Re: Need some help with animation"
- Previous message: John Wheeler: "Re: Custom ComboBox Editor in JTable focus issue"
- In reply to: Thomas Weidenfeller: "Re: setLocation problem"
- Next in thread: Andrew Thompson: "Re: setLocation problem"
- Reply: Andrew Thompson: "Re: setLocation problem"
- Reply: Xavier Tarrago: "Re: setLocation problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|