facebook

Syntax errors if I change the font on a Titled Border

  1. MyEclipse Archived
  2.  > 
  3. Matisse/Swing UI Development
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #313927 Reply

    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:

    
    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:

    pnlCalibrate.setBorder(javax.swing.BorderFactory.createTitledBorder("Calibration"));
    
    #314076 Reply

    support-joy
    Member

    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.

    #314091 Reply

    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?

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Syntax errors if I change the font on a Titled Border

You must be logged in to post in the forum log in