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"));