當前位置: 首頁>>代碼示例>>Java>>正文


Java GridBagConstraints.WEST屬性代碼示例

本文整理匯總了Java中java.awt.GridBagConstraints.WEST屬性的典型用法代碼示例。如果您正苦於以下問題:Java GridBagConstraints.WEST屬性的具體用法?Java GridBagConstraints.WEST怎麽用?Java GridBagConstraints.WEST使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在java.awt.GridBagConstraints的用法示例。


在下文中一共展示了GridBagConstraints.WEST屬性的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: initLeft

private void initLeft() {
    final JPanel pnlLeft = new JPanel(new GridBagLayout());
    notificationTable = (NotificationTable) notificationManager.getComponent();
    initNotificationTable();
    notificationScroll = new JScrollPane(notificationTable);

    pnlSearch = new JPanel(new GridBagLayout());
    GridBagConstraints searchConstrains = new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0);
    quickSearch = QuickSearch.attach(pnlSearch, searchConstrains, filterCallback, true);
    pnlSearch.add(new JLabel(), new GridBagConstraints(1, 0, 1, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0));
    setSearchVisible(btnSearch.isSelected());

    pnlLeft.add(pnlSearch, new GridBagConstraints(0, 1, 1, 1, 1.0, 0.0, GridBagConstraints.SOUTH, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0));
    pnlLeft.add(notificationScroll, new GridBagConstraints(0, 0, 1, 1, 1.0, 1.0, GridBagConstraints.NORTHWEST, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
    splitPane.setLeftComponent(pnlLeft);
}
 
開發者ID:apache,項目名稱:incubator-netbeans,代碼行數:16,代碼來源:NotificationCenterTopComponent.java

示例2: createBooleanOption

private JComponent createBooleanOption(OptionDescriptor option, Preferences prefs)  {
    JCheckBox checkBox = new JCheckBox();

    org.openide.awt.Mnemonics.setLocalizedText(checkBox, option.displayName);
    checkBox.setToolTipText(option.tooltip);
    checkBox.addActionListener(new ActionListenerImpl(option.preferencesKey, prefs));

    checkBox.setSelected(prefs.getBoolean(option.preferencesKey, 
            Boolean.TRUE == option.defaultValue));
    prefs.putBoolean(option.preferencesKey, checkBox.isSelected());
    GridBagConstraints constraints = new GridBagConstraints();

    constraints.anchor = GridBagConstraints.WEST;
    constraints.fill = GridBagConstraints.NONE;
    constraints.gridheight = 1;
    constraints.gridwidth = 2;
    constraints.gridx = 0;
    constraints.gridy = row++;
    constraints.weightx = 0;
    constraints.weighty = 0;

    add(checkBox, constraints);
    return checkBox;
}
 
開發者ID:apache,項目名稱:incubator-netbeans,代碼行數:24,代碼來源:ReflectiveCustomizerProvider.java

示例3: addBrowseButton

/**
 * Adds the browse button to the panel
 * 
 * @param gbc
 *          - the constraints used for this component
 * 
 */
private void addBrowseButton(GridBagConstraints gbc) {
	gbc.insets = new Insets(UIConstants.COMPONENT_TOP_PADDING, UIConstants.COMPONENT_LEFT_PADDING,
			UIConstants.COMPONENT_BOTTOM_PADDING, UIConstants.COMPONENT_RIGHT_PADDING);
	gbc.anchor = GridBagConstraints.WEST;
	gbc.fill = GridBagConstraints.NONE;
	gbc.gridx = 2;
	gbc.gridy = 0;
	gbc.weightx = 0;
	gbc.weighty = 0;
	browseButton = new ToolbarButton(null, false);
	ImageUtilities imageUtilities = PluginWorkspaceProvider.getPluginWorkspace().getImageUtilities();
	URL resource = getClass().getResource(ImageConstants.FILE_CHOOSER_ICON);
	if (resource != null) {
	  ImageIcon icon = (ImageIcon) imageUtilities.loadIcon(resource);
	  browseButton.setIcon(icon);
	}
	browseButton.setToolTipText(translator.getTranslation(Tags.BROWSE_BUTTON_TOOLTIP));
	JToolBar browswtoolbar = new JToolBar();
	browswtoolbar.add(browseButton);
	browswtoolbar.setFloatable(false);
	browswtoolbar.setOpaque(false);
	this.add(browswtoolbar, gbc);
}
 
開發者ID:oxygenxml,項目名稱:oxygen-git-plugin,代碼行數:30,代碼來源:WorkingCopySelectionPanel.java

示例4: ExtendedGridBagConstraints

public ExtendedGridBagConstraints(int intPfill, double dblPweightX, double dblPweightY) { // 3
	this(	GridBagConstraints.RELATIVE,
			GridBagConstraints.RELATIVE,
			1,
			1,
			GridBagConstraints.WEST,
			0,
			0,
			0,
			0,
			0,
			0,
			intPfill,
			dblPweightX,
			dblPweightY);
}
 
開發者ID:jugglemaster,項目名稱:JuggleMasterPro,代碼行數:16,代碼來源:ExtendedGridBagConstraints.java

示例5: getTextSection

private JPanel getTextSection() {
    JPanel panel = new JPanel(new GridBagLayout());
    GridBagConstraints c = new GridBagConstraints();
    c.anchor = GridBagConstraints.WEST;

    createTopTextPanel(panel, c);
    createBottomTextPanel(panel, c);

    return panel;
}
 
開發者ID:apache,項目名稱:incubator-netbeans,代碼行數:10,代碼來源:Attribute.java

示例6: addInformationLabel

/**
 * Some information message displayed above the text filed
 * 
 * @param gbc
 *          - the constraints used for this component
 */
private void addInformationLabel(GridBagConstraints gbc) {
	gbc.insets = new Insets(UIConstants.COMPONENT_TOP_PADDING, UIConstants.COMPONENT_LEFT_PADDING,
			UIConstants.COMPONENT_BOTTOM_PADDING, UIConstants.COMPONENT_RIGHT_PADDING);
	gbc.anchor = GridBagConstraints.WEST;
	gbc.fill = GridBagConstraints.HORIZONTAL;
	gbc.gridx = 0;
	gbc.gridy = 0;
	gbc.weightx = 0;
	gbc.weighty = 0;
	gbc.gridwidth = 2;
	JLabel label = new JLabel(translator.getTranslation(Tags.ADD_REMOTE_DIALOG_INFO_LABEL));
	getContentPane().add(label, gbc);
}
 
開發者ID:oxygenxml,項目名稱:oxygen-git-plugin,代碼行數:19,代碼來源:AddRemoteDialog.java

示例7: addScrollPane

private void addScrollPane()
{
	JPanel parentingTreePanel = new JPanel();
	parentingTreePanel.setLayout(new GridBagLayout());
	
	GridBagConstraints c = new GridBagConstraints();
	c.insets = new Insets(5,5,5,5);
	c.anchor = GridBagConstraints.WEST;
	
	c.gridx = 0;
	c.gridy = 0;
	c.weightx = 0;
	parentingTreePanel.add(new JLabel("PARENTS", SwingConstants.CENTER), c);
	c.gridx = 1;
	c.weightx = 1;
	parentingTreePanel.add(new JLabel("CHILDREN", SwingConstants.LEFT), c);

	List<PartObj> partObjs = controller.getEntityModel().getPartObjs();
	for(int i = 0; i < partObjs.size(); i++)
	{
		PartObj p = partObjs.get(i);
		
		c.gridx = 0;
		c.gridy = 1+i;
		c.weightx = 0;
		parentingTreePanel.add(new JLabel(p.getDisplayName(), SwingConstants.CENTER), c);
		c.gridx = 1;
		c.weightx = 1;
		parentingTreePanel.add(new JLabel(createChildList(p), SwingConstants.LEFT), c);
	}
	
	scrollPane = new JScrollPane(parentingTreePanel);
	scrollPane.setPreferredSize(new Dimension(300,700));
	add(scrollPane, BorderLayout.CENTER);
}
 
開發者ID:ObsidianSuite,項目名稱:ObsidianSuite,代碼行數:35,代碼來源:EntitySetupParentingPanel.java

示例8: addLabel

private void addLabel(GridBagConstraints gbc) {
	gbc.insets = new Insets(UIConstants.COMPONENT_TOP_PADDING, UIConstants.COMPONENT_LEFT_PADDING,
			UIConstants.COMPONENT_BOTTOM_PADDING, UIConstants.COMPONENT_RIGHT_PADDING);
	gbc.anchor = GridBagConstraints.WEST;
	gbc.fill = GridBagConstraints.NONE;
	gbc.gridx = 0;
	gbc.gridy = 0;
	gbc.weightx = 0;
	gbc.weighty = 0;
	gbc.gridwidth = 2;
	this.add(new JLabel(translator.getTranslation(Tags.COMMIT_MESSAGE_LABEL)), gbc);
}
 
開發者ID:oxygenxml,項目名稱:oxygen-git-plugin,代碼行數:12,代碼來源:CommitPanel.java

示例9: initialize

@Override
protected void initialize() {
	super.initialize();
	
	// --- Insert time format setter above series settings table 
	
	// --- Move table
	GridBagLayout layoutManager = (GridBagLayout) getLayout();
	GridBagConstraints gbcTable = layoutManager.getConstraints(getSpTblSeriesSettings());
	int oldY = gbcTable.gridy;
	gbcTable.gridy = oldY + 1;
	layoutManager.setConstraints(getSpTblSeriesSettings(), gbcTable);
	
	// --- Add label
	GridBagConstraints gbcLblTimeFormatSelector = new GridBagConstraints();
	gbcLblTimeFormatSelector.gridx = 0;
	gbcLblTimeFormatSelector.gridy = oldY;
	gbcLblTimeFormatSelector.anchor = GridBagConstraints.NORTHWEST;
	gbcLblTimeFormatSelector.insets = new Insets(8, 5, 5, 5);
	this.add(getLblTimeFormatSelector(), gbcLblTimeFormatSelector);
	
	// --- Add format selector component
	GridBagConstraints gbcTimeFormatSelector = new GridBagConstraints();
	gbcTimeFormatSelector.gridx = 1;
	gbcTimeFormatSelector.gridy = oldY;
	gbcTimeFormatSelector.anchor = GridBagConstraints.WEST;
	gbcTimeFormatSelector.fill = GridBagConstraints.HORIZONTAL;
	gbcTimeFormatSelector.insets = new Insets(3, 0, 0, 0);
	this.add(getTimeFormatSelector(), gbcTimeFormatSelector);
	
}
 
開發者ID:EnFlexIT,項目名稱:AgentWorkbench,代碼行數:31,代碼來源:TimeSeriesChartSettingsTab.java

示例10: getZoomSection

private JPanel getZoomSection() {
        JPanel panel = new JPanel(new GridBagLayout());
        GridBagConstraints c = new GridBagConstraints();
        ButtonGroup group = new ButtonGroup();
        double zoom = Config.getDefault().getZoom();
        c.anchor = GridBagConstraints.WEST;
//out("GET ZOOM: " + zoom);

        // (o) Fit width to
        c.gridy++;
        c.insets = new Insets(LARGE_SIZE, 0, 0, 0);
        JRadioButton buttonWidth = createRadioButton(i18n("LBL_Fit_Width_to"), i18n("TLT_Fit_Width_to")); // NOI18N
        buttonWidth.addItemListener(createItemListener(true, false, false));
        panel.add(buttonWidth, c);
        group.add(buttonWidth);

        // [width]
        c.insets = new Insets(LARGE_SIZE, LARGE_SIZE, TINY_SIZE, 0);
        myZoomWidth = new JTextField(getString(Percent.getZoomWidth(zoom, 1)));
        setWidth(myZoomWidth, TEXT_WIDTH);
        panel.add(myZoomWidth, c);

        // page(s)
        c.weightx = 1.0;
        panel.add(createLabel(i18n("LBL_Pages")), c); // NOI18N

        // (o) Zoom to
        c.weightx = 0.0;
        c.insets = new Insets(LARGE_SIZE, 0, 0, 0);
        JRadioButton buttonFactor = createRadioButton(i18n("LBL_Zoom_to"), i18n("TLT_Zoom_to")); // NOI18N
        buttonFactor.addItemListener(createItemListener(false, false, true));
        panel.add(buttonFactor, c);
        group.add(buttonFactor);

        // [zoom]
        c.insets = new Insets(LARGE_SIZE, LARGE_SIZE, TINY_SIZE, 0);
//out("ZOOM:"  + Percent.getZoomFactor(zoom, 1.0));
        myZoomFactor = new Percent(this, Percent.getZoomFactor(zoom, 1.0), PERCENTS, 0, null, i18n("TLT_Print_Zoom")); // NOI18N
        panel.add(myZoomFactor, c);

        // (o) Fit height to
        c.gridy++;
        c.weightx = 0.0;
        c.insets = new Insets(LARGE_SIZE, 0, 0, 0);
        JRadioButton buttonHeight = createRadioButton(i18n("LBL_Fit_Height_to"), i18n("TLT_Fit_Height_to")); // NOI18N
        buttonHeight.addItemListener(createItemListener(false, true, false));
        panel.add(buttonHeight, c);
        group.add(buttonHeight);

        // [height]
        c.insets = new Insets(LARGE_SIZE, LARGE_SIZE, TINY_SIZE, 0);
        myZoomHeight = new JTextField(getString(Percent.getZoomHeight(zoom, 1)));
        setWidth(myZoomHeight, TEXT_WIDTH);
        panel.add(myZoomHeight, c);

        // page(s)
        panel.add(createLabel(i18n("LBL_Pages")), c); // NOI18N

        // (o) Fit to page
        c.weightx = 0.0;
        c.insets = new Insets(LARGE_SIZE, 0, 0, 0);
        myFitToPage = createRadioButton(i18n("LBL_Fit_to_Page"), i18n("TLT_Fit_to_Page")); // NOI18N
        myFitToPage.addItemListener(createItemListener(false, false, false));
        panel.add(myFitToPage, c);
        group.add(myFitToPage);

        buttonFactor.setSelected(Percent.isZoomFactor(zoom));
        buttonWidth.setSelected(Percent.isZoomWidth(zoom));
        buttonHeight.setSelected(Percent.isZoomHeight(zoom));
        myFitToPage.setSelected(Percent.isZoomPage(zoom));
//      panel.setBorder(new javax.swing.border.LineBorder(java.awt.Color.green));

        return panel;
    }
 
開發者ID:apache,項目名稱:incubator-netbeans,代碼行數:74,代碼來源:Attribute.java

示例11: initialize

/**
 * This method initializes this
 * @return void
 */
private void initialize() {

	GridBagLayout gridBagLayout = new GridBagLayout();
	gridBagLayout.columnWidths = new int[] { 0, 0, 0, 0 };
	gridBagLayout.rowHeights = new int[] { 0, 0, 0, 0 };
	gridBagLayout.columnWeights = new double[] { 0.0, 1.0, 0.0, Double.MIN_VALUE };
	gridBagLayout.rowWeights = new double[] { 0.0, 0.0, 0.0, Double.MIN_VALUE };
	this.setLayout(gridBagLayout);
	this.setSize(429, 102);
	GridBagConstraints gbc_jLabelMTPProtocol = new GridBagConstraints();
	gbc_jLabelMTPProtocol.anchor = GridBagConstraints.WEST;
	gbc_jLabelMTPProtocol.insets = new Insets(0, 0, 3, 5);
	gbc_jLabelMTPProtocol.gridx = 0;
	gbc_jLabelMTPProtocol.gridy = 0;
	add(getJLabelMTPProtocol(), gbc_jLabelMTPProtocol);
	GridBagConstraints gbc_comboBox = new GridBagConstraints();
	gbc_comboBox.anchor = GridBagConstraints.SOUTHWEST;
	gbc_comboBox.insets = new Insets(0, 0, 5, 5);
	gbc_comboBox.gridx = 1;
	gbc_comboBox.gridy = 0;
	add(getJComboBoxMtpProtocol(), gbc_comboBox);
	GridBagConstraints gbc_jButtonEditMTP = new GridBagConstraints();
	gbc_jButtonEditMTP.anchor = GridBagConstraints.SOUTH;
	gbc_jButtonEditMTP.insets = new Insets(0, 0, 5, 5);
	gbc_jButtonEditMTP.gridx = 2;
	gbc_jButtonEditMTP.gridy = 0;
	add(getJButtonEditMTP(), gbc_jButtonEditMTP);
	GridBagConstraints gbc_jLabelKeystorePath = new GridBagConstraints();
	gbc_jLabelKeystorePath.anchor = GridBagConstraints.WEST;
	gbc_jLabelKeystorePath.insets = new Insets(0, 0, 5, 5);
	gbc_jLabelKeystorePath.gridx = 0;
	gbc_jLabelKeystorePath.gridy = 1;
	add(getJLabelKeystorePath(), gbc_jLabelKeystorePath);
	GridBagConstraints gbc_jTextFieldKeyStorePath = new GridBagConstraints();
	gbc_jTextFieldKeyStorePath.gridwidth = 2;
	gbc_jTextFieldKeyStorePath.insets = new Insets(0, 0, 5, 5);
	gbc_jTextFieldKeyStorePath.fill = GridBagConstraints.HORIZONTAL;
	gbc_jTextFieldKeyStorePath.gridx = 1;
	gbc_jTextFieldKeyStorePath.gridy = 1;
	add(getJTextFieldKeyStorePath(), gbc_jTextFieldKeyStorePath);
	GridBagConstraints gbc_jLabelTruststorePath = new GridBagConstraints();
	gbc_jLabelTruststorePath.anchor = GridBagConstraints.WEST;
	gbc_jLabelTruststorePath.insets = new Insets(0, 0, 5, 5);
	gbc_jLabelTruststorePath.gridx = 0;
	gbc_jLabelTruststorePath.gridy = 2;
	add(getJLabelTruststorePath(), gbc_jLabelTruststorePath);
	GridBagConstraints gbc_jTextFieldTrustStorePath = new GridBagConstraints();
	gbc_jTextFieldTrustStorePath.insets = new Insets(0, 0, 0, 5);
	gbc_jTextFieldTrustStorePath.gridwidth = 2;
	gbc_jTextFieldTrustStorePath.fill = GridBagConstraints.HORIZONTAL;
	gbc_jTextFieldTrustStorePath.gridx = 1;
	gbc_jTextFieldTrustStorePath.gridy = 2;
	add(getJTextFieldTrustStorePath(), gbc_jTextFieldTrustStorePath);
}
 
開發者ID:EnFlexIT,項目名稱:AgentWorkbench,代碼行數:58,代碼來源:JPanelMTPConfig.java

示例12: initializeLabels

private void initializeLabels() {
	this.lblContratacaoTransporte = new JLabel("Contratação de Transporte");
	GridBagConstraints gbc_lblContrataoDeTransporte = new GridBagConstraints();
	gbc_lblContrataoDeTransporte.insets = new Insets(0, 0, 0, 5);
	gbc_lblContrataoDeTransporte.gridx = 5;
	gbc_lblContrataoDeTransporte.gridy = 3;
	this.panelFirst.add(this.lblContratacaoTransporte, gbc_lblContrataoDeTransporte);

	this.lblOrigem = new JLabel("Origem:");
	GridBagConstraints gbc_lblNewLabel = new GridBagConstraints();
	gbc_lblNewLabel.anchor = GridBagConstraints.WEST;
	gbc_lblNewLabel.insets = new Insets(0, 0, 5, 5);
	gbc_lblNewLabel.gridx = 1;
	gbc_lblNewLabel.gridy = 2;
	this.panelSecond.add(this.lblOrigem, gbc_lblNewLabel);

	this.lblLocalidadeOrigem = new JLabel("Label_Origem");
	GridBagConstraints gbc_lblNewLabel_1 = new GridBagConstraints();
	gbc_lblNewLabel_1.anchor = GridBagConstraints.WEST;
	gbc_lblNewLabel_1.insets = new Insets(0, 0, 5, 0);
	gbc_lblNewLabel_1.gridx = 2;
	gbc_lblNewLabel_1.gridy = 2;
	this.panelSecond.add(this.lblLocalidadeOrigem, gbc_lblNewLabel_1);

	this.lblDestino = new JLabel("Destino:");
	GridBagConstraints gbc_lblDestino = new GridBagConstraints();
	gbc_lblDestino.insets = new Insets(0, 0, 5, 5);
	gbc_lblDestino.anchor = GridBagConstraints.WEST;
	gbc_lblDestino.gridx = 1;
	gbc_lblDestino.gridy = 4;
	this.panelSecond.add(this.lblDestino, gbc_lblDestino);

	this.lblLocalidadeDestino = new JLabel("Label_Destino");
	GridBagConstraints gbc_lblLabeldestino = new GridBagConstraints();
	gbc_lblLabeldestino.anchor = GridBagConstraints.WEST;
	gbc_lblLabeldestino.insets = new Insets(0, 0, 5, 0);
	gbc_lblLabeldestino.gridx = 2;
	gbc_lblLabeldestino.gridy = 4;
	this.panelSecond.add(this.lblLocalidadeDestino, gbc_lblLabeldestino);

	this.lblPeso = new JLabel("Peso:");
	GridBagConstraints gbc_lblPeso = new GridBagConstraints();
	gbc_lblPeso.insets = new Insets(0, 0, 0, 5);
	gbc_lblPeso.anchor = GridBagConstraints.WEST;
	gbc_lblPeso.gridx = 1;
	gbc_lblPeso.gridy = 6;
	this.panelSecond.add(this.lblPeso, gbc_lblPeso);

	this.lblValorPeso = new JLabel("Label_Peso");
	GridBagConstraints gbc_lblLabelpeso = new GridBagConstraints();
	gbc_lblLabelpeso.anchor = GridBagConstraints.WEST;
	gbc_lblLabelpeso.gridx = 2;
	gbc_lblLabelpeso.gridy = 6;
	this.panelSecond.add(this.lblValorPeso, gbc_lblLabelpeso);

	this.lblRotas = new JLabel("Rotas:");
	GridBagConstraints gbc_lblRotas = new GridBagConstraints();
	gbc_lblRotas.gridx = 0;
	gbc_lblRotas.gridy = 0;
	this.panelFourth.add(this.lblRotas, gbc_lblRotas);
}
 
開發者ID:cjlcarvalho,項目名稱:LogisticApp,代碼行數:61,代碼來源:ContratacaoTransporteFrame.java

示例13: initialize

/**
 * This method initializes this
 * @return void
 */
private void initialize() {
	
	GridBagConstraints gbc_jButtonUpdateSiteApply = new GridBagConstraints();
	gbc_jButtonUpdateSiteApply.anchor = GridBagConstraints.WEST;
	gbc_jButtonUpdateSiteApply.insets = new Insets(20, 0, 0, 20);
	gbc_jButtonUpdateSiteApply.gridx = 1;
	gbc_jButtonUpdateSiteApply.gridy = 0;
	
	GridBagConstraints gridBagConstraints22 = new GridBagConstraints();
	gridBagConstraints22.gridx = 0;
	gridBagConstraints22.anchor = GridBagConstraints.WEST;
	gridBagConstraints22.insets = new Insets(5, 20, 0, 5);
	gridBagConstraints22.gridy = 5;
	GridBagConstraints gridBagConstraints12 = new GridBagConstraints();
	gridBagConstraints12.gridx = 0;
	gridBagConstraints12.anchor = GridBagConstraints.WEST;
	gridBagConstraints12.insets = new Insets(10, 20, 0, 5);
	gridBagConstraints12.gridy = 4;
	GridBagConstraints gridBagConstraints21 = new GridBagConstraints();
	gridBagConstraints21.gridx = 0;
	gridBagConstraints21.insets = new Insets(0, 20, 20, 20);
	gridBagConstraints21.fill = GridBagConstraints.BOTH;
	gridBagConstraints21.weightx = 1.0;
	gridBagConstraints21.weighty = 1.0;
	gridBagConstraints21.gridy = 6;
	GridBagConstraints gridBagConstraints11 = new GridBagConstraints();
	gridBagConstraints11.gridx = 0;
	gridBagConstraints11.anchor = GridBagConstraints.WEST;
	gridBagConstraints11.insets = new Insets(20, 20, 0, 10);
	gridBagConstraints11.gridy = 0;
	GridBagConstraints gridBagConstraints2 = new GridBagConstraints();
	gridBagConstraints2.gridwidth = 2;
	gridBagConstraints2.gridx = 0;
	gridBagConstraints2.anchor = GridBagConstraints.WEST;
	gridBagConstraints2.insets = new Insets(5, 20, 0, 20);
	gridBagConstraints2.gridy = 3;
	GridBagConstraints gridBagConstraints1 = new GridBagConstraints();
	gridBagConstraints1.gridwidth = 2;
	gridBagConstraints1.gridx = 0;
	gridBagConstraints1.anchor = GridBagConstraints.WEST;
	gridBagConstraints1.insets = new Insets(5, 20, 0, 20);
	gridBagConstraints1.gridy = 2;
	GridBagConstraints gridBagConstraints = new GridBagConstraints();
	gridBagConstraints.anchor = GridBagConstraints.WEST;
	gridBagConstraints.gridwidth = 2;
	gridBagConstraints.gridx = 0;
	gridBagConstraints.insets = new Insets(5, 20, 0, 20);
	gridBagConstraints.gridy = 1;

	jLabelUpdateDictionary = new JLabel();
	jLabelUpdateDictionary.setFont(new Font("Dialog", Font.BOLD, 12));
	jLabelUpdateDictionary.setText("Wörterbuch");
	
	this.setSize(631, 307);
	this.setBorder(BorderFactory.createEtchedBorder(EtchedBorder.LOWERED));
	GridBagLayout gridBagLayout = new GridBagLayout();
	gridBagLayout.rowWeights = new double[]{0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0};
	this.setLayout(gridBagLayout);
	
	this.add(getJButtonUpdateSiteApply(), gbc_jButtonUpdateSiteApply);
	this.add(getJRadioButtonUpdateAutomated(), gridBagConstraints);
	this.add(getJRadioButtonUpdateDownloadAndAsk(), gridBagConstraints1);
	this.add(getJRadioButtonUpdateDisabled(), gridBagConstraints2);
	this.add(getJLabelUpdateTitle(), gridBagConstraints11);
	this.add(getJPanelDummy(), gridBagConstraints21);
	this.add(jLabelUpdateDictionary, gridBagConstraints12);
	this.add(getJCheckBoxUpdateKeepDictionary(), gridBagConstraints22);
	
	ButtonGroup updateAutoConfig = new ButtonGroup();
	updateAutoConfig.add(this.getJRadioButtonUpdateAutomated());
	updateAutoConfig.add(this.getJRadioButtonUpdateDownloadAndAsk());
	updateAutoConfig.add(this.getJRadioButtonUpdateDisabled());
	
}
 
開發者ID:EnFlexIT,項目名稱:AgentWorkbench,代碼行數:78,代碼來源:UpdateOptions.java

示例14: createCenterPanel

@Override
protected JComponent createCenterPanel()
{
  final JPanel panel = new JPanel( new GridBagLayout() );
  panel.setBorder( BorderFactory.createEmptyBorder( 8, 8, 8, 8 ) );

  final GridBagConstraints c = new GridBagConstraints();

  int iY = 0;

  c.anchor = GridBagConstraints.WEST;
  c.fill = GridBagConstraints.NONE;
  c.gridx = 0;
  c.gridy = iY++;
  c.weightx = 1;
  c.weighty = 0;
  c.insets = new Insets( 2, 2, 0, 0 );
  panel.add( new JLabel( ManBundle.message( "type.Class.Name" ) ), c );

  c.anchor = GridBagConstraints.WEST;
  c.fill = GridBagConstraints.HORIZONTAL;
  c.gridx = 0;
  c.gridy = iY++;
  c.gridwidth = GridBagConstraints.REMAINDER;
  c.gridheight = 1;
  c.weightx = 1;
  c.weighty = 0;
  c.insets = new Insets( 2, 2, 5, 0 );
  panel.add( _fieldName = new IdentifierTextField(), c );

  c.anchor = GridBagConstraints.WEST;
  c.fill = GridBagConstraints.NONE;
  c.gridx = 0;
  c.gridy = iY++;
  c.gridwidth = 1;
  c.gridheight = 1;
  c.weightx = 1;
  c.weighty = 0;
  c.insets = new Insets( 2, 2, 2, 0 );
  panel.add( new JLabel( ManBundle.message( "action.create.extended.type" ) ), c );

  c.anchor = GridBagConstraints.WEST;
  c.fill = GridBagConstraints.BOTH;
  c.gridx = 0;
  c.gridy = iY;
  c.gridwidth = GridBagConstraints.REMAINDER;
  c.gridheight = 1;
  c.weightx = 1;
  c.weighty = 1;
  c.insets = new Insets( 2, 2, 0, 0 );
  JComponent centerPanel = super.createCenterPanel();
  panel.add( centerPanel, c );

  //noinspection deprecation
  _fieldName.setNextFocusableComponent( getGotoByNamePanel().getPreferredFocusedComponent() );

  return panel;
}
 
開發者ID:manifold-systems,項目名稱:manifold-ij,代碼行數:58,代碼來源:CreateExtensionMethodClassDialog.java

示例15: initialize

/**
 * Initialize.
 */
private void initialize() {

	GridBagLayout gridBagLayout = new GridBagLayout();
	gridBagLayout.columnWidths = new int[] { 0, 0 };
	gridBagLayout.rowHeights = new int[] { 0, 0, 0, 0, 0 };
	gridBagLayout.columnWeights = new double[] { 1.0, Double.MIN_VALUE };
	gridBagLayout.rowWeights = new double[] { 0.0, 1.0, 0.0, 0.0, Double.MIN_VALUE };
	getContentPane().setLayout(gridBagLayout);
	GridBagConstraints gbc_jLabelHeader = new GridBagConstraints();
	gbc_jLabelHeader.anchor = GridBagConstraints.NORTH;
	gbc_jLabelHeader.fill = GridBagConstraints.HORIZONTAL;
	gbc_jLabelHeader.insets = new Insets(10, 10, 0, 10);
	gbc_jLabelHeader.gridx = 0;
	gbc_jLabelHeader.gridy = 0;
	getContentPane().add(getJLabelHeader(), gbc_jLabelHeader);
	GridBagConstraints gbc_jScrollPaneFeaturesList = new GridBagConstraints();
	gbc_jScrollPaneFeaturesList.fill = GridBagConstraints.BOTH;
	gbc_jScrollPaneFeaturesList.insets = new Insets(5, 10, 0, 10);
	gbc_jScrollPaneFeaturesList.gridx = 0;
	gbc_jScrollPaneFeaturesList.gridy = 1;
	getContentPane().add(getJScrollPaneFeaturesList(), gbc_jScrollPaneFeaturesList);
	GridBagConstraints gbc_jLabelInfo = new GridBagConstraints();
	gbc_jLabelInfo.anchor = GridBagConstraints.WEST;
	gbc_jLabelInfo.insets = new Insets(5, 10, 0, 10);
	gbc_jLabelInfo.gridx = 0;
	gbc_jLabelInfo.gridy = 2;
	getContentPane().add(getLabelInfo(), gbc_jLabelInfo);
	GridBagConstraints gbc_jPanelButtons = new GridBagConstraints();
	gbc_jPanelButtons.insets = new Insets(10, 10, 15, 10);
	gbc_jPanelButtons.anchor = GridBagConstraints.NORTH;
	gbc_jPanelButtons.fill = GridBagConstraints.HORIZONTAL;
	gbc_jPanelButtons.gridx = 0;
	gbc_jPanelButtons.gridy = 3;
	getContentPane().add(getJPanelButtons(), gbc_jPanelButtons);

	this.setTitle(Language.translate("Features auswählen"));
	this.setSize(800, 450);
	this.setModal(true);
	this.setLocationRelativeTo(null);
	this.registerEscapeKeyStroke();
	this.setVisible(true);
}
 
開發者ID:EnFlexIT,項目名稱:AgentWorkbench,代碼行數:45,代碼來源:FeatureSelectionDialog.java


注:本文中的java.awt.GridBagConstraints.WEST屬性示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。