/**
* Gets the contentPanel attribute of the Tap object
*
* @return The contentPanel value
*/
private JPanel getContentPanel() {
JPanel content = new JPanel(new BorderLayout());
JTextPane txt = new JTextPane();
HTMLDocument doc = (HTMLDocument) txt.getEditorKitForContentType("text/html").createDefaultDocument();
doc.setAsynchronousLoadPriority(-1);
txt.setDocument(doc);
URL url = I18.getResource("create_tap.html");
try {
txt.setPage(url);
} catch (Exception ignored) {
}
txt.setEditable(false);
content.add("North", new JScrollPane(txt));
table = new YassTable();
table.setEnabled(false);
content.add("Center", scroll = new JScrollPane(table));
content.add("South", check = new JCheckBox(I18.get("create_tap_edit")));
check.setSelected(wizard.getValue("starteditor").equals("true"));
check.addItemListener(
new ItemListener() {
public void itemStateChanged(ItemEvent e) {
if (check.isSelected()) {
wizard.setValue("starteditor", "true");
} else {
wizard.setValue("starteditor", "false");
}
}
});
scroll.setPreferredSize(new Dimension(100, 100));
scroll.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
return content;
}
Tap.java 文件源码
java
阅读 29
收藏 0
点赞 0
评论 0
项目:Yass
作者:
评论列表
文章目录