本文整理了Java中javax.swing.JSplitPane.getRightComponent()
方法的一些代码示例,展示了JSplitPane.getRightComponent()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JSplitPane.getRightComponent()
方法的具体详情如下:
包路径:javax.swing.JSplitPane
类名称:JSplitPane
方法名:getRightComponent
暂无
代码示例来源:origin: apache/pdfbox
return;
if (jSplitPane1.getRightComponent() == null
|| !jSplitPane1.getRightComponent().equals(jScrollPane2))
代码示例来源:origin: net.sf.squirrel-sql/squirrel-sql
@Override
public Component getDetailTabComp()
{
return _splitPane.getRightComponent();
}
代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-ui
/**
* Convenience method for determining if the source window is active
*/
private boolean isSourceWindowActive() {
return (jspSource != null && jspSource == jspltDisplay.getRightComponent());
}
代码示例来源:origin: realXuJiang/bigtable-sql
@Override
public Component getDetailTabComp()
{
return _splitPane.getRightComponent();
}
代码示例来源:origin: freeplane/freeplane
private boolean isDividerRequired(final JSplitPane splitPane) {
final Component rightComponent = splitPane.getRightComponent();
final boolean rightComponentVisible = rightComponent != null&& rightComponent.isVisible();
return rightComponentVisible;
}
代码示例来源:origin: Audiveris/audiveris
@Override
public void removeErrorsPane (JComponent errorsPane)
{
// To avoid race conditions, check we remove the proper errors pane
if ((errorsPane != null) && (errorsPane == bottomPane.getRightComponent())) {
bottomPane.setRightComponent(null);
}
}
代码示例来源:origin: de.richtercloud/flexdock-core
public static Component getOtherComponent(JSplitPane split, Component current) {
if(split==null || current==null) {
return null;
}
Component other = split.getLeftComponent();
if(other==current) {
other = split.getRightComponent();
}
return other;
}
代码示例来源:origin: stackoverflow.com
private static void swap(JSplitPane split) {
Component r = split.getRightComponent();
Component l = split.getLeftComponent();
// remove the components
split.setLeftComponent(null);
split.setRightComponent(null);
// add them swapped
split.setLeftComponent(r);
split.setRightComponent(l);
}
代码示例来源:origin: cybergarage/cybergarage-upnp
private void setRightComponent(Component comp)
{
JSplitPane spane = getDeviceSplitPane();
Component newComp = comp;//new JScrollPane(comp);
Component currComp = spane.getRightComponent();
newComp.setSize(currComp.getSize());
spane.setRightComponent(newComp);
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-lib-profiler-ui
private Component getSecondComponent(JSplitPane splitPane) {
if (splitPane.getOrientation() == JSplitPane.HORIZONTAL_SPLIT) {
return splitPane.getRightComponent();
} else {
return splitPane.getBottomComponent();
}
}
代码示例来源:origin: com.eas.platypus/platypus-js-forms
@ScriptFunction(jsDoc = SECOND_COMPONENT_JSDOC)
@Undesignable
public JComponent getSecondComponent() {
return (JComponent) super.getRightComponent();
}
代码示例来源:origin: org.bitbucket.goalhub.simpleide/jedit
private static void getEditPanes(List<EditPane> vec, Component comp)
{
if(comp instanceof EditPane)
vec.add((EditPane) comp);
else if(comp instanceof JSplitPane)
{
JSplitPane split = (JSplitPane)comp;
getEditPanes(vec,split.getLeftComponent());
getEditPanes(vec,split.getRightComponent());
}
} //}}}
代码示例来源:origin: dsukhoroslov/bagri
public void dispose() {
removePropertyChangeListener(this);
mainTree.setEnabled(false);
splitPane.getRightComponent().setEnabled(false);
splitPane.setEnabled(false);
}
代码示例来源:origin: lycying/c2d-engine
public void actionPerformed(ActionEvent e) {
btnStop.setEnabled(true);
mnExamples.setEnabled(false);
mnFile.setEnabled(false);
disabledObjectListPanel.setEnabled(false);
mainContentSplitPane.getRightComponent().setEnabled(false);
MainScene.INSTANCE.simulation();
}
});
代码示例来源:origin: lycying/c2d-engine
public void actionPerformed(ActionEvent e) {
btnStop.setEnabled(false);
disabledObjectListPanel.setEnabled(true);
mnExamples.setEnabled(true);
mnFile.setEnabled(true);
mainContentSplitPane.getRightComponent().setEnabled(true);
MainScene.INSTANCE.stopSimulation();
}
});
代码示例来源:origin: de.richtercloud/flexdock-core
private String findSiblingId(Dockable dockable) {
Component comp = dockable.getComponent();
JSplitPane split = comp.getParent() instanceof JSplitPane? (JSplitPane)comp.getParent(): null;
if(split==null) {
return null;
}
Component sibling = split.getLeftComponent();
if(comp==sibling) {
sibling = split.getRightComponent();
}
Dockable d = findDockable(sibling);
return d==null? null: d.getPersistentId();
}
代码示例来源:origin: lycying/c2d-engine
private void fillRightPart(Component comp) {
mainContentSplitPane.setRightComponent(comp);
mainContentSplitPane.getLeftComponent().setMinimumSize(new Dimension(0, 0));
mainContentSplitPane.getLeftComponent().setMaximumSize(new Dimension(0, 0));
mainContentSplitPane.getRightComponent().setMinimumSize(new Dimension(250, 0));
frmCdboxdSceneEditor.validate();
canvasPanel.getComponent(0).requestFocus();//focus the main canvas
}
代码示例来源:origin: com.github.arnabk/pgslookandfeel
public void installDefaults() {
super.installDefaults();
maybeSetShadowBorder(splitPane.getLeftComponent());
maybeSetShadowBorder(splitPane.getRightComponent());
}
代码示例来源:origin: de.richtercloud/flexdock-core
protected Component getElderComponent(JSplitPane splitPane) {
if (splitPane instanceof DockingSplitPane) {
return ((DockingSplitPane) splitPane).getElderComponent();
}
boolean inTopLeft = isElderTopLeft(splitPane);
Component comp = inTopLeft ? splitPane.getLeftComponent() : splitPane
.getRightComponent();
if (comp instanceof DockingPort) {
comp = ((DockingPort) comp).getDockedComponent();
}
return comp;
}
代码示例来源:origin: com.github.arnabk/pgslookandfeel
public void uninstallDefaults() {
super.uninstallDefaults();
maybeRemoveShadowBorder(splitPane.getLeftComponent());
maybeRemoveShadowBorder(splitPane.getRightComponent());
}
内容来源于网络,如有侵权,请联系作者删除!