Example usage for javax.swing JSplitPane JSplitPane

List of usage examples for javax.swing JSplitPane JSplitPane

Introduction

In this page you can find the example usage for javax.swing JSplitPane JSplitPane.

Prototype

@ConstructorProperties({ "orientation" })
public JSplitPane(int newOrientation) 

Source Link

Document

Creates a new JSplitPane configured with the specified orientation.

Usage

From source file:net.sourceforge.msscodefactory.cffreeswitch.v2_4.CFFreeSwitchSwing.CFFreeSwitchSwingFSSFConferenceProfileViewEditJPanel.java

public CFFreeSwitchSwingFSSFConferenceProfileViewEditJPanel(ICFFreeSwitchSwingSchema argSchema,
        ICFFreeSwitchFSSFConferenceProfileObj argFocus) {
    super();/*from   w ww  . ja  v a 2  s.  c  o m*/
    final String S_ProcName = "construct-schema-focus";
    if (argSchema == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 1,
                "argSchema");
    }
    // argFocus is optional; focus may be set later during execution as
    // conditions of the runtime change.
    swingSchema = argSchema;
    setSwingFocus(argFocus);
    setSize(1024, 480);
    splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
    attrJPanel = argSchema.getFSSFConferenceProfileFactory().newAttrJPanel(argFocus);
    attrScrollPane = new CFHSlaveJScrollPane(attrJPanel);
    eltJTabbedPane = argSchema.getFSSFConferenceProfileFactory().newEltJTabbedPane(argFocus);
    splitPane.setTopComponent(attrScrollPane);
    splitPane.setBottomComponent(eltJTabbedPane);
    add(splitPane);
    splitPane.setBounds(0, 0, 1024, 455);
    splitPane.setDividerLocation(200);
    if (getSwingFocus() != null) {
        setPanelMode(CFJPanel.PanelMode.View);
    }
    doLayout();
}

From source file:org.datacleaner.widgets.result.CategorizationResultSwingRenderer.java

@Override
public JComponent render(CategorizationResult analyzerResult) {
    final DefaultPieDataset dataset = new DefaultPieDataset();
    final Collection<String> categoryNames = analyzerResult.getCategoryNames();
    for (String categoryName : categoryNames) {
        final Number count = analyzerResult.getCategoryCount(categoryName);
        dataset.setValue(categoryName, count);
    }/*  w  w  w. j  a v a2s.c  o  m*/

    final DefaultTableModel model = prepareModel(analyzerResult, dataset);

    final DCTable table = new DCTable(model);
    table.setColumnControlVisible(false);
    table.setRowHeight(22);

    final JFreeChart chart = ChartFactory.createPieChart(null, dataset, true, false, false);
    ChartUtils.applyStyles(chart);

    final ChartPanel chartPanel = ChartUtils.createPanel(chart, false);

    final DCPanel leftPanel = WidgetUtils.decorateWithShadow(chartPanel);

    final DCPanel rightPanel = new DCPanel();
    rightPanel.setLayout(new VerticalLayout());
    rightPanel.add(WidgetUtils.decorateWithShadow(table.toPanel()));

    final JSplitPane split = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT);
    split.setOpaque(false);
    split.add(leftPanel);
    split.add(rightPanel);
    split.setDividerLocation(550);

    return split;
}

From source file:gui.accessories.BattleSimFx.java

@Override
public void init() {
    tableModel = new SampleTableModel();
    // create javafx panel for charts
    chartFxPanel = new JFXPanel();
    chartFxPanel.setPreferredSize(new Dimension(PANEL_WIDTH_INT, PANEL_HEIGHT_INT));

    //JTable//from   w  w  w .ja  v a  2 s .c om
    JTable table = new JTable(tableModel);
    table.setAutoCreateRowSorter(true);
    table.setGridColor(Color.DARK_GRAY);
    BattleSimFx.DecimalFormatRenderer renderer = new BattleSimFx.DecimalFormatRenderer();
    renderer.setHorizontalAlignment(JLabel.RIGHT);
    for (int i = 0; i < table.getColumnCount(); i++) {
        table.getColumnModel().getColumn(i).setCellRenderer(renderer);
    }
    JScrollPane tablePanel = new JScrollPane(table);
    tablePanel.setPreferredSize(new Dimension(PANEL_WIDTH_INT, TABLE_PANEL_HEIGHT_INT));

    JPanel chartTablePanel = new JPanel();
    chartTablePanel.setLayout(new BorderLayout());

    //Split pane that holds both chart and table
    JSplitPane jsplitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
    jsplitPane.setTopComponent(chartTablePanel);
    jsplitPane.setBottomComponent(tablePanel);
    jsplitPane.setDividerLocation(410);
    chartTablePanel.add(chartFxPanel, BorderLayout.CENTER);

    //          add(tablePanel, BorderLayout.CENTER);
    add(jsplitPane, BorderLayout.CENTER);

    // create JavaFX scene
    Platform.runLater(new Runnable() {
        @Override
        public void run() {
            createScene();
        }
    });
}

From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccSwing.CFAccSwingTagViewEditJPanel.java

public CFAccSwingTagViewEditJPanel(ICFAccSwingSchema argSchema, ICFAccTagObj argFocus) {
    super();/*from w w w  . j  a  v a2  s.c om*/
    final String S_ProcName = "construct-schema-focus";
    if (argSchema == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 1,
                "argSchema");
    }
    // argFocus is optional; focus may be set later during execution as
    // conditions of the runtime change.
    swingSchema = argSchema;
    setSwingFocus(argFocus);
    setSize(1024, 480);
    splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
    attrJPanel = argSchema.getTagFactory().newAttrJPanel(argFocus);
    attrScrollPane = new CFHSlaveJScrollPane(attrJPanel);
    eltJTabbedPane = argSchema.getTagFactory().newEltJTabbedPane(argFocus);
    splitPane.setTopComponent(attrScrollPane);
    splitPane.setBottomComponent(eltJTabbedPane);
    add(splitPane);
    splitPane.setBounds(0, 0, 1024, 455);
    splitPane.setDividerLocation(200);
    if (getSwingFocus() != null) {
        setPanelMode(CFJPanel.PanelMode.View);
    }
    doLayout();
}

From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccSwing.CFAccSwingTldViewEditJPanel.java

public CFAccSwingTldViewEditJPanel(ICFAccSwingSchema argSchema, ICFAccTldObj argFocus) {
    super();//from   w  w w.  j  a v  a  2  s  .co  m
    final String S_ProcName = "construct-schema-focus";
    if (argSchema == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 1,
                "argSchema");
    }
    // argFocus is optional; focus may be set later during execution as
    // conditions of the runtime change.
    swingSchema = argSchema;
    setSwingFocus(argFocus);
    setSize(1024, 480);
    splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
    attrJPanel = argSchema.getTldFactory().newAttrJPanel(argFocus);
    attrScrollPane = new CFHSlaveJScrollPane(attrJPanel);
    eltJTabbedPane = argSchema.getTldFactory().newEltJTabbedPane(argFocus);
    splitPane.setTopComponent(attrScrollPane);
    splitPane.setBottomComponent(eltJTabbedPane);
    add(splitPane);
    splitPane.setBounds(0, 0, 1024, 455);
    splitPane.setDividerLocation(200);
    if (getSwingFocus() != null) {
        setPanelMode(CFJPanel.PanelMode.View);
    }
    doLayout();
}

From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstSwing.CFAstSwingTldViewEditJPanel.java

public CFAstSwingTldViewEditJPanel(ICFAstSwingSchema argSchema, ICFAstTldObj argFocus) {
    super();//from w  ww . j a  v a2s. c  om
    final String S_ProcName = "construct-schema-focus";
    if (argSchema == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 1,
                "argSchema");
    }
    // argFocus is optional; focus may be set later during execution as
    // conditions of the runtime change.
    swingSchema = argSchema;
    setSwingFocus(argFocus);
    setSize(1024, 480);
    splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
    attrJPanel = argSchema.getTldFactory().newAttrJPanel(argFocus);
    attrScrollPane = new CFHSlaveJScrollPane(attrJPanel);
    eltJTabbedPane = argSchema.getTldFactory().newEltJTabbedPane(argFocus);
    splitPane.setTopComponent(attrScrollPane);
    splitPane.setBottomComponent(eltJTabbedPane);
    add(splitPane);
    splitPane.setBounds(0, 0, 1024, 455);
    splitPane.setDividerLocation(200);
    if (getSwingFocus() != null) {
        setPanelMode(CFJPanel.PanelMode.View);
    }
    doLayout();
}

From source file:net.sourceforge.msscodefactory.cffreeswitch.v2_0.CFFswSwing.CFFswSwingTldViewEditJPanel.java

public CFFswSwingTldViewEditJPanel(ICFFswSwingSchema argSchema, ICFFswTldObj argFocus) {
    super();/* w  w  w  .j  a  va2  s.  c  o  m*/
    final String S_ProcName = "construct-schema-focus";
    if (argSchema == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 1,
                "argSchema");
    }
    // argFocus is optional; focus may be set later during execution as
    // conditions of the runtime change.
    swingSchema = argSchema;
    setSwingFocus(argFocus);
    setSize(1024, 480);
    splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
    attrJPanel = argSchema.getTldFactory().newAttrJPanel(argFocus);
    attrScrollPane = new CFHSlaveJScrollPane(attrJPanel);
    eltJTabbedPane = argSchema.getTldFactory().newEltJTabbedPane(argFocus);
    splitPane.setTopComponent(attrScrollPane);
    splitPane.setBottomComponent(eltJTabbedPane);
    add(splitPane);
    splitPane.setBounds(0, 0, 1024, 455);
    splitPane.setDividerLocation(200);
    if (getSwingFocus() != null) {
        setPanelMode(CFJPanel.PanelMode.View);
    }
    doLayout();
}

From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccSwing.CFAccSwingMemoViewEditJPanel.java

public CFAccSwingMemoViewEditJPanel(ICFAccSwingSchema argSchema, ICFAccMemoObj argFocus) {
    super();// w  ww .j ava2 s . com
    final String S_ProcName = "construct-schema-focus";
    if (argSchema == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 1,
                "argSchema");
    }
    // argFocus is optional; focus may be set later during execution as
    // conditions of the runtime change.
    swingSchema = argSchema;
    setSwingFocus(argFocus);
    setSize(1024, 480);
    splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
    attrJPanel = argSchema.getMemoFactory().newAttrJPanel(argFocus);
    attrScrollPane = new CFHSlaveJScrollPane(attrJPanel);
    eltJTabbedPane = argSchema.getMemoFactory().newEltJTabbedPane(argFocus);
    splitPane.setTopComponent(attrScrollPane);
    splitPane.setBottomComponent(eltJTabbedPane);
    add(splitPane);
    splitPane.setBounds(0, 0, 1024, 455);
    splitPane.setDividerLocation(200);
    if (getSwingFocus() != null) {
        setPanelMode(CFJPanel.PanelMode.View);
    }
    doLayout();
}

From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccSwing.CFAccSwingPhoneViewEditJPanel.java

public CFAccSwingPhoneViewEditJPanel(ICFAccSwingSchema argSchema, ICFAccPhoneObj argFocus) {
    super();//  w w  w .j  a v  a  2s.  c o m
    final String S_ProcName = "construct-schema-focus";
    if (argSchema == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 1,
                "argSchema");
    }
    // argFocus is optional; focus may be set later during execution as
    // conditions of the runtime change.
    swingSchema = argSchema;
    setSwingFocus(argFocus);
    setSize(1024, 480);
    splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
    attrJPanel = argSchema.getPhoneFactory().newAttrJPanel(argFocus);
    attrScrollPane = new CFHSlaveJScrollPane(attrJPanel);
    eltJTabbedPane = argSchema.getPhoneFactory().newEltJTabbedPane(argFocus);
    splitPane.setTopComponent(attrScrollPane);
    splitPane.setBottomComponent(eltJTabbedPane);
    add(splitPane);
    splitPane.setBounds(0, 0, 1024, 455);
    splitPane.setDividerLocation(200);
    if (getSwingFocus() != null) {
        setPanelMode(CFJPanel.PanelMode.View);
    }
    doLayout();
}

From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccSwing.CFAccSwingDomainViewEditJPanel.java

public CFAccSwingDomainViewEditJPanel(ICFAccSwingSchema argSchema, ICFAccDomainObj argFocus) {
    super();// www  .j  av  a 2s.  c om
    final String S_ProcName = "construct-schema-focus";
    if (argSchema == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 1,
                "argSchema");
    }
    // argFocus is optional; focus may be set later during execution as
    // conditions of the runtime change.
    swingSchema = argSchema;
    setSwingFocus(argFocus);
    setSize(1024, 480);
    splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
    attrJPanel = argSchema.getDomainFactory().newAttrJPanel(argFocus);
    attrScrollPane = new CFHSlaveJScrollPane(attrJPanel);
    eltJTabbedPane = argSchema.getDomainFactory().newEltJTabbedPane(argFocus);
    splitPane.setTopComponent(attrScrollPane);
    splitPane.setBottomComponent(eltJTabbedPane);
    add(splitPane);
    splitPane.setBounds(0, 0, 1024, 455);
    splitPane.setDividerLocation(200);
    if (getSwingFocus() != null) {
        setPanelMode(CFJPanel.PanelMode.View);
    }
    doLayout();
}