Comments (8)
Many thanks Vincenzo!
But I can't make it work...
I've tried to change "inactiveBackground" to "unfocusedBackground" but neither of them works.
from material-ui-swing.
@atarw The problem is not netbinse 'cause I test the look and feel I always do it with him, rather I think his jar is corrupt.
Yesterday I was fixing a few things on my fork and I got a similar error, very similar so I think the JtextField is ok
ps: Excuse the intrusion
from material-ui-swing.
Fixed!
To change the active color of a JTextfield, change JTextfield.selectionColor
, or for the unfocused background, changing UIManager.put("TextField.inactiveBackground", ...)
should work.
You can also change JTextField.selectionTextColor
and UIManager.put("TextField.inactiveForeground", ...)
for more customization
from material-ui-swing.
Exception in thread "main" java.lang.ExceptionInInitializerError
at mdlaf.MaterialLookAndFeel.initComponentDefaults(MaterialLookAndFeel.java:148)
at javax.swing.plaf.basic.BasicLookAndFeel.getDefaults(BasicLookAndFeel.java:148)
at javax.swing.plaf.metal.MetalLookAndFeel.getDefaults(MetalLookAndFeel.java:1577)
at javax.swing.UIManager.setLookAndFeel(UIManager.java:539)
at MainClass.MainClass.main(MainClass.java:29)
Caused by: java.lang.IllegalArgumentException: input == null!
at javax.imageio.ImageIO.read(ImageIO.java:1348)
at mdlaf.utils.MaterialImages.loadImg(MaterialImages.java:36)
at mdlaf.utils.MaterialImages.(MaterialImages.java:30)
... 5 more
Java Result: 1
from material-ui-swing.
Hello @khadapps ,
I was thinking about how to make personalization easier, while I give you a hand in personalization, try the following piece of code after setting the look and feel.
UIManager.put("TextField.inactiveBackground", new Color(35, 35, 35);
I hope to be proved helpful
from material-ui-swing.
@khadapps
From your exception it seems that the look and feel can not find the images that he uses himself to render the components, can you please post the open jar screen?
it should have done something similar but not the same because I use a different pom.xml
from material-ui-swing.
Wait I'm a bit confused. Is the issue that Netbeans doesn't load the jar or does it have to do with the text field?
from material-ui-swing.
Hello, my problem is just that I can't change the color of the unfocused background of the JTextField.
So far I've tried things like the code UIManager.put("TextField.inactiveBackground", new Color(35, 35, 35);
code but it didn't works.
from material-ui-swing.
Related Issues (20)
- Caret Colour for dark themes HOT 3
- Problem with resizing JDialog HOT 4
- Can't load /imgs/white/minimize.png HOT 2
- Rearrange classes & packages to allow usage from modular apps (JPMS) HOT 7
- Image /imgs/white/minimize.png wasn't loaded HOT 1
- java.lang.ClassCastException: javax.swing.JTextField cannot be cast to javax.swing.JSpinner$DefaultEditor
- JOptionPane messageType parameter HOT 2
- Quickstart guide HOT 2
- JAVA SWING HOT 1
- JComboBox theme bug HOT 8
- Focusing on a table cell will insert the last value HOT 6
- Option 1 (Animated) in Demo Application is not animated HOT 1
- Background-color of a button is turned to default after hovering HOT 2
- Chinese garbled HOT 2
- Material UI Swing doesn't supports emojis HOT 3
- Mouse Cursor HOT 5
- MaterialButtonUI.java depends on JavaFX HOT 3
- δΈζδΉ±η HOT 5
- Docs needed HOT 3
- GuiBuilder ? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from material-ui-swing.