Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » Initial value parsing and double-sets
Initial value parsing and double-sets [message #610109] Tue, 02 August 2005 17:00
Joel Kamentz is currently offline Joel KamentzFriend
Messages: 30
Registered: July 2009
Member
VE parses the code for initial values of labels and the like, which is nice.
However, I noticed that if your initialization code sets the value (the text
in a label, for example) twice, then the VE preview displays the first
value, not the second.

Reproduce:
create a JPanel, drop a label, duplicate the setText line and make the
second value different. No matter the amount of reparsing, VE always
previews the first value in the source, even though the true initial value
(as demonstrated by run as java bean) is the last set to take place.


This came up in a Swing panel, where I was attempting override a components
default preferred size calculation by setting the maximum value, calling
setPrefferedSize( getPreferredSize() ) and then setting the real initial
value.

Joel
Previous Topic:Jlabel border
Next Topic:Initial value parsing and double-sets
Goto Forum:
  


Current Time: Thu Sep 19 18:02:01 GMT 2024

Powered by FUDForum. Page generated in 0.03333 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top