public void valueChanged(ListSelectionEvent e) { int sel = shoptable.getSelectedRow(); if(sel!=-1) { item.setText(""+shopmodel.getValueAt(sel, 0)); } } });
public void valueChanged(ListSelectionEvent e) { int sel = shoptable.getSelectedRow(); if(sel!=-1) { item.setText(""+shopmodel.getValueAt(sel, 0)); } } });
if(sel!=-1) final String name = (String)shopmodel.getValueAt(sel, 0); final Double price = (Double)shopmodel.getValueAt(sel, 1); final IShopService shop = (IShopService)shops.get(shopscombo.getSelectedItem()); agent.scheduleStep(new IComponentStep<Void>()
if(sel!=-1) final String name = (String)shopmodel.getValueAt(sel, 0); final Double price = (Double)shopmodel.getValueAt(sel, 1); final IShopService shop = (IShopService)shops.get(shopscombo.getSelectedItem()); capa.getAgent().getExternalAccess().scheduleStep(new IComponentStep<Void>()
public void removeTemplateAction() { int selected = view.getTable().getSelectedRow(); if (selected < 0) { return; } Object key = ((AbstractTableModel) view.getTable().getModel()).getValueAt( selected, 0); editor.getRemovedNode().add(getTemplatePreferences().node((String) key)); templateEntries.remove(selected); ((AbstractTableModel) view.getTable().getModel()).fireTableRowsDeleted( selected, selected); } }
Object state = items.getValueAt(row, 6); if(Order.DONE.equals(state))
Object state = items.getValueAt(row, 6); if(Order.DONE.equals(state))
nameWidth = Math.max( nameWidth, fm.stringWidth( (String)contentModel.getValueAt( i, 1 ) ) ); typeWidth = Math.max( typeWidth, fm.stringWidth( (String)contentModel.getValueAt( i, 2 ) ) );
getTable(), getTableModel().getValueAt(y, x), false, false, 0, x); if (comp.getPreferredSize().width > width) { width = comp.getPreferredSize().width;