java seteditable,Java JComboBox.setEditable方法代碼示例

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

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

示例1: addChoice

​點讚 3

import javax.swing.JComboBox; //導入方法依賴的package包/類

/** Create a choice menu.

* @param name The name used to identify the entry (when calling get).

* @param label The label to attach to the entry.

* @param values The list of possible choices.

* @param defaultChoice Default choice.

* @param editable True if an arbitrary choice can be entered, in addition

* to the choices in values.

* @param background The background color for the editable part.

*/

public void addChoice(

String name,

String label,

String[] values,

String defaultChoice,

boolean editable,

Color background) {

JLabel lbl = new JLabel(label + ": ");

lbl.setBackground(_background);

JComboBox combobox = new JComboBox(values);

combobox.setEditable(editable);

// FIXME: Typical of Swing, the following does not set

// the background color. How does one set the background

// color?

combobox.setBackground(background);

combobox.setSelectedItem(defaultChoice);

_addPair(name, lbl, combobox, combobox);

// Add the listener last so that there is no notification

// of the first value.

combobox.addItemListener(new QueryItemListener(name));

}

開發者ID:OpenDA-Association,項目名稱:OpenDA,代碼行數:31,

示例2: addAndGetKeyForGlobalData

​點讚 3

import javax.swing.JComboBox; //導入方法依賴的package包/類

private Object[] addAndGetKeyForGlobalData(GlobalDataModel gdModel) {

Object[] objects = new Object[2];

JComboBox jcb = new JComboBox(gdModel.getKeys().toArray());

jcb.setEditable(true);

JOptionPane.showMessageDialog(null, jcb, "Select or Enter a GlobalId", JOptionPane.QUESTION_MESSAGE);

String key = Objects.toString(jcb.getSelectedItem(), "");

if (key.trim().isEmpty()) {

key = "#gd1";

} else if (!key.startsWith("#")) {

key = "#" + key;

}

objects[0] = key;

if (gdModel.getRowCount() == 0

|| !gdModel.getKeys().contains(key)) {

gdModel.addRecord();

gdModel.setValueAt(key, gdModel.getRowCount() - 1, 0);

objects[1] = gdModel.getRowCount() - 1;

} else if (gdModel.getKeys().contains(key)) {

objects[1] = gdModel.getRecordIndexByKey(key);

}

return objects;

}

開發者ID:CognizantQAHub,項目名稱:Cognizant-Intelligent-Test-Scripter,代碼行數:26,

示例3: confirm

​點讚 3

import javax.swing.JComboBox; //導入方法依賴的package包/類

public void confirm(EventObject fe) {

JTextField tf = (JTextField) fe.getSource();

JComboBox combo = (JComboBox) tf.getParent();

if (combo==null)

return;

if (fe instanceof FocusEvent) {

combo.getEditor().getEditorComponent().removeFocusListener(this);

} else {

combo.getEditor().getEditorComponent().removeKeyListener(this);

}

Configuration config = lastSelected;

config.setDisplayName(tf.getText());

combo.setSelectedItem(config);

combo.setEditable(false);

currentActiveItem = null;

}

開發者ID:apache,項目名稱:incubator-netbeans,代碼行數:17,

示例4: InputDataPanel

​點讚 3

import javax.swing.JComboBox; //導入方法依賴的package包/類

public InputDataPanel(List previouslyUsedURLs) {

setSize(new Dimension(900, 300));

setPreferredSize(new Dimension(900, 300));

setMinimumSize(new Dimension(450, 300));

setLayout(null);

JLabel lblInputDataUrl = new JLabel("Input data URL");

lblInputDataUrl.setBounds(12, 12, 105, 15);

add(lblInputDataUrl);

lblUrlIsInvalid = new JLabel("URL is invalid!");

lblUrlIsInvalid.setVisible(false);

lblUrlIsInvalid.setBounds(12, 70, 105, 15);

add(lblUrlIsInvalid);

btnValidate = new JButton("Validate");

btnValidate.setBounds(335, 34, 93, 25);

//add(btnValidate);

comboBox = new JComboBox();

comboBox.setEditable(true);

comboBox.setBounds(12, 34, 311, 24);

comboBox.setModel(new URLComboBoxModel(previouslyUsedURLs));

add(comboBox);

}

開發者ID:roscisz,項目名稱:KernelHive,代碼行數:26,

示例5: confirm

​點讚 3

import javax.swing.JComboBox; //導入方法依賴的package包/類

private void confirm(EventObject fe) {

JTextField tf = (JTextField) fe.getSource();

JComboBox combo = (JComboBox) tf.getParent();

if (combo==null)

return;

if (fe instanceof FocusEvent) {

combo.getEditor().getEditorComponent().removeFocusListener(this);

} else {

combo.getEditor().getEditorComponent().removeKeyListener(this);

}

Configuration config = configName==null ?

ConfigurationsManager.getDefault().duplicate(lastSelected, tf.getText(), tf.getText()):

ConfigurationsManager.getDefault().create(tf.getText(), tf.getText());

combo.setSelectedItem(config);

combo.setEditable(false);

}

開發者ID:apache,項目名稱:incubator-netbeans,代碼行數:17,

示例6: createAndShowGUI

​點讚 2

import javax.swing.JComboBox; //導入方法依賴的package包/類

private static void createAndShowGUI() {

frame = new JFrame();

frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

frame.setSize(200, 200);

frame.setLocation(100, 100);

table = new JTable(

new String[][]{{TEST1}}, new String[]{"Header"});

JComboBox comboBox = new JComboBox<>();

comboBox.setEditable(true);

table.getColumnModel().getColumn(0).setCellEditor(

new DefaultCellEditor(comboBox));

frame.getContentPane().add(table);

frame.setVisible(true);

}

開發者ID:AdoptOpenJDK,項目名稱:openjdk-jdk10,代碼行數:16,

示例7: getCellEditor

​點讚 2

import javax.swing.JComboBox; //導入方法依賴的package包/類

@Override

public TableCellEditor getCellEditor(int row, int column) {

JComboBox typeBox = new JComboBox(Attributes.KNOWN_ATTRIBUTE_TYPES);

typeBox.setEditable(true);

typeBox.setBackground(javax.swing.UIManager.getColor("Table.cellBackground"));

return new DefaultCellEditor(typeBox);

}

示例8: actionPerformed

​點讚 2

import javax.swing.JComboBox; //導入方法依賴的package包/類

@Override

public void actionPerformed(ActionEvent ae) {

currentActiveItem = this;

JComboBox combo = (JComboBox) ae.getSource();

combo.setEditable(true);

combo.getEditor().getEditorComponent().addFocusListener(this);

combo.getEditor().getEditorComponent().addKeyListener(this);

combo.addPopupMenuListener(this);

combo.setSelectedItem(configName == null ? lastSelected + "1" : configName);

}

開發者ID:apache,項目名稱:incubator-netbeans,代碼行數:12,

示例9: AccountTransferDialog

​點讚 2

import javax.swing.JComboBox; //導入方法依賴的package包/類

/**

* Set up and show the dialog. The first Component argument determines which

* frame the dialog depends on; it should be a component in the dialog's

* controlling frame. The second Component argument should be null if you

* want the dialog to come up with its left corner in the center of the

* screen; otherwise, it should be the component on top of which the dialog

* should appear.

*/

public AccountTransferDialog(Component frameComp, Component locationComp,

String title, Object[] brokers,I_TickerManager tickerManager) {

super(frameComp, locationComp, title, tickerManager);

brokerList = new JComboBox(brokers);

brokerList.setEditable(true);

brokerList.setSelectedIndex(0);

newBrokerField = new JTextField(FIELD_LEN);

newBrokerField.setEditable(true);

newBrokerField.setText("");

newBrokerField.addKeyListener(this);

dateFieldLabel = new JLabel("Siirtopäivä: ");

dateFieldLabel.setLabelFor(dateChooser);

brokerFieldLabel = new JLabel("Vanha välittäjä: ");

brokerFieldLabel.setLabelFor(brokerList);

newBrokerFieldLabel = new JLabel("Uusi välittäjä: ");

newBrokerFieldLabel.setLabelFor(newBrokerField);

init(getDialogLabels(), getDialogComponents());

}

開發者ID:skarna1,項目名稱:javaportfolio,代碼行數:35,

示例10: setupGui

​點讚 2

import javax.swing.JComboBox; //導入方法依賴的package包/類

private void setupGui()

{

JLabel typeLabel = new JLabel(CurrentLocale.get("com.tle.admin.schema.manager.transformdialog.name")); //$NON-NLS-1$

JLabel fileLabel = new JLabel(CurrentLocale.get("com.tle.admin.schema.manager.transformdialog.xsl")); //$NON-NLS-1$

schemaType = new JComboBox();

schemaType.setEditable(true);

fileSelector = new FileSelector(CurrentLocale.get("com.tle.admin.schema.manager.transformdialog.browse")); //$NON-NLS-1$

fileSelector.setFileFilter(FileFilterAdapter.XSLT());

ok = new JButton(CurrentLocale.get("com.tle.admin.ok")); //$NON-NLS-1$

JButton cancel = new JButton(CurrentLocale.get("com.tle.admin.cancel")); //$NON-NLS-1$

ok.addActionListener(this);

cancel.addActionListener(this);

final int height1 = typeLabel.getPreferredSize().height;

final int height2 = schemaType.getPreferredSize().height;

final int height3 = fileSelector.getPreferredSize().height;

final int height4 = ok.getPreferredSize().height;

final int width1 = cancel.getPreferredSize().width;

final int[] rows = {height1, height2, height1, height3, height4,};

final int[] cols = {TableLayout.FILL, width1, width1,};

all = new JPanel(new TableLayout(rows, cols));

all.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));

all.add(typeLabel, new Rectangle(0, 0, 3, 1));

all.add(schemaType, new Rectangle(0, 1, 3, 1));

all.add(fileLabel, new Rectangle(0, 2, 3, 1));

all.add(fileSelector, new Rectangle(0, 3, 3, 1));

all.add(ok, new Rectangle(1, 4, 1, 1));

all.add(cancel, new Rectangle(2, 4, 1, 1));

}

開發者ID:equella,項目名稱:Equella,代碼行數:36,

示例11: DataComboBoxSupport

​點讚 2

import javax.swing.JComboBox; //導入方法依賴的package包/類

/** Not private because used in tests. */

DataComboBoxSupport(JComboBox comboBox, DataComboBoxModel dataModel, boolean allowAdding) {

this.dataModel = dataModel;

this.allowAdding = allowAdding;

comboBox.setEditable(false);

comboBox.setModel(new ItemComboBoxModel());

comboBox.setRenderer(new ItemListCellRenderer());

comboBox.addActionListener(new ItemActionListener());

comboBox.addPopupMenuListener(new ItemPopupMenuListener());

}

開發者ID:apache,項目名稱:incubator-netbeans,代碼行數:14,

示例12: initAntTargetEditor

​點讚 2

import javax.swing.JComboBox; //導入方法依賴的package包/類

private void initAntTargetEditor(List targets) {

JComboBox combo = new JComboBox();

combo.setEditable(true);

for (String target : targets) {

combo.addItem(target);

}

customTargets.setDefaultEditor(JComboBox.class, new DefaultCellEditor(combo));

}

開發者ID:apache,項目名稱:incubator-netbeans,代碼行數:9,

示例13: setEmptyModel

​點讚 2

import javax.swing.JComboBox; //導入方法依賴的package包/類

private void setEmptyModel(JComboBox combo) {

if (combo != null) {

combo.setModel(WizardUtils.createComboEmptyModel());

combo.setEnabled(false);

combo.setEditable(false);

checkValidity();

}

}

開發者ID:apache,項目名稱:incubator-netbeans,代碼行數:9,

示例14: CapitalRepaymentDialog

​點讚 2

import javax.swing.JComboBox; //導入方法依賴的package包/類

/**

* Set up and show the dialog. The first Component argument determines which

* frame the dialog depends on; it should be a component in the dialog's

* controlling frame. The second Component argument should be null if you

* want the dialog to come up with its left corner in the center of the

* screen; otherwise, it should be the component on top of which the dialog

* should appear.

*/

public CapitalRepaymentDialog(Component frameComp, Component locationComp,

String title, Object[] brokers, Object[] sectors,

Map> stocks, I_TickerManager tickerManager) {

super(frameComp, locationComp, title, tickerManager);

this.stocks = stocks;

// Brokers

brokerList = new JComboBox(brokers);

brokerList.setEditable(true);

// Sectors

sectorList = new JComboBox(sectors);

sectorList.setActionCommand(SECTOR_CHANGED);

sectorList.addActionListener(this);

// Stocks

stocksList = new JComboBox();

updateStockList((String) sectorList.getSelectedItem());

stocksList.setActionCommand(STOCK_SELECTED);

stocksList.addActionListener(this);

amountField.addKeyListener(this);

costField.addKeyListener(this);

totalCostField.setEditable(false);

totalCostField.setText("0.00");

sectorFieldLabel = new JLabel("Toimiala: ");

sectorFieldLabel.setLabelFor(sectorList);

stockFieldLabel = new JLabel("Arvopaperi: ");

stockFieldLabel.setLabelFor(stocksList);

dateFieldLabel = new JLabel("Maksupäivä: ");

dateFieldLabel.setLabelFor(dateChooser);

amountFieldLabel = new JLabel("Määrä: ");

amountFieldLabel.setLabelFor(amountField);

costFieldLabel = new JLabel("Palautus/osake: ");

costFieldLabel.setLabelFor(costField);

brokerFieldLabel = new JLabel("Välittäjä: ");

brokerFieldLabel.setLabelFor(brokerList);

totalCostFieldLabel = new JLabel("yhteensä: ");

totalCostFieldLabel.setLabelFor(totalCostField);

String stockName = (String) stocksList.getSelectedItem();

updateRateField(stockName);

init(getDialogLabels(), getDialogComponents());

}

開發者ID:skarna1,項目名稱:javaportfolio,代碼行數:65,

示例15: ClassTable

​點讚 2

import javax.swing.JComboBox; //導入方法依賴的package包/類

ClassTable() {

super(new ClassTableModel());

disabledCellRenderer = new DisabledCellRenderer();

//BEGIN Federico Dall'Orso 8/3/2005

//NEW

classTypeComboBoxCell = new ComboBoxCell(CLASS_TYPENAMES);

deleteButton = new JButton(deleteOneClass);

deleteButtonCellRenderer = new ButtonCellEditor(deleteButton);

enableDeletes();

rowHeader.setRowHeight(18);

setRowHeight(18);

//END Federico Dall'Orso 8/3/2005

JComboBox classTypeBox = new JComboBox(CLASS_TYPENAMES);

classTypeCellEditor = new DefaultCellEditor(classTypeBox);

classTypeBox.setEditable(false);

setColumnSelectionAllowed(false);

setRowSelectionAllowed(true);

// not beautiful, but effective. See ClassTableModel.getColumnClass()

setDefaultRenderer(DisabledCellRenderer.class, disabledCellRenderer);

setDefaultEditor(String.class, classTypeCellEditor);

setDisplaysScrollLabels(true);

installKeyboardAction(getInputMap(), getActionMap(), deleteClass);

mouseHandler = new ExactTable.MouseHandler(makeMouseMenu());

mouseHandler.install();

help.addHelp(this,

"Click or drag to select classes; to edit data single-click and start typing. Right-click for a list of available operations");

help.addHelp(moreRowsLabel, "There are more classes: scroll down to see them");

help.addHelp(selectAllButton, "Click to select all classes");

tableHeader.setToolTipText(null);

rowHeader.setToolTipText(null);

help.addHelp(rowHeader, "Click, SHIFT-click or drag to select classes");

}

開發者ID:HOMlab,項目名稱:QN-ACTR-Release,代碼行數:42,

示例16: SubscriptionDialog

​點讚 2

import javax.swing.JComboBox; //導入方法依賴的package包/類

/**

* Set up and show the dialog. The first Component argument determines which

* frame the dialog depends on; it should be a component in the dialog's

* controlling frame. The second Component argument should be null if you

* want the dialog to come up with its left corner in the center of the

* screen; otherwise, it should be the component on top of which the dialog

* should appear.

*/

public SubscriptionDialog(Component frameComp, Component locationComp, String title,

Object[] brokers, Object[] sectors, Map> stocks, I_TickerManager tickerManager) {

super(frameComp, locationComp, title, tickerManager);

this.stocks = stocks;

// Brokers

brokerList = new JComboBox(brokers);

brokerList.setEditable(true);

// Sectors

sectorList = new JComboBox(sectors);

sectorList.setActionCommand(SECTOR_CHANGED);

sectorList.addActionListener(this);

// Stocks

stocksList = new JComboBox();

updateStockList((String) sectorList.getSelectedItem());

stocksList.setActionCommand(STOCK_SELECTED);

stocksList.addActionListener(this);

amountField.addKeyListener(this);

costField.addKeyListener(this);

taxPurchaseDateChooser = new JDateChooser(Calendar.getInstance().getTime());

taxPurchaseDateChooser.setLocale(new Locale("fi", "FI"));

totalCostField.setEditable(false);

totalCostField.setText("0.00");

sectorFieldLabel = new JLabel("Toimiala: ");

sectorFieldLabel.setLabelFor(sectorList);

stockFieldLabel = new JLabel("Arvopaperi: ");

stockFieldLabel.setLabelFor(stocksList);

dateFieldLabel = new JLabel("Merkintäpäivä: ");

dateFieldLabel.setLabelFor(dateChooser);

taxDateFieldLabel= new JLabel("Hankintapäivä verotuksessa: ");

taxDateFieldLabel.setLabelFor(taxPurchaseDateChooser);

amountFieldLabel = new JLabel("Määrä: ");

amountFieldLabel.setLabelFor(amountField);

costFieldLabel = new JLabel("Merkintähinta: ");

costFieldLabel.setLabelFor(costField);

brokerFieldLabel = new JLabel("Välittäjä: ");

brokerFieldLabel.setLabelFor(brokerList);

totalCostFieldLabel = new JLabel("yhteensä: ");

totalCostFieldLabel.setLabelFor(totalCostField);

init(getDialogLabels(), getDialogComponents());

}

開發者ID:skarna1,項目名稱:javaportfolio,代碼行數:67,

示例17: StationTable

​點讚 2

import javax.swing.JComboBox; //導入方法依賴的package包/類

StationTable() {

super(new StationTableModel());

//BEGIN Federico Dall'Orso 8/3/2005

//station type cell renderers

//NEW

LD_disabled_StationTypeCell = new ComboBoxCell(STATION_TYPENAMES);

LD_disabled_StationTypeCell.getComboBox().setEnabled(false);

LD_enabled_StationTypeCell = new ComboBoxCell(STATION_TYPENAMES_LD_ENABLED);

LD_enabled_StationTypeCell.getComboBox().setEnabled(false);

//14/3/2005

deleteButton = new JButton(deleteOneStation);

deleteButtonCellRenderer = new ButtonCellEditor(deleteButton);

enableDeletes();

rowHeader.setRowHeight(CommonConstants.ROW_HEIGHT);

setRowHeight(CommonConstants.ROW_HEIGHT);

//END Federico Dall'Orso

/* a station type cell editor for open/mixed systems */

JComboBox stationTypeBox = new JComboBox(STATION_TYPENAMES);

stationTypeBox.setEditable(false);

stationTypeBox.setEnabled(false);

LD_disabled_StationTypeEditor = new DefaultCellEditor(stationTypeBox);

stationTypeBox.setEnabled(false);

/* a station type cell editor for closed systems */

JComboBox LD_enabled_StationTypeBox = new JComboBox(STATION_TYPENAMES_LD_ENABLED);

LD_enabled_StationTypeBox.setEditable(false);

LD_enabled_StationTypeBox.setEnabled(false);

LD_enabled_StationTypeEditor = new DefaultCellEditor(LD_enabled_StationTypeBox);

LD_enabled_StationTypeBox.setEnabled(false);

setColumnSelectionAllowed(false);

setRowSelectionAllowed(true);

setDisplaysScrollLabels(true);

installKeyboardAction(getInputMap(), getActionMap(), deleteStation);

mouseHandler = new ExactTable.MouseHandler(makeMouseMenu());

mouseHandler.install();

help.addHelp(this,

"Click or drag to select stations; to edit data single-click and start typing. Right-click for a list of available operations");

help.addHelp(moreRowsLabel, "There are more stations: scroll down to see them");

help.addHelp(selectAllButton, "Click to select all stations");

tableHeader.setToolTipText(null);

rowHeader.setToolTipText(null);

help.addHelp(rowHeader, "Click, SHIFT-click or drag to select stations");

}

開發者ID:max6cn,項目名稱:jmt,代碼行數:52,

示例18: StationTable

​點讚 2

import javax.swing.JComboBox; //導入方法依賴的package包/類

StationTable() {

super(new StationTableModel());

//BEGIN Federico Dall'Orso 8/3/2005

//station type cell renderers

//NEW

LD_disabled_StationTypeCell = new ComboBoxCell(STATION_TYPENAMES);

LD_enabled_StationTypeCell = new ComboBoxCell(STATION_TYPENAMES_LD_ENABLED);

//14/3/2005

deleteButton = new JButton(deleteOneStation);

deleteButtonCellRenderer = new ButtonCellEditor(deleteButton);

enableDeletes();

rowHeader.setRowHeight(18);

setRowHeight(18);

//END Federico Dall'Orso

/* a station type cell editor for open/mixed systems */

JComboBox stationTypeBox = new JComboBox(STATION_TYPENAMES);

stationTypeBox.setEditable(false);

LD_disabled_StationTypeEditor = new DefaultCellEditor(stationTypeBox);

/* a station type cell editor for closed systems */

JComboBox LD_enabled_StationTypeBox = new JComboBox(STATION_TYPENAMES_LD_ENABLED);

LD_enabled_StationTypeBox.setEditable(false);

LD_enabled_StationTypeEditor = new DefaultCellEditor(LD_enabled_StationTypeBox);

setColumnSelectionAllowed(false);

setRowSelectionAllowed(true);

setDisplaysScrollLabels(true);

installKeyboardAction(getInputMap(), getActionMap(), deleteStation);

mouseHandler = new ExactTable.MouseHandler(makeMouseMenu());

mouseHandler.install();

help.addHelp(this,

"Click or drag to select stations; to edit data single-click and start typing. Right-click for a list of available operations");

help.addHelp(moreRowsLabel, "There are more stations: scroll down to see them");

help.addHelp(selectAllButton, "Click to select all stations");

tableHeader.setToolTipText(null);

rowHeader.setToolTipText(null);

help.addHelp(rowHeader, "Click, SHIFT-click or drag to select stations");

}

開發者ID:HOMlab,項目名稱:QN-ACTR-Release,代碼行數:44,

示例19: ClassTable

​點讚 2

import javax.swing.JComboBox; //導入方法依賴的package包/類

ClassTable() {

super(new ClassTableModel());

setName("ClassTable");

disabledCellRenderer = new DisabledCellRenderer();

//BEGIN Federico Dall'Orso 8/3/2005

//NEW

classTypeComboBoxCell = new ComboBoxCell(CLASS_TYPENAMES);

deleteButton = new JButton(deleteOneClass);

deleteButtonCellRenderer = new ButtonCellEditor(deleteButton);

enableDeletes();

rowHeader.setRowHeight(CommonConstants.ROW_HEIGHT);

setRowHeight(CommonConstants.ROW_HEIGHT);

//END Federico Dall'Orso 8/3/2005

JComboBox classTypeBox = new JComboBox(CLASS_TYPENAMES);

classTypeCellEditor = new DefaultCellEditor(classTypeBox);

classTypeBox.setEditable(false);

setColumnSelectionAllowed(false);

setRowSelectionAllowed(true);

// not beautiful, but effective. See ClassTableModel.getColumnClass()

setDefaultRenderer(DisabledCellRenderer.class, disabledCellRenderer);

setDefaultEditor(String.class, classTypeCellEditor);

setDisplaysScrollLabels(true);

installKeyboardAction(getInputMap(), getActionMap(), deleteClass);

mouseHandler = new ExactTable.MouseHandler(makeMouseMenu());

mouseHandler.install();

help.addHelp(this,

"Click or drag to select classes; to edit data single-click and start typing. Right-click for a list of available operations");

help.addHelp(moreRowsLabel, "There are more classes: scroll down to see them");

help.addHelp(selectAllButton, "Click to select all classes");

tableHeader.setToolTipText(null);

rowHeader.setToolTipText(null);

help.addHelp(rowHeader, "Click, SHIFT-click or drag to select classes");

}

開發者ID:max6cn,項目名稱:jmt,代碼行數:43,

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值