1. HELP with JComboBox coderanch.comHi all, I have a JComboBox with a list of years from 1900 to 2100. I want to set the selected item to this year. I can do this so that the date you see is 2001 BUT when you click on the Comnbo Box the first time, the highlighted year in the list is the first one, so you have ... |
2. JComboBox problem - pls help coderanch.comHi, I have a JComboBox. Let it contain some items like "a","b", "c", etc. Now i want to do an activity when the person changes the selection in the combo. Let me explain in detail. Ket us assume that the JCombo is currently displaying "a". Now when the user selects "b" and moves out of focus of the JCombo, i need ... |
3. Help with JComboBox coderanch.com |
4. Combobox Help coderanch.comYou do not need pack if setting size explicitly. You do not need repainting the text area. Be careful with the variable jcboProv. It is first defined as an instance field, then shadowed by a local declaration in the constructor. Because you did not initialize this field, but the local variable in the constructor, when the actionperformed method refers later to ... |
5. JComboBox Help! coderanch.comHello All, I have posted here in the past about JComboBox and you lot have helped me out greatly. I have one more problem then I can stop nagging you. the code below puts values from a database into 2 combo boxes, and puts those combo boxes in to the JTabel. when the code is run the cells in the JTable ... |
6. please help me on combobox problem. Thanks :) coderanch.comHi guys, I am new to Java, also new to GUI. Hope to get help from you. I am doing a GUI design, one part of it containing two combobox and one textfield which I want them have the following function: Assume comboboxA (include 1,2,3,4) and comboboxB(include a,b,c,d,e,f) and textfield(has many string groups corrsponding to each item in comboboxB ) At ... |
7. Combo Box help... coderanch.comWant to produce a splash screen for my code. It will utilise a combo box, which dependant on which one is selected will run a different class. All the information on the internet regarding combo boxes shows the word "pig" in the box, which when selected displays a picture of a pig. How do I change this so that instead showing ... |
8. jComboBox Help coderanch.com |
9. jcombobox help coderanch.com |
10. JCombobox help..! coderanch.com |
11. Need your help with JcomboBox coderanch.comHello to all! I need your help with JcomboBox, while setting files in it. Examine following code: File[] file_list = getFileList(); JComboBox box = new JComboBox(file_list); JFrame frame = new JFrame(); frame.add(box); frame.pack(); frame.setVisible(true); Assume getFileList() is a function that returns an list of files residing in a specific directory and cannot be changed. Above code displays a frame with a ... |
12. HUGE JComboBox Problem. Please Help! go4expert.comHUGE JComboBox Problem. Please Help! I'm having this big problem with my JComboBox. Every time I choose an Item, it call's the selected Item twice I can not figure out what I have coded wrong. Here is my code. Thank you in advance for anyone that can help me out. Code: import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.border.*; import java.sql.ResultSet; ... |
13. Help with jComboBox java-forums.org |
14. Need Help combobox java-forums.org |
15. combo box help... plus hi this is my first post java-forums.orghello everyone this is my first post.... i wrote this code done to display multi combocheckboxes however it displays only the last one. ------------------ package jst; import javax.swing.*; public class checkb { public static void main(String[] args) { JFrame frame= new JFrame("CBox"); JCheckBox chk1 = new JCheckBox("nash 13"); JCheckBox chk2 = new JCheckBox("wade 3"); JCheckBox chk3 = new JCheckBox("jame 23"); JCheckBox ... |
16. Need help with JCOMBOBOX java-forums.orgHello to all! I need your help with JcomboBox, while setting files in it. Examine following code: File[] file_list = getFileList(); JComboBox box = new JComboBox(file_list); JFrame frame = new JFrame(); frame.add(box); frame.pack(); frame.setVisible(true); Assume getFileList() is a function that returns an list of files residing in a specific directory and cannot be changed. Above code displays a frame with a ... |
17. Need help for a jcombobox java-forums.orgHello , i need a jcombobox witch gets values from a file and when i put a new value automatically update file with new value . Here is my code so far Java Code: import java.awt.BorderLayout; import java.awt.Cursor; import java.awt.Dimension; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.KeyAdapter; import java.awt.event.KeyEvent; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import java.awt.event.WindowListener; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import ... |
18. Help using Jcombobox plsssss java-forums.orgIs it possible to save the recently added items in the combo box even if i close the program? My combo box is empty when i run my program, and I only populate it within the program, but whenever i close the program and try to run it again, the items i added in the combo box are gone.. how to ... |
19. Combo box help in SWING java-forums.orgHi. This is part of a larger assignment but at the moment I am trying to get the combo box to display for me. I have not used SWING before and I'm getting two errors in the code on serialized classes. Any hints on how to proceed are appreciated, here's my drafted code: Java Code: import javax.swing.*; import java.awt.*; import java.awt.event.*; ... |
20. Help with fireActionPerformed and JComboBox forums.oracle.comHi, And apologise up front if I am asking the impossible - or indeed something so simple it is painful - but it has got me stumped I have a class that extends a JButton and utilises the protected void fireActionPerformed( ActionEvent e ) method - and i works a treat. I have tried to creat a similar class that extends ... |
21. JComboBox help forums.oracle.comThanks for the help. I don't fully understand how that works, but I am going to take the time to understand it before it implement it into a code I am using. Thanks again. Also are there any links you might be able to recommend me to in order to fully understand this code. I have books on lots of GUI, ... |
22. JComboBox help forums.oracle.comI'm new to java and I'm trying to setup a listener for a JComboBox. I have no idea. SO anyway, I'm setting up a store for a friend on Prostores, and I need the combobox to update the price on the page. It's a little weird since Prostores uses SSML tags, but it should still work. I guess basically if you ... |
23. Swing Combo Box Help forums.oracle.comHi people. I've implemented a JComboBox onto a canvas, using my "DrawingFrame" class. I've also attached an ActionListener to it, with the canvas as the listener. Now how can i find out what has been selected from the JComboBox, by using a SEPARATE CLASS called "DrawingCanvas" which contains various mousePressed methods etc. I did find one way to do this by ... |
24. JComboBox Calculations Help forums.oracle.comWell, 1/2 results in zero because it's the result of dividing one integer by another. That's the root of most of the calculation problems, I expect. Oh and a quicky question, how do I make a label appear on the next line instead of the current one? That would depend on your layout manager. I see you're just using whatever layout ... |
25. JComboBox help. forums.oracle.comHi, I have a JFrame where I have added a JcomboBox, a JLabel and a JTextField. The problem is whenever I try to expand or select an element from the comboBox,the contents get overlapped with the label and the textarea thereby making it difficult to make a selection. Can any one suggest me what do I need to add? |
26. jcombobox help!! forums.oracle.com |
27. Looking For JComboBox Help forums.oracle.com(Sorry about the lack of rendered tags. I don't know how to use them in this forum.) I have a JComboBox (a drop menu) that when opened clears all its items and then adds new items from a list. Whenever the list is augmented (and is small), the JComboBox's display size is too small, and it creates a little scrollbar to ... |
28. Help with JComboBox forums.oracle.comShouldn't my suggestion work as well? Yes it should, but I guess the point is why create an ArrayList only to immediately convert it to an Array. Internally, I think it then converts the Array to a Vector so you can have a dynamic combo box. Seems like extra use of resources, so just use a Vector to begin with. But ... |