|
|
@ -20,6 +20,11 @@ public class UITextArea extends JTextArea implements UIObserver { |
|
|
|
initComponents(); |
|
|
|
initComponents(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
public Insets getInsets() { |
|
|
|
|
|
|
|
return new Insets(5, 5, 5, 5); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public UITextArea() { |
|
|
|
public UITextArea() { |
|
|
|
super(); |
|
|
|
super(); |
|
|
|
InputEventBaseOnOS.addBasicEditInputMap(this); |
|
|
|
InputEventBaseOnOS.addBasicEditInputMap(this); |
|
|
@ -32,26 +37,6 @@ public class UITextArea extends JTextArea implements UIObserver { |
|
|
|
initComponents(); |
|
|
|
initComponents(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* @param args |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
public static void main(String... args) { |
|
|
|
|
|
|
|
// JFrame jf = new JFrame("test");
|
|
|
|
|
|
|
|
// jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
|
|
|
|
|
|
|
// JPanel content = (JPanel) jf.getContentPane();
|
|
|
|
|
|
|
|
// content.setLayout(new BorderLayout());
|
|
|
|
|
|
|
|
// UITextArea bb = new UITextArea("123455weoijweio reiwj kewl jfejkfljds kl jfldk jfk jdskfjkdsfklj dkl jfsdjf");
|
|
|
|
|
|
|
|
// content.add(bb, BorderLayout.CENTER);
|
|
|
|
|
|
|
|
// GUICoreUtils.centerWindow(jf);
|
|
|
|
|
|
|
|
// jf.setSize(400, 400);
|
|
|
|
|
|
|
|
// jf.setVisible(true);
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
public Insets getInsets() { |
|
|
|
|
|
|
|
return new Insets(5, 5, 5, 5); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void initComponents() { |
|
|
|
private void initComponents() { |
|
|
|
setLineWrap(true); |
|
|
|
setLineWrap(true); |
|
|
|
setWrapStyleWord(true); |
|
|
|
setWrapStyleWord(true); |
|
|
@ -134,4 +119,19 @@ public class UITextArea extends JTextArea implements UIObserver { |
|
|
|
public boolean shouldResponseChangeListener() { |
|
|
|
public boolean shouldResponseChangeListener() { |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* @param args |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
public static void main(String... args) { |
|
|
|
|
|
|
|
// JFrame jf = new JFrame("test");
|
|
|
|
|
|
|
|
// jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
|
|
|
|
|
|
|
// JPanel content = (JPanel) jf.getContentPane();
|
|
|
|
|
|
|
|
// content.setLayout(new BorderLayout());
|
|
|
|
|
|
|
|
// UITextArea bb = new UITextArea("123455weoijweio reiwj kewl jfejkfljds kl jfldk jfk jdskfjkdsfklj dkl jfsdjf");
|
|
|
|
|
|
|
|
// content.add(bb, BorderLayout.CENTER);
|
|
|
|
|
|
|
|
// GUICoreUtils.centerWindow(jf);
|
|
|
|
|
|
|
|
// jf.setSize(400, 400);
|
|
|
|
|
|
|
|
// jf.setVisible(true);
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |