> From: Kontorotsui <[EMAIL PROTECTED]>
> About the 3 rows of buttons, 2 rows with 3 buttons, the last row with 2
> buttons, I probably failed to explain exactly what was the problem.
>
> I am well aware (even too much :) ) of the GridBagLayout, which I used
> everywhere. But, if I'm not mi
On Thu, 9 Sep 1999, Kontorotsui wrote:
> BG color from the container. Ok... then tell me why by default the background
> color is not set to null but to a SystemColor constant! I don't find any logic
> in this, the default should be the most generic choice (null), not the most
> specific (a fixed
> When writing gui apps, most of the time i have to override most of the
> components anyway, except for generic items such as buttons. But this is
> the only way i see to implement color themes, because it works when you
> add/remove components dynamically. The recursive setColor won't work in
>
Hello again,
first of all thanks for your answer, this is not strictly java-linux
related so I do a general reply to everybody.
About the 3 rows of buttons, 2 rows with 3 buttons, the last row with 2
buttons, I probably failed to explain exactly what was the problem.
I am well aware (e
> I think a better solution is to override getForeground / getBackground
> of the component to return something related to it's parents?
So now you have to override all the gui components just to override one
method? I would think that would be a lot of work for very little gain,
not to mention
> Cc: Java-Linux List <[EMAIL PROTECTED]>
> Date: Thursday, September 09, 1999 11:37 AM
> Subject: Re: Sometimes easy things are hard/impossible in Java
>
> >Kontorotsui wrote:
> >>
> >> After extensive experience with Java GUI, mostly by using Swing, I
;[EMAIL PROTECTED]>
Cc: Java-Linux List <[EMAIL PROTECTED]>
Date: Thursday, September 09, 1999 11:37 AM
Subject: Re: Sometimes easy things are hard/impossible in Java
>Kontorotsui wrote:
>>
>> After extensive experience with Java GUI, mostly by using Swing, I wonder
why
&g
Kontorotsui wrote:
>
> After extensive experience with Java GUI, mostly by using Swing, I wonder why
> there are hard tasks which can be accomplished very easily and easy ones which
> look almost impossible.
>
> Here are two examples.
>
> I have a grid with 3 buttons in the first row and 2 butt
Kontorotsui wrote:
>
> After extensive experience with Java GUI, mostly by using Swing, I wonder why
> there are hard tasks which can be accomplished very easily and easy ones which
> look almost impossible.
>
> Here are two examples.
>
> I have a grid with 3 buttons in the first row and 2 butt
I think the solution to your layout is to use GridBagLayout. If I understand your
description, you will need a 10 column / 3 row layout. The first two rows occupy
columns 1&2, 5&6, 9&10. Row 3 buttons occupy columns 2-4, 7-9. However, the
multi-panel layout is not at all unreasonable. All this ass
You can accomplish that using the GridBag layout manager, but that is quite
hard to use. A much easier layout manager to use is the GraphPaper layout
manager, which comes with the java tutorial.
I agree with you about the setting color for all the components of the panel.
There should be some def
11 matches
Mail list logo