Error in generated Matisse code

This topic contains 2 replies, has 3 voices, and was last updated by Profile photo of support-tony support-tony 4 years ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #320099
    Profile photo of Balazs D. Toth
    Balazs D. Toth

    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($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
    – cannot be resolved to a type
    – Syntax error, insert “)” to complete Expression
    – b61a20 cannot be resolved

    What can be done?
    Balazs Toth

    Profile photo of support-swapna

    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.

    Profile photo of support-tony


    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.

Viewing 3 posts - 1 through 3 (of 3 total)

The forum ‘Matisse/Swing UI Development’ is closed to new topics and replies.