tdf#97642 Use native theming for swing controls in Beanshell Editor
Change-Id: Ifb2f3cfe5132e9b6f7d5d2df5868b09b39c5ec47 Reviewed-on: https://gerrit.libreoffice.org/22429 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
This commit is contained in:
committed by
Chris Sherlock
parent
9f7f881d11
commit
9046ce5cb9
@@ -30,6 +30,7 @@ import javax.swing.JScrollPane;
|
||||
import javax.swing.JTextArea;
|
||||
import javax.swing.event.DocumentEvent;
|
||||
import javax.swing.event.DocumentListener;
|
||||
import javax.swing.UIManager;
|
||||
import javax.swing.text.BadLocationException;
|
||||
|
||||
public class PlainSourceView extends JScrollPane implements
|
||||
@@ -93,6 +94,12 @@ public class PlainSourceView extends JScrollPane implements
|
||||
}
|
||||
|
||||
private void initUI() {
|
||||
try{
|
||||
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
|
||||
}
|
||||
catch(Exception e){
|
||||
// What to do here
|
||||
}
|
||||
ta = new JTextArea();
|
||||
ta.setRows(15);
|
||||
ta.setColumns(40);
|
||||
|
Reference in New Issue
Block a user