|
|
@ -91,10 +91,14 @@ public class LayoutBorderPreviewPane extends JPanel{ |
|
|
|
jp.setPreferredSize(new Dimension(getWidth() - GAP, height)); |
|
|
|
jp.setPreferredSize(new Dimension(getWidth() - GAP, height)); |
|
|
|
jp.setBounds(smallGAP,smallGAP, getWidth() - GAP, height); |
|
|
|
jp.setBounds(smallGAP,smallGAP, getWidth() - GAP, height); |
|
|
|
borderStyle.paint(g, new Rectangle2D.Double(smallGAP, smallGAP, getWidth() - GAP, getHeight() - GAP)); |
|
|
|
borderStyle.paint(g, new Rectangle2D.Double(smallGAP, smallGAP, getWidth() - GAP, getHeight() - GAP)); |
|
|
|
jp.setFontObject(borderStyle.getTitle().getFrFont()); |
|
|
|
showTitlePreviewPane(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected void showTitlePreviewPane(){ |
|
|
|
|
|
|
|
jp.setVisible(borderStyle.getType() == LayoutBorderStyle.TITLE); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private class titlePreviewPane extends UITextArea { |
|
|
|
private class titlePreviewPane extends UITextArea { |
|
|
|
private FRFont frFont = null; |
|
|
|
private FRFont frFont = null; |
|
|
|
|
|
|
|
|
|
|
|