Questions tagged [uidefaults]

10 questions
25
votes
1 answer

How do I restore the default VS toolbar configuration?

How do I restore the default VS toolbar configuration? By that, I mean: the set and location of enabled toolbars the set and order of items on each toolbar I know how to reset the set and order of items on a given toolbar, so if I knew which are…
Stefan Monov
  • 11,332
  • 10
  • 63
  • 120
3
votes
2 answers

JButton margins. Not respected when nimbus plaf

The property margin of a JButton isn't respected when the nimbus look and feel is installed. . I need some "little" buttons, but nimbus forces the space around button text to be large, so I only get "very large" buttons. I discovered in nimbus…
AgostinoX
  • 7,477
  • 20
  • 77
  • 137
3
votes
3 answers

UIManager color at a JFileChooser

I'm using Nimbus Look and Feel, with only 3 changes at its colors: UIManager.put("nimbusSelection", new Color(164,164,164)); UIManager.put("nimbusSelectionBackground", new Color(214,217,223)); UIManager.put("nimbusSelectedText", Color.BLACK); My…
Roman Rdgz
  • 12,836
  • 41
  • 131
  • 207
3
votes
1 answer

Changing Look And Feel by Swapping UIDefaults

I am writing a GUI Builder and want the user to be able to change the LookAndFeel of the GUI he builds. The LookAndFeel should only be changed for the Components inside the editor area. The rest of the Application should remain with the…
Jhonny007
  • 1,698
  • 1
  • 13
  • 33
2
votes
1 answer

Transparent UI (+UIManager) artifacts

I've got an application which draws a background image on a panel, but to achieve the optimal UI, I need to set Component backgrounds Transparent: I made every component transparent by using the UI Manager: uimanager.put(Button, background(new…
1
vote
1 answer

JTree ignoring LaF overrides

I have recently been attempting to convert a system to a unified look and feel (In this case Nimbus). However certain components require alteration from the defaults and I don't want to just change the defaults because of a single component. I am…
Saquesh
  • 107
  • 1
  • 8
0
votes
1 answer

selected menuText color

I'm using a DefaultDockable, which has a menu bar with a title. I'm using Nimbus Look&Feel, and to set the text color of this title I'm using: UIManager.put("menuText", Color.RED); But what I don't know, is how to set the color when the menu is…
Roman Rdgz
  • 12,836
  • 41
  • 131
  • 207
0
votes
1 answer

Changing the ControlShadow color of JComboBoxes only

I've been asked to change the colors of a JComboBox in an application to a very particular, non-default color scheme. I've found that if I change the value of the System.UserInterface.Colors.SwingDefaults.ControlShadow of the Resource Map file…
Paul Reiners
  • 8,576
  • 33
  • 117
  • 202
0
votes
2 answers

Change JFrame border in UIDefaults

Which key in UIDefaults should I change to change the border color of all JFrames in the application from blue to something else? I know there is no code here but it is a very terse question. EDIT Attached below is the image showing the JFrames…
ShaggyInjun
  • 2,880
  • 2
  • 31
  • 52
0
votes
1 answer

Setting default LAF's JTextField dimensions

Is it possible to override the LAF's default dimensions of a JTextField with UIDefaults?
Fred Campos
  • 1,457
  • 1
  • 19
  • 22