jlist
problem with setSelectedValue Method for JList
i am having troubles when i run the main class for the application. The fact is that the setSelectedValue method doesn\'t work.[详细]
2023-03-20 06:12 分类:问答Error with setSelectedValue method for a JLIST
I am having troubles with JList class. I am getting data from a vector to fill the JList and the list looks fine when I show it on screen. The list contains table names,and the selected one is the tab[详细]
2023-03-19 21:08 分类:问答(Java) JList displays an empty list occasionally on program start
My program reads in files from a given directory on program start (each one containing an object), and adds each object to a Vector. updateList() is then called which loops through each of these objec[详细]
2023-03-19 03:03 分类:问答How to get the background color of a JList's unselected cell?
I am trying to find the color used by cells that are unselected. This is usually white, however when I call UIManager.getColor(\"List.background\"), it appears to be the same grey color used for JPane[详细]
2023-03-16 13:20 分类:问答How to get rid of JList's preselection
The issue is that when the file runs JList already makes its own selection and so when the user makes a selection the list is no longer in the right position. Ultimately, I want to make this a recursi[详细]
2023-03-10 05:40 分类:问答Optimized way to get a JList sorted in 2 groups
I have a jlist of users. In which some user has presence 1st and while others have 2nd. SO what I want is to display this list as First it shows users with presence=1st in sorted order and then user w[详细]
2023-03-08 18:08 分类:问答JList drag CustomObject but drop String
private JList attributesList; public AttributeGroupComponent(ArrayList<?> items) { attributesList = new JList(items.toArray());[详细]
2023-03-07 15:02 分类:问答Java Directory Listing problem
I want to list all the folders of the current directory but there are two problems. Everytime i run this program, the list shows all the files of the last folder inside the directory and the filter do[详细]
2023-03-07 01:59 分类:问答Tooltip location in swing
I want to show tooltip for the elements in JList. I use setToolTipText(str) for that. What I want is that tool tip should be displayed at the right side of that element. I use getToolTipLocation(mouse[详细]
2023-03-06 19:30 分类:问答Binding a Swing JList into an array
I want to bind a JList in a JScrollPane to an array , whenever the array c开发者_运维问答hanges the List changes .The first idea, of course, would by to use one of JList\'s constructors and hope that[详细]
2023-03-06 18:21 分类:问答