Re: setLocation problem

From: Scott Vetter (svetter_at_ameritech.net)
Date: 11/26/03


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



Relevant Pages

  • Re: setLocation problem
    ... you should use a layout. ... > Thomas Weidenfeller wrote: ... >> manager, and the layout manager decides about the location, that is his ... Forget about the setLocation thing. ...
    (comp.lang.java.gui)
  • Re: setLocation problem with swing!!!
    ... I am doing some kind of home work using swing. ... Unfortunately I am having problems with setLocation() function. ... I know it is a bad idea to use setPosition and I know I should use Layout manager instead of doing that. ... Created a JPanel, ...
    (comp.lang.java.programmer)
  • Re: setLocation problem with swing!!!
    ... I am doing some kind of home work using swing. ... setPosition and I know I should use Layout manager instead of doing that. ... Still I would like to do it with setLocation. ... Created a JPanel, ...
    (comp.lang.java.programmer)
  • Re: setLocation problem with swing!!!
    ... I am doing some kind of home work using swing. ... Unfortunately I am having problems with setLocation() function. ... I know it is a bad idea to use setPosition and I know I should use Layout manager instead of doing that. ... Created a JPanel, ...
    (comp.lang.java.programmer)
  • Re: setLocation problem
    ... > with the setLocation statement in that nomatter what settings I use, ... Don't mess with setLocation at all. ... manager, and the layout manager decides about the location, that is his ...
    (comp.lang.java.gui)