Java Code Examples for javax.swing.plaf.synth.SynthStyle#getInsets()

The following examples show how to use javax.swing.plaf.synth.SynthStyle#getInsets() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MainPanel.java    From java-swing-tips with MIT License 4 votes vote down vote up
private Insets getSynthInsets(Region region) {
  SynthStyle style = SynthLookAndFeel.getStyle(this, region);
  SynthContext context = new SynthContext(this, region, style, SynthConstants.ENABLED);
  return style.getInsets(context, null);
}
 
Example 2
Source File: MainPanel.java    From java-swing-tips with MIT License 4 votes vote down vote up
private Insets getSynthInsets(Region region) {
  SynthStyle style = SynthLookAndFeel.getStyle(this, region);
  SynthContext context = new SynthContext(this, region, style, SynthConstants.ENABLED);
  return style.getInsets(context, null);
}
 
Example 3
Source File: MainPanel.java    From java-swing-tips with MIT License 4 votes vote down vote up
private Insets getSynthInsets(Region region) {
  SynthStyle style = SynthLookAndFeel.getStyle(this, region);
  SynthContext context = new SynthContext(this, region, style, SynthConstants.ENABLED);
  return style.getInsets(context, null);
}
 
Example 4
Source File: MainPanel.java    From java-swing-tips with MIT License 4 votes vote down vote up
private Insets getSynthInsets(Region region) {
  SynthStyle style = SynthLookAndFeel.getStyle(this, region);
  SynthContext context = new SynthContext(this, region, style, SynthConstants.ENABLED);
  return style.getInsets(context, null);
}
 
Example 5
Source File: MainPanel.java    From java-swing-tips with MIT License 4 votes vote down vote up
private Insets getSynthInsets(Region region) {
  SynthStyle style = SynthLookAndFeel.getStyle(this, region);
  SynthContext context = new SynthContext(this, region, style, SynthConstants.ENABLED);
  return style.getInsets(context, null);
}
 
Example 6
Source File: MainPanel.java    From java-swing-tips with MIT License 4 votes vote down vote up
private Insets getSynthInsets(Region region) {
  SynthStyle style = SynthLookAndFeel.getStyle(this, region);
  SynthContext context = new SynthContext(this, region, style, SynthConstants.ENABLED);
  return style.getInsets(context, null);
}