diff --git a/designer/src/com/fr/design/mainframe/alphafine/preview/DocumentPreviewPane.java b/designer/src/com/fr/design/mainframe/alphafine/preview/DocumentPreviewPane.java index 0fbfe4a2d8..6aa46f1a63 100644 --- a/designer/src/com/fr/design/mainframe/alphafine/preview/DocumentPreviewPane.java +++ b/designer/src/com/fr/design/mainframe/alphafine/preview/DocumentPreviewPane.java @@ -14,8 +14,8 @@ public class DocumentPreviewPane extends JPanel { public DocumentPreviewPane(String title, String summary) { this.setLayout(new BorderLayout()); + this.setBackground(Color.WHITE); this.setPreferredSize(new Dimension(AlphaFineConstants.RIGHT_WIDTH, AlphaFineConstants.CONTENT_HEIGHT)); - this.setBackground(Color.white); UITextArea titleArea = new UITextArea(title); titleArea.setBorder(null); titleArea.setEditable(false); diff --git a/designer_base/src/com/fr/design/gui/itextarea/UITextArea.java b/designer_base/src/com/fr/design/gui/itextarea/UITextArea.java index ede8be5932..9f6010f4ab 100644 --- a/designer_base/src/com/fr/design/gui/itextarea/UITextArea.java +++ b/designer_base/src/com/fr/design/gui/itextarea/UITextArea.java @@ -20,6 +20,11 @@ public class UITextArea extends JTextArea implements UIObserver { initComponents(); } + @Override + public Insets getInsets() { + return new Insets(5, 5, 5, 5); + } + public UITextArea() { super(); InputEventBaseOnOS.addBasicEditInputMap(this); @@ -32,26 +37,6 @@ public class UITextArea extends JTextArea implements UIObserver { 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() { setLineWrap(true); setWrapStyleWord(true); @@ -134,4 +119,19 @@ public class UITextArea extends JTextArea implements UIObserver { public boolean shouldResponseChangeListener() { 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); + } } \ No newline at end of file