protected Component buildUserFont(){
return new JButton("User Font");
}
protected Component buildBehavior(){
JGridBagPanel p = new JGridBagPanel();
showRendering
= new JCheckBox(Resources.getString(LABEL_SHOW_RENDERING));
autoAdjustWindow
= new JCheckBox(Resources.getString(LABEL_AUTO_ADJUST_WINDOW));
enableDoubleBuffering
= new JCheckBox(Resources.getString(LABEL_ENABLE_DOUBLE_BUFFERING));
enableDoubleBuffering.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
System.out.println("enableDoubleBuffering.actionPerformed");
showRendering.setEnabled(!enableDoubleBuffering.isSelected());
}
});
showDebugTrace
= new JCheckBox(Resources.getString(LABEL_SHOW_DEBUG_TRACE));
selectionXorMode
= new JCheckBox(Resources.getString(LABEL_SELECTION_XOR_MODE));
isXMLParserValidating
= new JCheckBox(Resources.getString(LABEL_IS_XML_PARSER_VALIDATING));
p.add(showRendering, 0, 0, 1, 1, WEST, HORIZONTAL, 1, 0);
p.add(autoAdjustWindow, 0, 1, 1, 1, WEST, HORIZONTAL, 1, 0);
p.add(enableDoubleBuffering, 0, 2, 1, 1, WEST, HORIZONTAL, 1, 0);
p.add(showDebugTrace, 0, 3, 1, 1, WEST, HORIZONTAL, 1, 0);
p.add(selectionXorMode, 0, 4, 1, 1, WEST, HORIZONTAL, 1, 0);
p.add(isXMLParserValidating, 0, 5, 1, 1, WEST, HORIZONTAL, 1, 0);
p.setBorder(BorderFactory.createCompoundBorder
(BorderFactory.createTitledBorder
(BorderFactory.createEtchedBorder(),
Resources.getString(TITLE_BEHAVIOR)),
BorderFactory.createEmptyBorder(10, 10, 10, 10)));