当前位置: 首页>>代码示例>>Java>>正文


Java VerticalLayout类代码示例

本文整理汇总了Java中org.jdesktop.swingx.VerticalLayout的典型用法代码示例。如果您正苦于以下问题:Java VerticalLayout类的具体用法?Java VerticalLayout怎么用?Java VerticalLayout使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


VerticalLayout类属于org.jdesktop.swingx包,在下文中一共展示了VerticalLayout类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: ExportPanel

import org.jdesktop.swingx.VerticalLayout; //导入依赖的package包/类
public ExportPanel(int nrLayers) {
    setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));
    setLayout(new VerticalLayout(10));

    add(new JLabel(" Animation frames are based on the layers of the image. "));

    JPanel settings = new JPanel();
    settings.setLayout(new FlowLayout(FlowLayout.LEFT, 10, 10));
    settings.add(new JLabel("Delay Between Frames (Milliseconds):"));
    delayTF = new JTextField("200", 4);
    settings.add(delayTF);

    add(settings);

    if (nrLayers > 2) {
        pingPongCB = new JCheckBox("Ping Pong Animation");
    } else {
        pingPongCB = new JCheckBox("Ping Pong Animation (min 3 layers needed)");
        pingPongCB.setEnabled(false);
    }
    add(pingPongCB);
}
 
开发者ID:teddyted,项目名称:iSeleda,代码行数:23,代码来源:AnimGifExport.java

示例2: createTipOfTheDayDemo

import org.jdesktop.swingx.VerticalLayout; //导入依赖的package包/类
private void createTipOfTheDayDemo() {
    model = createTipOfTheDayModel();

    JXPanel panel = new JXPanel(new VerticalLayout());
    totd = new JXTipOfTheDay(model);
    totd.setName("totd");
    panel.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));
    panel.add(totd);

    nextTipLink = new JXHyperlink();
    nextTipLink.setName("nextTipLink");
    panel.add(nextTipLink, BorderLayout.SOUTH);
    add(panel);
    
    dialogLink = new JXHyperlink();
    dialogLink.setName("dialogLink");
    add(dialogLink, BorderLayout.SOUTH);
}
 
开发者ID:RockManJoe64,项目名称:swingx,代码行数:19,代码来源:TipOfTheDayDemo.java

示例3: getSelectorComponent

import org.jdesktop.swingx.VerticalLayout; //导入依赖的package包/类
private JComponent getSelectorComponent(List<Demo> demoSet) {
    JXTaskPaneContainer container = new JXTaskPaneContainer() {
        // Issue #1189-swingx: reasonable implementation of block increment
        @Override
        public int getScrollableBlockIncrement(Rectangle visibleRect,
                int orientation, int direction) {
            return SwingConstants.VERTICAL == orientation ? visibleRect.height :
                visibleRect.width;
        }
        
    };
    container.setLayout(new VerticalLayout(0));
    container.setBorder(BorderFactory.createEmptyBorder());
    for (Demo demo : demoSet) {
        String category = demo.getCategory();
        JXTaskPane taskPane = getTaskPane(category);
        if (taskPane == null) {
            taskPane = createTaskPane(demo);
            addTaskPane(taskPane, category);
            container.add(taskPane);
        }
        addDemo(taskPane, demo);
    }
    JScrollPane pane = new JScrollPane(container);
    return pane;
}
 
开发者ID:RockManJoe64,项目名称:swingx,代码行数:27,代码来源:DemoSelector.java

示例4: ServiceSelectionPane

import org.jdesktop.swingx.VerticalLayout; //导入依赖的package包/类
public ServiceSelectionPane(String[] selections, String selectedItem, HideablePane[] panes) {
	super(new VerticalLayout());
	selectionBox = new JComboBox(selections);
	selectionBox.setEditable(false);
	selectionBox.setSelectedItem(selectedItem);
	this.panes = panes;

	selectionBox.addActionListener(new ActionListener() {
		public void actionPerformed(ActionEvent e) {
			showSelectedService();
		}
	});

	showSelectedService();

	add(selectionBox);
	for (HideablePane pane : panes) {
		add(pane);
	}
}
 
开发者ID:Kaljurand,项目名称:aceview,代码行数:21,代码来源:ServiceSelectionPane.java

示例5: AbstractComponentBuilderPanel

import org.jdesktop.swingx.VerticalLayout; //导入依赖的package包/类
protected AbstractComponentBuilderPanel(final Image watermarkImage, final int watermarkHorizontalPosition,
        final int watermarkVerticalPosition, final ComponentBuilder componentBuilder,
        final PropertyWidgetFactory propertyWidgetFactory) {
    super(watermarkImage, watermarkHorizontalPosition, watermarkVerticalPosition,
            WidgetUtils.COLOR_WELL_BACKGROUND);
    _taskPaneContainer = WidgetFactory.createTaskPaneContainer();
    _taskPaneContainer.setLayout(new VerticalLayout(4));
    _componentBuilder = componentBuilder;
    _descriptor = componentBuilder.getDescriptor();
    _propertyWidgetFactory = propertyWidgetFactory;
    _propertyWidgetCollection = propertyWidgetFactory.getPropertyWidgetCollection();
    _outputDataStreamsViewer = new OutputDataStreamsViewer(_componentBuilder);

    setLayout(new BorderLayout());

    final JScrollPane scrolleable = WidgetUtils.scrolleable(_taskPaneContainer);
    add(scrolleable, BorderLayout.CENTER);

    _buttonPanel = createTopButtonPanel();
    add(_buttonPanel, BorderLayout.NORTH);
}
 
开发者ID:datacleaner,项目名称:DataCleaner,代码行数:22,代码来源:AbstractComponentBuilderPanel.java

示例6: getGeneralTab

import org.jdesktop.swingx.VerticalLayout; //导入依赖的package包/类
private DCPanel getGeneralTab() {
    final FilenameTextField saveDatastoreDirectoryField =
            new FilenameTextField(_userPreferences.getSaveDatastoreDirectory(), true);
    saveDatastoreDirectoryField.setFile(_userPreferences.getSaveDatastoreDirectory());
    saveDatastoreDirectoryField.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
    saveDatastoreDirectoryField.addFileSelectionListener(
            (filenameTextField, file) -> _userPreferences.setSaveDatastoreDirectory(file));

    final DCPanel directoriesPanel = new DCPanel().setTitledBorder("Files & directories");
    directoriesPanel.add(DCLabel.dark("Written datastores:"));
    directoriesPanel.add(saveDatastoreDirectoryField);

    final DCPanel panel = new DCPanel(WidgetUtils.COLOR_DEFAULT_BACKGROUND);
    panel.setLayout(new VerticalLayout(4));
    panel.add(getQuickAnalysisPanel());
    panel.add(directoriesPanel);

    return panel;
}
 
开发者ID:datacleaner,项目名称:DataCleaner,代码行数:20,代码来源:OptionsDialog.java

示例7: StreamConfigurationPanel

import org.jdesktop.swingx.VerticalLayout; //导入依赖的package包/类
public StreamConfigurationPanel(
		StreamConfiguration configuration,
		StreamConfiguration.StreamType[] allowedTypes,
		String defaultFileName,
		SizeChangedListener listener
) {
	super(new VerticalLayout());
	type = new ComboBox<>(allowedTypes);
	type.setSelectedItem(configuration.type);
	type.addActionListener(
			e -> {
				fileName.setVisible(((StreamConfiguration.StreamType) type.getSelectedItem()).hasStringParameter);
				if (listener != null) {
					listener.sizeChanged();
				}
			}
	);
	fileName = new JTextField(configuration.type.hasStringParameter ? configuration.fileName : defaultFileName);
	fileName.setVisible(((StreamConfiguration.StreamType) type.getSelectedItem()).hasStringParameter);

	add(type);
	add(fileName);
}
 
开发者ID:AlexeyDmitriev,项目名称:JHelper,代码行数:24,代码来源:StreamConfigurationPanel.java

示例8: DeviceHolder

import org.jdesktop.swingx.VerticalLayout; //导入依赖的package包/类
public DeviceHolder(){
    mLabelLayout = new JPanel(new VerticalLayout());
    mDeviceLabel = new JLabel();
    mIdLabel = new JLabel();

    mItemRoot.setPreferredSize(new Dimension(-1,36));
    mLabelLayout.add(mDeviceLabel);
    mLabelLayout.add(mIdLabel);
    mContentLayout.add(mLabelLayout);

    mActionIconLabel.setCursor(Utils.getHandCursor());
}
 
开发者ID:huazhouwang,项目名称:WIFIADB,代码行数:13,代码来源:DevicesAdapter.java

示例9: createDemo

import org.jdesktop.swingx.VerticalLayout; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
protected void createDemo() {
    setLayout(new VerticalLayout(5));
    
    basic = new JButton();
    add(basic);
    
    owner = new JButton();
    add(owner);
    
    nested = new JButton();
    add(nested);
}
 
开发者ID:RockManJoe64,项目名称:swingx,代码行数:16,代码来源:ErrorPaneDemo.java

示例10: createDemo

import org.jdesktop.swingx.VerticalLayout; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
protected void createDemo() {
    setLayout(new BorderLayout());
    
    imageView = new JXImageView();
    imageView.setName("imageView");
    add(imageView);
    
    JPanel sidebar = new JPanel(new VerticalLayout());
    openButton = new JButton();
    openButton.setName("openButton");
    sidebar.add(openButton);
    
    saveButton = new JButton();
    saveButton.setName("saveButton");
    sidebar.add(saveButton);
    
    rotateCWButton = new JButton();
    rotateCWButton.setName("rotateCW");
    sidebar.add(rotateCWButton);
    
    rotateCCWButton = new JButton();
    rotateCCWButton.setName("rotateCCW");
    sidebar.add(rotateCCWButton);
    
    zoomInButton = new JButton();
    zoomInButton.setName("zoomIn");
    sidebar.add(zoomInButton);
    
    zoomOutButton = new JButton();
    zoomOutButton.setName("zoomOut");
    sidebar.add(zoomOutButton);
    
    dragEnabledButton = new JToggleButton();
    dragEnabledButton.setName("dragEnabled");
    sidebar.add(dragEnabledButton);
    
    add(sidebar, BorderLayout.LINE_START);
}
 
开发者ID:RockManJoe64,项目名称:swingx,代码行数:42,代码来源:ImageViewDemo.java

示例11: createLoginPaneDemo

import org.jdesktop.swingx.VerticalLayout; //导入依赖的package包/类
private void createLoginPaneDemo() {
    service = new DemoLoginService();
    loginPane = new JXLoginPane(service);
    
    loginLauncher = new JButton();
    loginLauncher.setName("launcher");
    add(loginLauncher, BorderLayout.NORTH);
    
    JPanel p = new JPanel(new VerticalLayout());
    add(p);
    
    allowLogin = new JToggleButton();
    allowLogin.setName("allowLogin");
    p.add(allowLogin);
}
 
开发者ID:RockManJoe64,项目名称:swingx,代码行数:16,代码来源:LoginPaneDemo.java

示例12: setupWindow

import org.jdesktop.swingx.VerticalLayout; //导入依赖的package包/类
private void setupWindow() {
	setTitle("Mod Updater");
	setDefaultCloseOperation(DISPOSE_ON_CLOSE);
	setResizable(false);
	setModalityType(Dialog.ModalityType.APPLICATION_MODAL);
	setIconImages(ModManager.ICONS);
	JPanel panel = new JPanel(new VerticalLayout());

	statusLabel = new JLabel("Downloading server manifest");
	operationLabel = new JLabel("Downloading mod manifests from ME3Tweaks.com");
	panel.add(operationLabel);
	panel.add(statusLabel);
	// updatePanel.add(actionPanel);
	// updatePanel.add(sizeLabel);

	// aboutPanel.add(loggingMode, BorderLayout.SOUTH);
	panel.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
	this.getContentPane().add(panel);

	addWindowListener(new WindowAdapter() {
		@Override
		public void windowClosed(WindowEvent e) {
			if (amdt != null) {
				amdt.cancel(false);
			}
		}
	});
	pack();
	setLocationRelativeTo(callingWindow);
}
 
开发者ID:Mgamerz,项目名称:me3modmanager,代码行数:31,代码来源:AllModsUpdateWindow.java

示例13: getPanelMenu

import org.jdesktop.swingx.VerticalLayout; //导入依赖的package包/类
private JPanel getPanelMenu()
{
	if (panelMenus == null)
	{
		panelMenus = new JPanel();
		panelMenus.setLayout(new VerticalLayout());
		panelMenus.setBackground(UIManager.getColor("MenuItem.background"));
		panelMenus.setBorder(BorderFactory.createEmptyBorder());
	}
	return panelMenus;
}
 
开发者ID:metasfresh,项目名称:metasfresh,代码行数:12,代码来源:CColumnControlButton.java

示例14: HdfsServerAddressDialog

import org.jdesktop.swingx.VerticalLayout; //导入依赖的package包/类
public HdfsServerAddressDialog(final String host, final int port) {
    _hostnameField = WidgetFactory.createTextField("hostname", 10);
    if (host == null) {
        _hostnameField.setText("localhost");
    } else {
        _hostnameField.setText(host);
    }

    final NumberFormat integerFormat = NumberFormat.getIntegerInstance();
    integerFormat.setMaximumIntegerDigits(5);
    integerFormat.setMinimumIntegerDigits(1);
    integerFormat.setGroupingUsed(false);
    _portField = WidgetFactory.createFormattedTextField("port", 4, integerFormat);
    _portField.setDocument(new NumberDocument(false, false));
    _portField.setText("" + DEFAULT_PORT);
    if (port == -1) {
        _portField.setText("" + DEFAULT_PORT);
    } else {
        _portField.setText(Integer.toString(port));
    }

    _okButton = new JButton("OK");
    _cancelButton = new JButton("Cancel");

    setLayout(new VerticalLayout(2));
    final DCPanel propertiesPanel = new DCPanel();
    propertiesPanel.setLayout(new GridBagLayout());
    WidgetUtils.addToGridBag(DCLabel.dark("Hostname: "), propertiesPanel, 0, 0);
    WidgetUtils.addToGridBag(_hostnameField, propertiesPanel, 1, 0, 1, 1, GridBagConstraints.WEST,
            WidgetUtils.DEFAULT_PADDING, 1, 1, GridBagConstraints.HORIZONTAL);
    WidgetUtils.addToGridBag(DCLabel.dark("Port: "), propertiesPanel, 0, 1);
    WidgetUtils.addToGridBag(_portField, propertiesPanel, 1, 1, 1, 1, GridBagConstraints.WEST,
            WidgetUtils.DEFAULT_PADDING, 1, 1, GridBagConstraints.HORIZONTAL);

    add(propertiesPanel);
    add(DCPanel.flow(Alignment.RIGHT, _okButton, _cancelButton));
    setBorder(new EmptyBorder(WidgetUtils.DEFAULT_PADDING, WidgetUtils.DEFAULT_PADDING, WidgetUtils.DEFAULT_PADDING,
            WidgetUtils.DEFAULT_PADDING));
}
 
开发者ID:datacleaner,项目名称:DataCleaner,代码行数:40,代码来源:HdfsServerAddressDialog.java

示例15: getDialogContent

import org.jdesktop.swingx.VerticalLayout; //导入依赖的package包/类
@Override
protected JComponent getDialogContent() {
    final DCPanel formPanel = new DCPanel();

    // temporary variable to make it easier to refactor the layout
    WidgetUtils.addToGridBag(DCLabel.bright("Datastore name:"), formPanel, 0, 0);
    WidgetUtils.addToGridBag(_datastoreNameField, formPanel, 1, 0);

    final DCPanel checkBoxPanel = new DCPanel().setTitledBorder("Contained datastores");
    checkBoxPanel.setLayout(new VerticalLayout(4));

    for (final JCheckBox checkBox : _checkBoxes) {
        checkBoxPanel.add(checkBox);
    }

    final JScrollPane checkBoxScrollPane = WidgetUtils.scrolleable(checkBoxPanel);
    checkBoxScrollPane.setPreferredSize(new Dimension(checkBoxPanel.getWidth(), 300));
    checkBoxScrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
    checkBoxScrollPane.setBackground(_outerPanel.getBackground());
    WidgetUtils.addToGridBag(checkBoxScrollPane, formPanel, 0, 1, 2, 1);

    final DCPanel buttonPanel = getButtonPanel();

    final DCPanel centerPanel = new DCPanel();
    centerPanel.setLayout(new VerticalLayout(4));
    centerPanel.add(formPanel);
    centerPanel.add(buttonPanel);

    final JXStatusBar statusBar = WidgetFactory.createStatusBar(_statusLabel);

    _outerPanel.setLayout(new BorderLayout());
    _outerPanel.add(centerPanel, BorderLayout.CENTER);
    _outerPanel.add(statusBar, BorderLayout.SOUTH);

    return _outerPanel;
}
 
开发者ID:datacleaner,项目名称:DataCleaner,代码行数:37,代码来源:CompositeDatastoreDialog.java


注:本文中的org.jdesktop.swingx.VerticalLayout类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。