Questions tagged [nimbus]

Nimbus is a polished cross-platform look and feel introduced in the Java SE 6 Update 10 (6u10) release of the Java platform. Nimbus uses Java 2D vector graphics to draw the user interface, rather than static bitmaps, so the UI can be crisply rendered at any resolution.

Nimbus is a polished cross-platform look and feel introduced in the Java SE 6 Update 10 (6u10) release of the Java platform. Nimbus uses Java 2D vector graphics to draw the user interface, rather than static bitmaps, so the UI can be crisply rendered at any resolution. Nimbus is highly customizable. You can use the Nimbus look and feel as is, or you can skin (customize) the look with your own brand.

340 questions
2
votes
2 answers

How to get rid of the space around buttons in Nimbus LAF?

I need to put some JButtons in a very small place, and the problem is that the Nimbus LAF automatically puts some space around them, and as a result the buttons look smaller than they really are. In the following example program I use a FlowLayout…
lbalazscs
  • 17,474
  • 7
  • 42
  • 50
2
votes
2 answers

Changing nimbus JPopupmenu behaviour

I need help about nimbus behaviour for JTree and JPopupMenu. I am setting a right click menu to a JTree. If I left click to a node after open the right click menu with another node, clicked node becoming selected. but in nimbus look and feel, a…
rdonuk
  • 3,921
  • 21
  • 39
2
votes
1 answer

JTree Nimbus Selectionbackground not Working on Java 1.8

I've modified the JTree SelectionBackground by following this approach.It's working fine in Java 1.7.x whereas the selection is white is Java 1.8.Ref Screenshot. Is there any way to fix it. MCVE code to reproduce this problem import…
Madhan
  • 5,750
  • 4
  • 28
  • 61
2
votes
0 answers

how to remove JPopupMenu border in Nimbus

I can remove the JPopupMenu border with UIManager.put("PopupMenu.border", BorderFactory.createEmptyBorder()); But it doesn't work with Nimbus. By looking at the Nimbus Defaults properties, I cannot find an entry to set the JPopupMenu border. Is…
peterboston
  • 877
  • 1
  • 12
  • 24
2
votes
1 answer

Cannot stop Nimbus JTable boolean color from alternating

Here's an example Nimbus JTable. When a checkbox is selected, I want to color its entire row green. The problem: the green skips every other row, only in the boolean column. This problem only happens with the Nimbus LaF, which alternates white and…
Brent
  • 121
  • 2
2
votes
1 answer

Setting different defaultFont to a JFrame

I am using Nimbus look and feel and I have already set a defaultFont like this. NimbusLookAndFeel nimbus = new NimbusLookAndFeel(); nimbus.getDefaults().put("defaultFont", myFont); It works perfectly. But I have a JFrame which comes up with a…
ziLk
  • 3,120
  • 21
  • 45
2
votes
2 answers

Changing the defauls key values for JButton in Nimbus LaF

I have a two Buttons in my program JButton button1 = new JButton(); button1.setText("First Button"); JButton button2 = new JButton("Second Button"); I have tried to change the LaF of the button, I am able to change the button background color using…
2
votes
2 answers

Override Nimbus Colors

We are working on a Swing application with Nimbus LaF. We have changed many of the Nimbus defaults (control, text, NimbusLightBackground and so on) to have a dark theme. Now we have great trouble with the rendering of JLists and JComboBoxes, because…
Mike Adler
  • 1,199
  • 9
  • 24
2
votes
0 answers

Extending classes with package level access

Java 1.6 have Synth plaf classes with package level access. I try to extend these package javax.swing.plaf.synth; import javax.swing.JComponent; import javax.swing.plaf.ComponentUI; class MyCheckBoxUI extends SynthCheckBoxUI { public…
pavan.mankala
  • 249
  • 1
  • 10
2
votes
0 answers

Setting global JLabel text Colours in Nimbus L&F

I'm currently working on a GUI-heavy application, one that uses JInternalFrame to have multiple smaller windows open in one instance of JDesktopPane, and I'm trying to personalize the look of the Nimbus Look and Feel. I can easily change Primary and…
South
  • 21
  • 2
2
votes
3 answers

When I run a JApplet got different colors for the same code

I've written a JApplet and I set, in the initialization, colors for the Nimbus L&F. When I run the applet, both via Netbeans or via Google Chrome, 9/10 times it happens that button background is set to dark, but sometimes Nimbus is not able to set…
Paolo M
  • 12,403
  • 6
  • 52
  • 73
2
votes
1 answer

Customizing JComboBox with nimbus

I'm trying to customize the look of my JComboBox using nimbus L&F. Here is some code: NamedPainter.java package gui.combo; import java.awt.Color; import java.awt.Font; import java.awt.Graphics2D; import javax.swing.JComponent; import…
remi
  • 3,914
  • 1
  • 19
  • 37
2
votes
3 answers

How to center align text in JTextArea?

I have requirement of Text wrapping + Text Centering + Nimbus Look and Feel + with a background color black. I tried out with the following 2 components 1. JTextPane -------supports: Text Wrapping + Text Centering using StyledDocument…
2
votes
1 answer

How to remove/set JTextArea border in JTable cell in Nimbus look and feel

Edit: I have added a SSCCE code I have extended JTextArea in TableCellRenderer because I wanted to achieve the Multiline text wrapping Mentioned in this SO question and that is working fine. Now I have ran into weird problem with Nimbus look and…
Ashish
  • 14,295
  • 21
  • 82
  • 127
2
votes
0 answers

AbstractRegionPainter Java 7 dynamic import

As you know nimbus package is change in java 7. I am using AbstractRegionPainter with java6 in my app's server side, and my app's client side must work both in java 6 and 7. So how can i import this abstract class dynamicly depends on client's java…
rdonuk
  • 3,921
  • 21
  • 39