MyEclipse Forums
This thread has been locked & this forum has been archived.
Please post new topics to General Development
View previous topic Printable version Log in to check your private messages View next topic
Author Message
dtb
Post subject: Error in generated Matisse code  PostPosted: Sep 30, 2011 - 03:47 PM
Registered Member
Registered Member


Joined: Mar 10, 2006
Posts: 46

Hi,
I am using MyEclipse 8.6 for developing Swing GUI on Windows XP SP3.
I constructed a JFrame from with Matisse4MyEclipse.

In the generated code this line gives an error:
jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(com.sun.java.swing.plaf.windows.XPStyle$XPImageBorder@b61a20, "Name", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 12)));

Multiple markers at this line
- Syntax error on token "@", ( expected
- com.sun.java.swing.plaf.windows cannot be resolved to a type
- Syntax error, insert ")" to complete Expression
- b61a20 cannot be resolved

What can be done?
Thanks
Balazs Toth
 
 View user's profile Send private message  
Reply with quote Back to top
support-swapna
Post subject:   PostPosted: Oct 04, 2011 - 08:59 AM



Joined: Nov 11, 2010
Posts: 2673

dtb ,

Sorry that you are seeing this issue with MyEclipse. I have filed a PR for the dev team to work on it. The error is caused when you change the font to the one other than the default font specified in the properties for TitledBorder.

Sorry for the inconvenience caused.

_________________
Swapna
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
support-tony
Post subject:   PostPosted: Oct 04, 2011 - 09:05 AM



Joined: Mar 09, 2011
Posts: 959

dtp,

Just to add to Swapna's post, an alternative is to click on the border property to change it, then click on the "border" property within the border dialog and select a line border (you can change the color and some other attributes), click OK to get back to the original border dialog and then alter the font. This should work.

_________________
Tony
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits