MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
CasaDelGato
Post subject: Syntax errors if I change the font on a Titled Border  PostPosted: Jan 25, 2011 - 05:01 AM
Registered Member
Registered Member


Joined: Sep 30, 2010
Posts: 21

I have 4 Panels in my frame that have Titled Borders.
The default font for these is "Segoe UI 12 Plain". Since I wanted a large font, I changed it to "Segoe UI 14 Plain".
Then when the form regenerated the Java code, it created Syntax errors:

Code:

pnlCalibrate.setBorder(javax.swing.BorderFactory.createTitledBorder(com.sun.java.swing.plaf.windows.XPStyle$XPImageBorder@183f4d6, "Calibration", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Segoe UI", 0, 14)));


Description Resource Path Location Type
Syntax error on tokens, delete these tokens LHBB.java /LHBB/src/com/casadelgato/lhbb line 262 Java Problem
Description Resource Path Location Type
The nested type com.sun.java.swing.plaf.windows.XPStyle$XPImageBorder cannot be referenced using its binary name LHBB.java /LHBB/src/com/casadelgato/lhbb line 262 Java Problem

If I change the font back to 12 point, the syntax errors go away, and the code goes back to:

Code:
pnlCalibrate.setBorder(javax.swing.BorderFactory.createTitledBorder("Calibration"));
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-joy
Post subject: RE: Syntax errors if I change the font on a Titled Border  PostPosted: Jan 31, 2011 - 12:14 PM
Registered Member
Registered Member


Joined: Feb 03, 2009
Posts: 3442

CasaDelGato,

I am sorry, I am able to replicate this issue. I have filed a PR for the dev team members. Also I would like to point-out that the font - "Segoe UI 12 Plain" is not listed under default font. This could be a custom font.

_________________
Joy
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
CasaDelGato
Post subject:   PostPosted: Jan 31, 2011 - 07:40 PM
Registered Member
Registered Member


Joined: Sep 30, 2010
Posts: 21

Since I haven't done any L&F configuring, it must be something that MyEclipse Matisse is coming up with.
Actually, I don't see any way to specify application or preview L&F, is there one?
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits