So, i use JTextArea in my program to show multiline text with custom font, is it possible/and easy to add a shadow to text in JTextArea ?
And second question, maybe it's possible to use css styles in java on the jtextarea and make shadow with css style ?
All i need is a component to show multiline text with custom font/size and shadow support, what should i use ?
As for now, i use this configuration :
JTextArea textFieldNews = new JTextArea(); textFieldNews.setOpaque(false); textFieldNews.setFocusable(false); textFieldNews.setForeground(Color.white); textFieldNews.setFont(Font.createFont(Font.TRUETYPE_FONT, new File("fonts/myfont.ttf")).deriveFont(Font.TRUETYPE_FONT, 18)); textFieldNews.setText("Shocking news, are you shocked ?");