congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
javax.swing.plaf.nimbus
Code IndexAdd Tabnine to your IDE (free)

How to use javax.swing.plaf.nimbus

Best Java code snippets using javax.swing.plaf.nimbus (Showing top 20 results out of 315)

origin: stackoverflow.com

private Color color1 = decodeColor("nimbusOrange", 0.032459438f, -0.55535716f, -0.109803945f, 0);
private Color color2 = decodeColor("nimbusOrange", 0.08801502f, 0.3642857f, -0.4784314f, 0);
private Color color3 = decodeColor("nimbusOrange", 0.08801502f, -0.63174605f, 0.43921566f, 0);
private Color color4 = decodeColor("nimbusOrange", 0.05468172f, -0.6145278f, 0.37647057f, 0);
private Color color5 = decodeColor("nimbusOrange", 0.032459438f, -0.5953556f, 0.32549018f, 0);
private Color color6 = decodeColor("nimbusOrange", 0.032459438f, -0.54616207f, -0.02352941f, 0);
private Color color7 = decodeColor("nimbusOrange", 0.08801502f, -0.6317773f, 0.4470588f, 0);
private Color color8 = decodeColor("nimbusOrange", 0.021348298f, -0.61547136f, 0.41960782f, 0);
private Color color9 = decodeColor("nimbusOrange", 0.032459438f, -0.5985242f, 0.39999998f, 0);
private Color color10 = decodeColor("nimbusOrange", 0.08801502f, 0.3642857f, -0.52156866f, 0);
private Color color11 = decodeColor("nimbusOrange", 0.027408898f, -0.5847884f, 0.2980392f, 0);
private Color color12 = decodeColor("nimbusOrange", 0.035931647f, -0.5553123f, 0.23137254f, 0);
private Color color13 = decodeColor("nimbusOrange", 0.029681683f, -0.5281874f, 0.18039215f, 0);
private Color color14 = decodeColor("nimbusOrange", 0.03801495f, -0.5456242f, 0.3215686f, 0);
private Color color15 = decodeColor("nimbusOrange", 0.032459438f, -0.59181184f, 0.25490195f, 0);
private Color color16 = decodeColor("nimbusOrange", 0.05468172f, -0.58308274f, 0.19607842f, 0);
private Color color17 = decodeColor("nimbusOrange", 0.046348333f, -0.6006266f, 0.34509802f, 0);
private Color color18 = decodeColor("nimbusOrange", 0.046348333f, -0.60015875f, 0.3333333f, 0);
private Color color19 = decodeColor("nimbusOrange", 0.004681647f, -0.6197143f, 0.43137252f, 0);
private Color color20 = decodeColor("nimbusOrange", 7.13408E-4f, -0.543609f, 0.34509802f, 0);
private Color color21 = decodeColor("nimbusOrange", -0.0020751357f, -0.45610264f, 0.2588235f, 0);
private Color color22 = decodeColor("nimbusOrange", 5.1498413E-4f, -0.43866998f, 0.24705881f, 0);
private Color color23 = decodeColor("nimbusOrange", 5.1498413E-4f, -0.44879842f, 0.29019606f, 0);
private Color color24 = decodeColor("nimbusOrange", 5.1498413E-4f, -0.08776909f, -0.2627451f, 0);
private Color color25 = decodeColor("nimbusOrange", 0.06332368f, 0.3642857f, -0.4431373f, 0);
private Color color26 = decodeColor("nimbusOrange", 0.004681647f, -0.6198413f, 0.43921566f, 0);
private Color color27 = decodeColor("nimbusOrange", -0.0022627711f, -0.5335866f, 0.372549f, 0);
private Color color28 = decodeColor("nimbusOrange", -0.0017285943f, -0.4608264f, 0.32549018f, 0);
private Color color29 = decodeColor("nimbusOrange", 5.1498413E-4f, -0.4555341f, 0.3215686f, 0);
origin: stackoverflow.com

private Color color2 = decodeColor("nimbusOrange", 0.08801502f, 0.3642857f, -0.4784314f, 0);
private Color color3 = decodeColor("nimbusOrange", 5.1498413E-4f, -0.45471883f, 0.31764704f, 0);
private Color color4 = decodeColor("nimbusOrange", 5.1498413E-4f, -0.4633005f, 0.3607843f, 0);
private Color color5 = decodeColor("nimbusOrange", 0.05468172f, -0.58308274f, 0.19607842f, 0);
private Color color6 = decodeColor("nimbusOrange", -0.57865167f, -0.6357143f, -0.54901963f, 0);
private Color color7 = decodeColor("nimbusOrange", 5.1498413E-4f, -0.4690476f, 0.39215684f, 0);
private Color color8 = decodeColor("nimbusOrange", 5.1498413E-4f, -0.47635174f, 0.4352941f, 0);
private Color color9 = decodeColor("nimbusOrange", 0.0f, -0.05401492f, 0.05098039f, 0);
private Color color10 = decodeColor("nimbusOrange", 0.0f, -0.09303135f, 0.09411764f, 0);
  super();
  this.state = state;
  this.ctx = new AbstractRegionPainter.PaintContext(new Insets(0, 5, 6, 5), new Dimension(5, 24), false );
    rect.setRect(decodeX(0.0f), //x
           decodeY(1.0f), //y
           decodeX(0.0f) - decodeX(0.0f), //width
           decodeY(1.0f) - decodeY(1.0f)); //height
  return rect;
    rect.setRect(decodeX(0.0f), //x
           decodeY(2.1666667f), //y
           decodeX(3.0f) - decodeX(0.0f), //width
           decodeY(3.0f) - decodeY(2.1666667f)); //height
  return rect;
  float w = (float)bounds.getWidth();
  float h = (float)bounds.getHeight();
  return decodeGradient((0.5f * w) + x, (0.0f * h) + y, (0.5f * w) + x, (1.0f * h) + y,
origin: stackoverflow.com

 UIDefaults defaults = UIManager.getLookAndFeelDefaults();
defaults.put("TextPane[Enabled].backgroundPainter", 
  new javax.swing.plaf.nimbus.AbstractRegionPainter() {

    @Override
    protected AbstractRegionPainter.PaintContext getPaintContext() {
      return new AbstractRegionPainter.PaintContext(null, null, false);
    }

    @Override
    protected void doPaint(Graphics2D g, JComponent c, 
        int width, int height, Object[] extendedCacheKeys) {
      g.setColor(bgColor);
      g.fillRect(0, 0, width, height);
    }
  });
jtxtPane.putClientProperty("Nimbus.Overrides", defaults);
jtxtPane.putClientProperty("Nimbus.Overrides.InheritDefaults", false);
origin: stackoverflow.com

private Color color17 = decodeColor("nimbusOrange",  .0f,           .0f,         .0f,       -156);
private Color color18 = decodeColor("nimbusOrange", -.015796512f,   .02094239f, -.15294117f,   0);
private Color color19 = decodeColor("nimbusOrange", -.004321605f,   .02094239f, -.0745098f,    0);
private Color color20 = decodeColor("nimbusOrange", -.008021399f,   .02094239f, -.10196078f,   0);
private Color color21 = decodeColor("nimbusOrange", -.011706904f,  -.1790576f,  -.02352941f,   0);
private Color color22 = decodeColor("nimbusOrange", -.048691254f,   .02094239f, -.3019608f,    0);
private Color color23 = decodeColor("nimbusOrange",  .003940329f,  -.7375322f,   .17647058f,   0);
private Color color24 = decodeColor("nimbusOrange",  .005506739f,  -.46764207f,  .109803915f,  0);
private Color color25 = decodeColor("nimbusOrange",  .0042127445f, -.18595415f,  .04705882f,   0);
private Color color26 = decodeColor("nimbusOrange",  .0047626942f,  .02094239f,  .0039215684f, 0);
private Color color27 = decodeColor("nimbusOrange",  .0047626942f, -.15147138f,  .1607843f,    0);
private Color color28 = decodeColor("nimbusOrange",  .010665476f,  -.27317524f,  .25098038f,   0);
private Rectangle2D rect = new Rectangle2D.Float(0, 0, 0, 0);
private Path2D path = new Path2D.Float();
private PaintContext ctx = new PaintContext(new Insets(5, 5, 5, 5), new Dimension(29, 19), false);
@Override public void doPaint(Graphics2D g, JComponent c, int width, int height, Object[] extendedCacheKeys) {
 path = decodePath1();
 path.moveTo(decodeX(0.6f), decodeY(0.12666667f));
 path.curveTo(decodeAnchorX(0.6000000238418579f, -2.0f), decodeAnchorY(0.12666666507720947f, 0.0f), decodeAnchorX(0.12666666507720947f, 0.0f), decodeAnchorY(0.6000000238418579f, -2.0f), decodeX(0.12666667f), decodeY(0.6f));
 path.curveTo(decodeAnchorX(0.12666666507720947f, 0.0f), decodeAnchorY(0.6000000238418579f, 2.0f), decodeAnchorX(0.12666666507720947f, 0.0f), decodeAnchorY(2.4000000953674316f, -2.0f), decodeX(0.12666667f), decodeY(2.4f));
 path.curveTo(decodeAnchorX(0.12666666507720947f, 0.0f), decodeAnchorY(2.4000000953674316f, 2.0f), decodeAnchorX(0.6000000238418579f, -2.0f), decodeAnchorY(2.8933334350585938f, 0.0f), decodeX(0.6f), decodeY(2.8933334f));
 path.curveTo(decodeAnchorX(0.6000000238418579f, 2.0f), decodeAnchorY(2.8933334350585938f, 0.0f), decodeAnchorX(3.0f, 0.0f), decodeAnchorY(2.8933334350585938f, 0.0f), decodeX(3.0f), decodeY(2.8933334f));
 path.lineTo(decodeX(3.0f), decodeY(2.6f));
 path.lineTo(decodeX(0.4f), decodeY(2.6f));
 path.lineTo(decodeX(0.4f), decodeY(0.4f));
 path.lineTo(decodeX(3.0f), decodeY(0.4f));
 path.lineTo(decodeX(3.0f), decodeY(0.120000005f));
 path.curveTo(decodeAnchorX(3.0f, 0.0f), decodeAnchorY(0.12000000476837158f, 0.0f), decodeAnchorX(0.6000000238418579f, 2.0f), decodeAnchorY(0.12666666507720947f, 0.0f), decodeX(0.6f), decodeY(0.12666667f));
origin: pavelfatin/typometer

  private static void openMainForm(String title, Parameters parameters) {
    try {
      UIManager.setLookAndFeel(new NimbusLookAndFeel());
    } catch (UnsupportedLookAndFeelException e) {
      throw new RuntimeException(e);
    }

    MainFrame form = new MainFrame(title, parameters);
    form.pack();
    form.setLocationRelativeTo(null);
    form.setVisible(true);
  }
}
origin: korpling/ANNIS

@Override
public UIDefaults getDefaults()
{
 UIDefaults defaults = super.getDefaults();
 GraphicsDevice gd = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice();
 if(gd.getDisplayMode().getWidth() > 2000)
 {
  defaults.put("defaultFont", new Font(Font.SANS_SERIF, Font.PLAIN, 18));
 }
 return defaults;
}

origin: Multibit-Legacy/multibit-hd

 @Override
 public void provideErrorFeedback(Component component) {
  if (Configurations.currentConfiguration.getSound().isAlertSound()) {
   super.provideErrorFeedback(component);
  }
 }
});
origin: Multibit-Legacy/multibit-hd

 /**
  * @param color The color to use as the basis for the painter
  * @param state The state of the button to which this painter will apply
  */
 public NamedComboBoxPainter(Color color, int state) {

//    super(color, Themes.currentTheme.buttonBackground(), state);
  super(Color.RED, Color.BLUE, state);

  Insets insets = new Insets(8, 9, 8, 19);
  this.ctx = new AbstractRegionPainter.PaintContext(insets, new Dimension(83, 24), false);

 }

origin: stackoverflow.com

  UIManager.setLookAndFeel(new javax.swing.plaf.nimbus.NimbusLookAndFeel());
} catch (UnsupportedLookAndFeelException e) {
origin: Multibit-Legacy/multibit-hd

/**
 * @param color The color to use as the basis for the painter
 * @param state The state of the button to which this painter will apply
 */
public NamedComboBoxTextFieldPainter(Color color, int state) {
 super(Color.RED, Color.BLUE, state);
 Insets insets = new Insets(8, 1, 8, 8);
 this.ctx = new PaintContext(insets, new Dimension(20, 24), false);
}
origin: stackoverflow.com

  UIManager.setLookAndFeel(new NimbusLookAndFeel());
} catch (UnsupportedLookAndFeelException e) {
  e.printStackTrace();
origin: Multibit-Legacy/multibit-hd

 /**
  * @param color The color to use as the basis for the painter
  * @param state The state of the button to which this painter will apply
  */
 public NamedComboBoxArrowButtonPainter(Color color, int state) {

//    super(color, Themes.currentTheme.buttonBackground(), state);
  super(Color.RED, Color.BLUE, state);

  Insets insets = new Insets(8, 1, 8, 8);
  this.ctx = new AbstractRegionPainter.PaintContext(insets, new Dimension(20, 24), false);

 }

origin: stackoverflow.com

  UIManager.setLookAndFeel(new NimbusLookAndFeel());
} catch (UnsupportedLookAndFeelException e) {
  e.printStackTrace();
origin: Multibit-Legacy/multibit-hd

/**
 * @param color The color to use as the basis for the painter
 * @param state The state of the button to which this painter will apply
 */
public NamedTabbedPaneTabAreaPainter(Color color, int state) {
 super(color, Themes.currentTheme.detailPanelBackground(), state);
 this.ctx = new AbstractRegionPainter.PaintContext(new Insets(0, 5, 6, 5), new Dimension(5, 24), false);
}
origin: Multibit-Legacy/multibit-hd

/**
 * @param foregroundBasisColor The color to use as the basis for the painter
 * @param state                The state of the button to which this painter will apply
 */
public NamedButtonRegionPainter(Color foregroundBasisColor, int state) {
 super(foregroundBasisColor, Themes.currentTheme.detailPanelBackground(), state);
 Insets insets = new Insets(7, 7, 7, 7);
 this.ctx = new AbstractRegionPainter.PaintContext(insets, new Dimension(10, 20), false);
}
origin: Multibit-Legacy/multibit-hd

/**
 * @param color The color to use as the basis for the painter
 * @param state The state of the button to which this painter will apply
 */
public NamedProgressBarRegionPainter(Color color, int state) {
 super(color, Themes.currentTheme.detailPanelBackground(), state);
 Insets insets = new Insets(7, 7, 7, 7);
 this.ctx = new PaintContext(insets, new Dimension(10, 20), false);
}
origin: stackoverflow.com

 private static class Painter extends javax.swing.plaf.nimbus.AbstractRegionPainter {
  private final Color color;

  private Painter(Color color) {
    this.color = color;
  }
  @Override
  protected AbstractRegionPainter.PaintContext getPaintContext() {
    return new AbstractRegionPainter.PaintContext(null, null, false);
  }

  @Override
  protected void doPaint(Graphics2D g, JComponent c, 
      int width, int height, Object[] extendedCacheKeys) {
    g.setColor(c.isEnabled() ? c.getBackground() : color);
    g.fillRect(0, 0, width, height);
  }
}
origin: Multibit-Legacy/multibit-hd

  throw new IllegalStateException("Unknown state:" + state);
this.ctx = new AbstractRegionPainter.PaintContext(insets, new Dimension(10, 20), false);
origin: stackoverflow.com

@Override
protected AbstractRegionPainter.PaintContext getPaintContext() {
  return new AbstractRegionPainter.PaintContext(null, null, false);
@Override
protected AbstractRegionPainter.PaintContext getPaintContext() {
  return new AbstractRegionPainter.PaintContext(null, null, false);
@Override
protected AbstractRegionPainter.PaintContext getPaintContext() {
  return new AbstractRegionPainter.PaintContext(null, null, false);
origin: stackoverflow.com

super();
this.state = state;
this.ctx = new AbstractRegionPainter.PaintContext(
    new Insets(5, 5, 5, 5), new Dimension(9, 10), false, null, 1.0, 1.0);
javax.swing.plaf.nimbus

Most used classes

  • NimbusLookAndFeel
  • AbstractRegionPainter$PaintContext
  • AbstractRegionPainter
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now