unable to change the TextArea.background !
Code:
import javax.swing.*;
import javax.swing.JPanel;
import javax.swing.UIManager;
import javax.swing.plaf.ColorUIResource;
import java.awt.Color;
public class EasyToolTip extends JPanel {
JTextArea t = new JTextArea(10, 10);
EasyToolTip() {
UIManager.put("ToolTip.background", new ColorUIResource(Color.CYAN));
UIManager.put("TextArea.background", new ColorUIResource(25, 25, 25));
setToolTipText("This is also a way to change the color of the tooltip in your application!");
add(t);
}
public static void main(String[] args) {
javax.swing.JFrame frame = new javax.swing.JFrame("EasyToolTip");
frame.setDefaultCloseOperation(javax.swing.JFrame.EXIT_ON_CLOSE);
frame.add(new EasyToolTip());
frame.setSize(1280, 770);
frame.setVisible(true);
}
}