本文整理了Java中javax.swing.JSplitPane.setEnabled()
方法的一些代码示例,展示了JSplitPane.setEnabled()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JSplitPane.setEnabled()
方法的具体详情如下:
包路径:javax.swing.JSplitPane
类名称:JSplitPane
方法名:setEnabled
暂无
代码示例来源:origin: org.codehaus.mevenide/nb-repo-browser
private void hideFind() {
pnlFind.removeAll();
pnlFind.setVisible(false);
jSplitPane1.setDividerLocation(1.0);
jSplitPane1.setEnabled(false);
}
代码示例来源:origin: com.eas.platypus/platypus-js-forms
@ScriptFunction
@Override
public void setEnabled(boolean aValue) {
super.setEnabled(aValue);
}
代码示例来源:origin: org.codehaus.mevenide/nb-repo-browser
private void showFind(List<QueryField> fields, DialogDescriptor dd) {
FindResultsPanel pnl = new FindResultsPanel(new ActionListener() {
public void actionPerformed(ActionEvent e) {
hideFind();
}
}, dd);
pnl.find(fields);
pnlFind.add(pnl);
pnlFind.setVisible(true);
jSplitPane1.setEnabled(true);
jSplitPane1.setDividerLocation(0.5);
}
代码示例来源:origin: dsukhoroslov/bagri
public void dispose() {
removePropertyChangeListener(this);
mainTree.setEnabled(false);
splitPane.getRightComponent().setEnabled(false);
splitPane.setEnabled(false);
}
代码示例来源:origin: tomsik68/mclauncher-api
public LauncherComponent(URLClassLoader loader) {
System.setProperty("minecraft.applet.WrapperClass", getClass().getName());
this.loader = loader;
this.params.put("fullscreen", "false");
setLayout(new BorderLayout());
this.splitPane = new JSplitPane();
this.splitPane.setEnabled(false);
this.splitPane.setResizeWeight(1.0D);
this.splitPane.setOrientation(0);
this.model = new DefaultTableModel();
this.model.addColumn("Key");
this.model.addColumn("Value");
this.model.setRowCount(5);
JTable tbParameters = new JTable(this.model);
this.splitPane.setLeftComponent(tbParameters);
JButton btStart = new JButton("Start Minecraft");
btStart.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
LauncherComponent.this.startMinecraft();
}
});
this.splitPane.setRightComponent(btStart);
}
代码示例来源:origin: ATLauncher/ATLauncher
public NilCard(String message) {
super(new BorderLayout());
RelocalizationManager.addListener(this);
if (Utils.isMac()) {
this.setBorder(new TitledBorder(null, Language.INSTANCE.localize("common.nothingtoshow"), TitledBorder
.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION, new Font("SansSerif", Font.BOLD, 14)));
} else {
this.setBorder(new TitledBorder(null, Language.INSTANCE.localize("common.nothingtoshow"), TitledBorder
.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION, new Font("SansSerif", Font.BOLD, 15)));
}
this.error.setBorder(BorderFactory.createEmptyBorder());
this.error.setEditable(false);
this.error.setHighlighter(null);
this.error.setLineWrap(true);
this.error.setWrapStyleWord(true);
this.error.setText(message);
this.splitter.setEnabled(false);
this.splitter.setLeftComponent(new ImagePanel(defaultImage));
this.splitter.setRightComponent(this.error);
this.add(this.splitter, BorderLayout.CENTER);
}
代码示例来源:origin: ATLauncher/ATLauncher
this.splitter.setLeftComponent(this.image);
this.splitter.setRightComponent(this.rightPanel);
this.splitter.setEnabled(false);
JPanel bottom = new JPanel(new FlowLayout());
JSplitPane as = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
as.setEnabled(false);
as.setTopComponent(top);
as.setBottomComponent(bottom);
代码示例来源:origin: ATLauncher/ATLauncher
this.splitter.setEnabled(false);
as.setEnabled(false);
as.setTopComponent(top);
as.setBottomComponent(bottom);
代码示例来源:origin: xSAVIKx/AndroidScreencast
buttonPane.setLayout(new GridLayout(1, 2));
JSplitPane splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT, listScrollPane, buttonPane);
splitPane.setEnabled(false);
getContentPane().add(splitPane);
pack();
代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-ui
/**
* Method for toggling source window visibility
*/
private void toggleSourceWindow() {
if (!(isSourceWindowActive())) {
jtpSource.setText(jtpMain.getText());
jspltDisplay.setRightComponent(jspSource);
if (exclusiveEdit) {
jspltDisplay.setDividerLocation(0);
jspltDisplay.setEnabled(false);
jtpSource.requestFocus();
} else {
jspltDisplay.setDividerLocation(iSplitPos);
jspltDisplay.setEnabled(true);
}
} else {
jtpMain.setText(jtpSource.getText());
iSplitPos = jspltDisplay.getDividerLocation();
jspltDisplay.remove(jspSource);
jtpMain.requestFocus();
}
this.validate();
jcbmiViewSource.setSelected(isSourceWindowActive());
jtbtnViewSource.setSelected(isSourceWindowActive());
}
代码示例来源:origin: girtel/Net2Plan
aux_Panel.setEnabled(false);
aux_Panel.setDividerLocation(0.3);
aux_Panel.setDividerSize(0 );
代码示例来源:origin: girtel/Net2Plan
splitPane.setEnabled(true);
splitPane.setOneTouchExpandable(true);
splitPane.setDividerLocation(0.4);
代码示例来源:origin: tamirhassan/pdfxtk
split.setEnabled(false);
代码示例来源:origin: ATLauncher/ATLauncher
split.setDividerSize(0);
split.setBorder(null);
split.setEnabled(false);
add(split, BorderLayout.NORTH);
labelsTop.setDividerSize(0);
labelsTop.setBorder(null);
labelsTop.setEnabled(false);
split.setLeftComponent(labelsTop);
labels.setDividerSize(0);
labels.setBorder(null);
labels.setEnabled(false);
split.setRightComponent(labels);
modsInPack.setDividerSize(0);
modsInPack.setBorder(null);
modsInPack.setEnabled(false);
add(modsInPack, BorderLayout.CENTER);
代码示例来源:origin: edu.utah.bmi.nlp/nlp-core
readerInitializerSplitPane.setEnabled(onOff);
collectionReaderPanel.setEnabled(onOff);
collectionReaderTitledBorder.setTitleColor(titleColor);
代码示例来源:origin: org.apache.uima/uimaj-tools
readerInitializerSplitPane.setEnabled(onOff);
collectionReaderPanel.setEnabled(onOff);
collectionReaderTitledBorder.setTitleColor(titleColor);
代码示例来源:origin: eu.mihosoft.vrl/vrl
splitPane.setEnabled(true);// true = transparent
splitPane.setBackground(VSwingUtil.TRANSPARENT_COLOR);
splitPane.setBorder(new EmptyBorder(5, 5, 5, 5));
代码示例来源:origin: eu.mihosoft.vrl/vrl
splitPane.setEnabled(true);// true = transparent
splitPane.setBackground(VSwingUtil.TRANSPARENT_COLOR);
splitPane.setBorder(new EmptyBorder(5, 5, 5, 5));
代码示例来源:origin: ATLauncher/ATLauncher
split.setDividerSize(0);
split.setBorder(null);
split.setEnabled(false);
add(split, BorderLayout.NORTH);
labelsTop.setDividerSize(0);
labelsTop.setBorder(null);
labelsTop.setEnabled(false);
split.setLeftComponent(labelsTop);
labels.setDividerSize(0);
labels.setBorder(null);
labels.setEnabled(false);
split.setRightComponent(labels);
modsInPack.setDividerSize(0);
modsInPack.setBorder(null);
modsInPack.setEnabled(false);
add(modsInPack, BorderLayout.CENTER);
内容来源于网络,如有侵权,请联系作者删除!