Questions tagged [synth]

Synth is the name of a Look-and-Feel in Java Swing. For questions about sound and music, it is recommended that you use the 'synthesizer' tag instead.

Synth is a special look-and-feel provided by Swing which is completely unstyled by default, but can be customized using an XML configuration or by extending the code. It is essentially a 'skin' for Java applications.

See also:

86 questions
2
votes
3 answers

How to use SynthLookAndFeel with xml file, where xml file path will load the file using getResourceAsStream method?

I am using SynthLookAndFeel laf = new SynthLookAndFeel(); laf.load(MyJSlider.class.getResourceAsStream("/ui/demo.xml"), MyJSlider.class); //laf.load(new URL("file:///var/tmp/demo.xml")); Where my demo.xml has following:
user285594
1
vote
1 answer

Styling of combobox arrow button in synth

I'm creating Swing app and styling it with Synth L&F. When I enabled Synth L&F, combobox arrow button became not visible (I believe, default background is applied). If I click on a place where arrow button is intended to be, it behaves as intended -…
Yura Taras
  • 1,285
  • 14
  • 26
1
vote
1 answer

Cannot change colors of a ScrollBar using Synth

I am unable to change the color of a Java Swing JScrollBar. I have searched and read much on this. I am trying to use an XML file to define the colors using the Synth look and feel for Swing. This worked fine for a button, but it does not work at…
Alan
  • 31
  • 1
  • 1
  • 4
1
vote
2 answers

styling Combobox in Java using Synth

Hello i want to set the background for the combobox i have to another color except from white, and during rendering when the user clicks to choose from the items inside how do i achieve that using synth?? Thanks in advance!
sstauross
  • 2,056
  • 1
  • 24
  • 48
1
vote
1 answer

Exclude certain Jmenu's from Synth

I am using Synth L&F in a XML File, I set up everything so far, but no I have a nested JMenu, and I don't want the nested ones to take the style of the top JMenu's. JMenu accountMenu = new JMenu("Manage Account"); JMenuItem editUsername =…
Theron084
  • 145
  • 2
  • 3
  • 11
1
vote
1 answer

Set JLabel icon in Synth xml

I am trying to set the icon for a JLabel in a synth xml file but it does not display. I have tried to set both the defaultIcon and icon properties and none seem to be taking. Should I be using something other than a JLabel here? Here's my code: …
evanb
  • 2,882
  • 16
  • 30
1
vote
0 answers

Setting the background image of a JToggleButton

I am trying to use synth look and feel xml to set the background image of a JToggleButton which seems to work but the text in the button isn't displaying. Is there something that I'm missing? Here's the code: laf.xml: