VE Bean JLabel generates another code as JCheckBox [message #49343] |
Mon, 12 July 2004 13:02 |
Eclipse User |
|
|
|
Originally posted by: khw.warnkoenig.de
Hi all outside,
I try a little with VE and it loocks verry nice. But one Problem I has. If I
do the example from the document "Build GUIs with the Eclipse Visual Editor"
then I get another code for the JLabel Bean. There is no variable generated
like the JCheckBox. Instead the code and the variable is generated inside
the private member getJContendPane(); Then the next step, change the text
from this label
|
|
|
Re: VE Bean JLabel generates another code as JCheckBox [message #49373 is a reply to message #49343] |
Mon, 12 July 2004 15:25 |
Eclipse User |
|
|
|
Originally posted by: richkulp.NO.SPAM.us.ibm.com
That was an improvement we tried to make. Over 90% of the time JLabel's
don't need their text to be changed once created, so we just made them
local. However, some people do need to change the label later, but we
had no way to "promote" the JLabel to be a variable. So just last week
we changed it so that JLabels won't have a get method, but they will
have a variable that can be accessed to change. This has not got into a
build yet.
--
Thanks, Rich Kulp
|
|
|
|
|
Re: VE Bean JLabel generates another code as JCheckBox [message #49759 is a reply to message #49729] |
Tue, 13 July 2004 15:43 |
Eclipse User |
|
|
|
Originally posted by: richkulp.NO.SPAM.us.ibm.com
Because that is extra overhead for a label when most people don't even
need the variable. Very few people actually even need it as a separate
variable.
> Hi Rich!
>
> If you will provide an accessible variable for JLabels, why not simply
> provide a get method uniformly like for other components?
>
> Thanks.
>
> --
> Youjun Luo
> Sulzer GmbH
> Frankfurter Ring 162
> 80807 Munich
> Germany
>
>
--
Thanks, Rich Kulp
|
|
|
Re: VE Bean JLabel generates another code as JCheckBox [message #594943 is a reply to message #49343] |
Mon, 12 July 2004 15:25 |
Eclipse User |
|
|
|
Originally posted by: richkulp.NO.SPAM.us.ibm.com
That was an improvement we tried to make. Over 90% of the time JLabel's
don't need their text to be changed once created, so we just made them
local. However, some people do need to change the label later, but we
had no way to "promote" the JLabel to be a variable. So just last week
we changed it so that JLabels won't have a get method, but they will
have a variable that can be accessed to change. This has not got into a
build yet.
--
Thanks, Rich Kulp
|
|
|
|
|
Re: VE Bean JLabel generates another code as JCheckBox [message #595077 is a reply to message #49729] |
Tue, 13 July 2004 15:43 |
Eclipse User |
|
|
|
Originally posted by: richkulp.NO.SPAM.us.ibm.com
Because that is extra overhead for a label when most people don't even
need the variable. Very few people actually even need it as a separate
variable.
> Hi Rich!
>
> If you will provide an accessible variable for JLabels, why not simply
> provide a get method uniformly like for other components?
>
> Thanks.
>
> --
> Youjun Luo
> Sulzer GmbH
> Frankfurter Ring 162
> 80807 Munich
> Germany
>
>
--
Thanks, Rich Kulp
|
|
|
Powered by
FUDForum. Page generated in 0.05641 seconds