Re: Answers (RE: Sometimes easy things are hard/impossible in Java)

1999-09-09 Thread Daniel Barclay
> 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

Re: Answers (RE: Sometimes easy things are hard/impossible in Java)

1999-09-09 Thread alx
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

Re: Sometimes easy things are hard/impossible in Java

1999-09-09 Thread Alex M.
> 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 >

Answers (RE: Sometimes easy things are hard/impossible in Java)

1999-09-09 Thread Kontorotsui
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

Re: Sometimes easy things are hard/impossible in Java

1999-09-09 Thread Alex M.
> 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

Re: Sometimes easy things are hard/impossible in Java

1999-09-09 Thread Nathan Meyers
> 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

Re: Sometimes easy things are hard/impossible in Java

1999-09-09 Thread Ted Neward
;[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

Re: Sometimes easy things are hard/impossible in Java

1999-09-09 Thread Nathan Meyers
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

Re: Sometimes easy things are hard/impossible in Java

1999-09-09 Thread Dick Balaska
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

Re: Sometimes easy things are hard/impossible in Java

1999-09-09 Thread Michael Christiansen
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

Re: Sometimes easy things are hard/impossible in Java

1999-09-09 Thread Justin Lawler
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