Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
jcombobox
- Page 1
Re: JComboBox help
Programming
Software Development
15 Years Ago
by abhi_elementx
…:567) at javax.swing.
JComboBox
.fireActionEvent(
JComboBox
.java:1240) at javax.swing.
JComboBox
.contentsChanged(
JComboBox
.java:1311) at javax.swing.
JComboBox
.intervalRemoved(
JComboBox
.java:1331) at…
JComboBox help
Programming
Software Development
15 Years Ago
by abhi_elementx
…out of bounds at javax.swing.
JComboBox
.setSelectedIndex(
JComboBox
.java:601) at masterentry.MasterEntry_Frame.…
JComboBox
.fireItemStateChanged(
JComboBox
.java:1205) at javax.swing.
JComboBox
.selectedItemChanged(
JComboBox
.java:1262) at javax.swing.
JComboBox
.contentsChanged(
JComboBox
…
JComboBox
Programming
Software Development
16 Years Ago
by NycNessyness
Hello. I'm having troubles with my
JComboBox
calculations. For example, if the strings in my
JComboBox
were String[] name = { "John"…
Re: JComboBox
Programming
Software Development
16 Years Ago
by NycNessyness
…'m trying to keep separate. For example I have a
JComboBox
that has 5 items. Television, Radio, Game, PC and Movie… are the five items in my
JComboBox
. I'm trying to add a percentage to each of…
Re: JComboBox
Programming
Software Development
16 Years Ago
by javaAddict
… values: name="John" percentage=0.15 to the
JComboBox
it will be display what the toString method returns: "…
JComboBox and JButton issues
Programming
Software Development
12 Years Ago
by bangor_boy
… private JPanel ten; private
JComboBox
petList; private
JComboBox
ownerList; private
JComboBox
colourList; public mainInterface() {…{ int flag = 0; drawApp(flag); }
JComboBox
cb = (
JComboBox
)e.getSource(); String petName = (String)cb.getSelectedItem…
JComboBox problems.
Programming
Software Development
12 Years Ago
by Vampiricx3
…hireyearL, salaryL; private JTextField idTF, nameTF, hireyearTF, salaryTF; private
JComboBox
titleCB, employeesCB; private JButton addToFile, exitB, clearB; private JMenuItem…new JTextField(4); salaryTF = new JTextField(12); employeesCB = new
JComboBox
(getEmployees()); JMenuBar mb = new JMenuBar(); JMenu me = new JMenu(&…
JComboBox Table Cell Editor - removing items
Programming
Software Development
10 Years Ago
by CoilFyzx
…for their cells. Each cell, in a row (via
JComboBox
) presents the same choices to the user. The user …accopmlish is this: Whenever selections are made from any
JComboBox
the next cells should present as options the remaining unselected…, I want that option to disappear from the other
JComboBox
editors. (I have thought about checking what the value…
JComboBox question
Programming
Software Development
14 Years Ago
by ubi_ct83
…t4 = new JTextArea("",13, 20); private
JComboBox
t2 = new
JComboBox
(t_value2); class B4L implements ActionListener { public void actionPerformed(ActionEvent… from JTextArea String data_str=t1.getText(); // get input from
JComboBox
...how?? // count parameter int p = data_str.replaceAll("[^,]&…
Re: JComboBox and JButton issues
Programming
Software Development
12 Years Ago
by mKorbel
for
JComboBox
you have to change Listener from ActionListener to the [URL=&… changes to inside, back to the
JComboBox
then look for ActionListener, for output from
JComboBox
to the GUI is almost better ItemListener
Re: JComboBox Table Cell Editor - removing items
Programming
Software Development
10 Years Ago
by CoilFyzx
…Economics"}; MutableComboBoxModel subCBXmod=new DefaultComboBoxModel(theSubs);
JComboBox
studentComboBox=new
JComboBox
(subCBXmod); //In my constructor. I have…the cells from fifth column onwards editable using
JcomboBox
's. Now what I want to do…is filled with a choice from the
JComboBox
editor, I wish for that option to…
Re: JComboBox question
Programming
Software Development
14 Years Ago
by javaAddict
…] class SomeObject { // many attributes } [/CODE] [CODE]
JComboBox
t2 = new
JComboBox
(); // add some SomeObject objects to the
JComboBox
SomeObject so = (SomeObject)t2.getSelectedItem(); [/CODE…] Also what will be displayed at the
JComboBox
will be determined by the toString method of SomeObject class…
Re: JComboBox problems.
Programming
Software Development
12 Years Ago
by JamesCherrill
…find symbol symbol : constructor
JComboBox
(java.lang.String)[/QUOTE] Check the API doc:
JComboBox
does not have a constaructor… as a parameter. [QUOTE]location: employeesCB = new
JComboBox
(getEmployees());[/QUOTE] Now [I]getEmployees [/I]sounds like …ps: When you check the API doc for
JComboBox
you will see constructors that take an array …
Re: JComboBox and JButton issues
Programming
Software Development
12 Years Ago
by NormR1
….ClassCastException: javax.swing.JButton cannot be cast to javax.swing.
JComboBox
[/QUOTE] Please include the text of the error message that…
Re: JComboBox Table Cell Editor - removing items
Programming
Software Development
10 Years Ago
by mKorbel
… in your case), again one XxxCellEditor with
JComboBox
as local variable (don't wrote extends
JComboBox
, because this.whatever can be misspeled… list of arrays for Default/MutableComboModel added in XxxCellEditor to
JComboBox
used as TableCellEditor
Re: JComboBox Table Cell Editor - removing items
Programming
Software Development
10 Years Ago
by Phaelax
… with that. You don't need to create a new
JComboBox
, only update their list of data. You can remove the…. Do all the rows contain the same items in the
JComboBox
? Because then it would be easy to keep a master…
Re: JComboBox Table Cell Editor - removing items
Programming
Software Development
10 Years Ago
by CoilFyzx
… I go about accessing the Model for each cell's
JComboBox
? The reason I ask this, is because I used the… same
JComboBox
to create the DefaultCellEditor for each row. So is there…
JComboBox with database
Programming
Software Development
12 Years Ago
by TIM_M_91
Hi guys well I have created a
JComboBox
that lists all my values from a String…However I want instead of the values for the
JComboBox
to be in a String the values to be …displayed in the
JComboBox
from my database so if more values are … to the database the values will be in the
JComboBox
. So how would I do this? Any help…
jComboBox with database
Programming
Software Development
11 Years Ago
by subrat_p
…:initComponents private void initComponents() { jComboBox1 = new javax.swing.
JComboBox
(); jComboBox2 = new javax.swing.
JComboBox
(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); jComboBox1.setModel(new…
Re: JComboBox Table Cell Editor - removing items
Programming
Software Development
10 Years Ago
by mKorbel
@Phaelax JTable (standard way) doesn't contains any
JComboBox
, this is painting illusion made by XxxTableCellRenderer/Editor, in the …
Re: JComboBox Table Cell Editor - removing items
Programming
Software Development
10 Years Ago
by mKorbel
- there could be only one XxxTableCellEditor for
JComboBox
, I think, quite sure that for whole JTables view, current …
Re: JComboBox Table Cell Editor - removing items
Programming
Software Development
10 Years Ago
by CoilFyzx
How would this help me to change the contents of the
JComboBox
's? Because isn't it true that I need to change the Model if I am to change the data?
Re: JComboBox Table Cell Editor - removing items
Programming
Software Development
10 Years Ago
by JamesCherrill
Each cell has its own renderer, which is a
JComboBox
, which has its own list of data to populate its values. It's those lists of data you need to update for your stated requirement. The TableModel isn't going to help when each cell has a list of values associated with it.
Re: JComboBox Table Cell Editor - removing items
Programming
Software Development
10 Years Ago
by CoilFyzx
… not understanding something again. What I did was create one
JComboBox
as shown in my code, then used it to set…
Re: JComboBox in JTable
Programming
Software Development
15 Years Ago
by bokz06
…;MF"}; private
JComboBox
gkBox; private
JComboBox
gkBox1; URL yahoo; private
JComboBox
comboBox; public panel()… table = new JTable(myData); gkBox = new
JComboBox
(positions); gkBox.setSelectedIndex(0); gkBox.addActionListener(new ComboBoxListener…
JComboBox problems
Programming
Software Development
15 Years Ago
by jimbobjoe
… it up and running, but I simply cannot get the
JComboBox
working. I have to use this to set the alignment… FlowLayout(); JPanel jPanel4 = new JPanel(); BorderLayout borderLayout1 = new BorderLayout();
JComboBox
jtfAlignment = new
JComboBox
(new Object[] {"Left", "Center", "…
Re: JComboBox problems
Programming
Software Development
15 Years Ago
by jimbobjoe
… I still haven't figured out how to make the
JComboBox
work. I have added an action listener, but I don… FlowLayout(); JPanel jPanel4 = new JPanel(); BorderLayout borderLayout1 = new BorderLayout();
JComboBox
jcbAlignment = new
JComboBox
(new Object[] {"Left", "Center", "…
JComboBox in JTable
Programming
Software Development
15 Years Ago
by bokz06
… extra column on the end but make each row a
JComboBox
. i added an extra column in my JTable called HI…; TableColumn col1 = table.getColumnModel().getColumn(index1); javax.swing.
JComboBox
comboBox = new javax.swing.
JComboBox
(); ArrayList list = new ArrayList(); list.add("GK…
Jcombobox filter list
Programming
Software Development
13 Years Ago
by the reporter
…java.util.ArrayList; import javax.swing.JButton; import javax.swing.
JComboBox
; import javax.swing.JFrame; import javax.swing.JLabel; import…; JLabel read3; JLabel read4; JButton butt1; JButton butt2;
JComboBox
ipList = new
JComboBox
(); ArrayList<Object> Stock = new ArrayList<Object…
JComboBox Display Problem
Programming
Software Development
13 Years Ago
by Pushpasheela
…JFrame implements ActionListener,ItemListener { Container c; JLabel lblstart,lblend;
JComboBox
cmbstart,cmbend; JButton btnview,btnclose,btnclear; //JTextField txtpin; PreparedStatement…=new JLabel("End Date"); cmbstart=new
JComboBox
(); cmbend=new
JComboBox
(); btnview=new JButton("View"); btnclose=new…
1
2
3
17
Next
Last
Search
Search
Forum Categories
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Forums
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC