jlist
Bizarro Swing JList Model Behavior
I am having an issue in my Swing app where I am creating a simple JList by passing it a model - and even though the model is demonstrably populated,开发者_开发技巧 the JList refuses to display it\'s o[详细]
2023-03-29 14:44 分类:问答JTextField's setText method does not update the JTextField instances
The below is part of code of a multi file project. I am posting only this code since I am unclear why setText method is not working. Not all code for this project is included.[详细]
2023-03-28 06:28 分类:问答How should I manage multithreaded concurrent access to an ArrayDeque?
My Swing GUI displays a JList of items that are being sequentially removed by a background thread. Behind the JList is an ArrayDeque<Card>, my开发者_如何学GoHopper, implementing myHopper.getSiz[详细]
2023-03-27 16:10 分类:问答JList items with horizontal wrap not extending all the way through
I have a Jlist like the one below. I am using the JList.HorizontalWrap to achieve this, but for some reason, after the 4th item in the list, it starts a new row.[详细]
2023-03-26 17:58 分类:问答JList with Image and text: Where text is coming from an ArrayList<String>
i have a simple example of a JList that is getting it\'s data from an ArrayList but i want to show an image next to each string in the list. I have written a custom cell renderer (IconListRenderer) th[详细]
2023-03-26 15:11 分类:问答Expand JList row height depending on content
I have a simple problem which totally drives me crazy. I have a JList, and would like its cells to expand depending on their content, which is text of variable length.[详细]
2023-03-24 15:14 分类:问答Element inserted into custom ListModel is automatically selected if between two selected values
I\'ve noticed is that when an element is added to a JList and the element happens to fall within a range of values that are selected, it ends up being selected by default. In fact, if an element is ad[详细]
2023-03-24 07:40 分类:问答JList that contains JTextAreas displays the JTextAreas' toString() instead of the JTextArea
I am using a JList, and I\'m trying to use JTextAreas (that implement ListCellRenderer) for the cells. It isn\'t working. The cells simply display the ListCellRenderer.toString() instead of the actual[详细]
2023-03-22 23:06 分类:问答Problem understanding Serializable
just started using the Serializable-thingy, I want to save a couple of lists and some other objects, but I can\'t seem to get some things right.[详细]
2023-03-22 06:24 分类:问答Exception on deleting JList items on keypress
I\'m getting a NullPointerException in my JList, but the source of the exception seems to be the Swing event handling code.The JList has a key listener which will delete the selected item when the Del[详细]
2023-03-20 20:18 分类:问答