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.

345 questions
7
votes
3 answers

Setting text background color?

How can I set text background color in JOptionPane? Image: UIManager UI = new UIManager(); UI.put("OptionPane.background", Color.white); UIManager.put("Button.background", Color.white); UI.put("Panel.background",…
Faken143
  • 209
  • 4
  • 10
7
votes
4 answers

JTable - Problems with Boolean.class Cell Renderer and Nimbus Look and Feel

I am using a JTable to visualize some data. One column ist destined to show boolean data through a checkbox. I achieved this by returning Boolean.class from my overriden getColumnClass() function in my table model. Unfortunately this results in a…
padde
  • 621
  • 8
  • 19
7
votes
1 answer

Nimbus: java.lang.ClassCastException: javax.swing.plaf.nimbus.DerivedColor$UIResource cannot be cast to javax.swing.Painter

I'm using the Nimbus look & feel in my swing application. Sometimes, when a dialog is showed (with dialog.setVisible(true)) the Nimbus look & feel throws the following exception: Caugth exception of type java.lang.ClassCastException with message…
Sergio Trapiello
  • 698
  • 9
  • 18
6
votes
3 answers

Change colors for JProgressBar with Nimbus?

does anyone know how to change the colors for JProgressBar when you use Nimbus LookAndFeel?
Hassenboy
  • 120
  • 1
  • 7
6
votes
2 answers

Set the button "background" of a Nimbus button

I'm working on an app using the Nimbus Look and Feel. There's a table and one column contains buttons (using the Table Button Column from Rob Camick). That does work, but the result isn't what I had expected. I have tried to fix the look, but to no…
DarkDust
  • 85,893
  • 19
  • 180
  • 214
6
votes
1 answer

How to change JTable row height globally?

I'm using Nimbus L&F. I'm trying to change font size globally for all JTable by using the following code: NimbusLookAndFeel nimbus = new NimbusLookAndFeel(); UIManager.setLookAndFeel(nimbus); UIDefaults d = nimbus.getDefaults(); d.put("Table.font",…
user2198754
  • 175
  • 3
  • 6
6
votes
2 answers

java swing minimal (or range for) font size for other application

For swing applications, default font settings for components are in current theme and can be retrieved using UIManager: public class JavaTesting { public static void main(String[] args) { System.out.println(UIManager.get("Label.font")); …
peenut
  • 3,065
  • 21
  • 24
6
votes
6 answers

Where is Java source code for various com.sun.* packages on Leopard?

I am working on my MacBook at home, running Leopard, with the latest JDK 1.6 from Apple installed. In IDE, I'd like to browse source code for com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel, but IDE cannot find it. Another example I'd like to…
Eric Burke
  • 4,372
  • 3
  • 24
  • 29
6
votes
1 answer

Swing GUI does not show or show with errors when launched on Mac

I have a Java Swing project which works fine on both Windows and Ubuntu. I did not have any Macs so I could not test it; I have used the Nimbus theme as the standard for this project. Now, recently my friend tested the same project both in Eclipse…
Johnydep
  • 5,301
  • 19
  • 52
  • 70
5
votes
2 answers

Mac Keyboard Shortcuts with Nimbus LAF

Is there a way to use Nimbus LAF (Look And Feel) on OS X while still being able to use the Meta key for cut/copy/paste and select-all operations? I currently have the following code in my Swing app's main method, which changes up the LAF based on…
sworisbreathing
  • 440
  • 2
  • 15
5
votes
1 answer

Nimbus L&F missing divider at JTabbedPane set to scroll

I am missing the blue horizontal divider between the tabs and the content in a Nimbus L&F TabbedPane set to SCROLL (other L&Fs (default & windows) provide those). As you can see the problem is limited to new JTabbedPane(JTabbedPane.TOP,…
Omphaloskopie
  • 1,832
  • 1
  • 14
  • 24
5
votes
1 answer

Is it possible to change the background of a jspinner using the nimbus laf?

I'm fairly confident that I have done my research before coming to you for help, but it's possible I have overlooked something. I'm writing a java UI using the Nimbus l-a-f. I wish to change the background colour of a JSpinner on state-change, ie,…
Daryl
  • 195
  • 1
  • 1
  • 8
5
votes
2 answers

How do I use a default Nimbus color with UIManager?

I have a custom ListCellRenderer and would like to use the default Nimbus selection backround color. I can lookup the color with: Color selectionBackground = UIManager.getColor("nimbusSelectionBackground"); and if I print it, it has the same values…
Jonas
  • 97,987
  • 90
  • 271
  • 355
5
votes
1 answer

Nimbus TableHeader was not highlighted as 'pressed'

The JTableHaeder has no 'pressed' highlighting by default. (Nimbus) NimbusDefaults says it has a default [Pressed] background painter. What should I do, to see this when i click on the TableHeader? UPDATE 1 The NimbusStyle.getExtendedState returns…
oliholz
  • 7,217
  • 2
  • 39
  • 75
5
votes
1 answer

Loosing vertical scrollbar in netbeans nimbus LAF

I'm using Netbeans 8.0.2 and the Nimbus Look And Feel. At a certain point, when the vertical scroll slider becomes small, it disappears. Has anyone the same behavior or any fix for that problem? EDIT: This happens only in Nimbus and Dark Nimbus…
sylo
  • 217
  • 3
  • 13
1
2
3
22 23