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
1
vote
0 answers

Synthetic control method: placebo test error: system is computationally singular

I am currently doing an analysis of the effect of taxation on the institutions of a country. I am using the synthetic controls method to determine the treatment effect on Bolivia. The synth() command works fine, the placebo (with country 8 = Bhutan…
dbmongo
  • 75
  • 6
1
vote
1 answer

For synthetic control (synth package), how to avoid using predictor.op?

I am trying to use the synth package in R. The way synthetic control works is that it matches pre-treatment data for a treated unit and control units, and it selects weights to approximate equate the two, so that the treated unit "looks like" a…
wolfsatthedoor
  • 5,669
  • 14
  • 38
  • 76
1
vote
0 answers

JSlider SynthLookandFeel Fill color

I found this example on internet about how to use xml to customize the Slider in Java swing , and everything works fine: import javax.swing.JFrame; import javax.swing.JSlider; import javax.swing.UIManager; import javax.swing.WindowConstants; import…
navy1978
  • 1,168
  • 1
  • 11
  • 28
1
vote
1 answer

Java synth - How to apply solid color to button background

I am trying to obtain simple flat button using synth xml in Java. This button should contain solid color background and text with no other effects. I have checked some tutorials and successfully implemented below solution where I will need to…
mevada.yogesh
  • 1,028
  • 1
  • 11
  • 34
1
vote
0 answers

Java - Fade between images in Synth

For a class assignment, I have to PERFECTLY replicate the windows 7 calculator in java. Currently, I am working on the button hover. The problem I am having is that the windows calculator fades between the default and hover state (as well as the…
DrClass
  • 11
  • 2
1
vote
1 answer

Controlling layout of a checkbox in a custom Synth Look & Feel

I'm trying to implement a custom "Steampunk" themed look and feel using Synth - basically providing custom versions of SynthStyle, SynthPainter and SynthStyleFactory. I am not using any XML, i.e. everything is done through the Java API. In general…
mikera
  • 101,777
  • 23
  • 241
  • 402
1
vote
0 answers

Custom painter for jTextPane not working

I'm trying to stylize a jTextPane using Java Synth and XML. I can apply a style to jPanes and to jButtons but cannot apply to jTextPanes. The problem is that the paint method paintTextPaneBackground (or even paintTextPaneBorder) in my custom painter…
user3788133
  • 83
  • 1
  • 6
1
vote
0 answers

Java swing with synth checkboxes/radio button borders disappear after long uptime

I have a GUI app that is supposed to run continuously, if the user wishes, showing the state of some database operations. It uses checkboxes in a column in a JTable, as well as stand alone checkboxes. After a couple days of up-time the box in the…
rediVider
  • 1,266
  • 2
  • 12
  • 30
1
vote
1 answer

Custom look and feel JPogressBar & JSplitPane xml using synth

I am trying to make a custom look and feel for my program using an xml file using synth, and it is working well, but I'm not sure how customize the JProgressBar or the JSplitPane. I got a border on the JProgressBar with no issues, but I can't find…
dmerr
  • 132
  • 2
  • 12
1
vote
3 answers

Java L&F customization: How do I use synth to customize BorderFactory borders?

Specifically, I currently have a JPanel with a TitledBorder. I want to customize the look of the border. In my app's current state, the title is drawn, but not the line border itself. If I bind an imagePainter to the panelBorder method for Panel…
Jorenko
  • 2,428
  • 1
  • 21
  • 25
1
vote
0 answers

How to modify ScrollPane using synth L&F?

I want to modify ScrollPane using Synth L&F Here is my XML code: