swingx

How to make JScrollPane scroll 1 line per mouse wheel step?

自作多情 提交于 2019-11-30 20:32:05
I have a JScrollPane whose content pane is a JXList. When I use the mouse wheel on the list, the list steps three (3) items at a time. This also works for a table, regardless of row height. How can I change this so that - regardless of platform - for both list and table the scroll distance is exactly 1 item? Setting block increment doesn't cut it because some rows in the table have a different height. Out of pure interest (and a little boredom) I created a working example: /** * Scrolls exactly one Item a time. Works for JTable and JList. * * @author Lukas Knuth * @version 1.0 */ public class

How do I know if an item of an auto-complete decorated JComboBox is mouse clicked?

不问归期 提交于 2019-11-30 14:31:05
I'm using the SwingX AutoCompleteDecorator for a JComboBox . The autocomplete feature works beautifully... But I have trouble to identify the moment of the final user selection ; to persist my data seldom. Let me try to explain: The combobox fires an "comboBoxChanged"- ActionEvent for every selection. I have to ignore these events while the user is typing characters and the combobox is auto-matching and selecting items. If the user hits the return-key an "comboBoxEdited"- ActionEvent is generated and I can save the selected value. Great ;-) If the mouse is used to open the JComboBox -PopUp and

Problems understanding the framework around a JXLoginPane example

柔情痞子 提交于 2019-11-30 09:47:18
问题 I've found a component called JXLoginPane from SwingX available in WindowBuilder and that seems like it would be a good starting point for what I am trying to do, but I need more information about how to use it. So far, the only thing I've found to really help me out with it is this 9-year-old blog post. It does get me most of the way there, but there are several references to things like is.IS_Statics , is.MD5Hash , and isquote.Main that the author does not provide. I am guessing that these

JXDatePicker using SimpleDateFormat to format dd.MM.yy to dd.MM.yyyy with current century

夙愿已清 提交于 2019-11-30 07:39:29
问题 as already explained I want to achieve, that when the user is editing a date within a JXDatePicker, he can choose, weather he types it again in the same format, which is by default dd.MM.yyyy or just dd.MM.yy. When he uses the short form I want the Picker to choose the current century. Example: 27.01.2012 edited to 27.01.10 should result in 27.01.2010 as well as: 27.01.2012 edited to 27.01.2010 should also result in 27.01.2010 By default the JXDatePicker handels it the following way: 27.01

How to make JScrollPane scroll 1 line per mouse wheel step?

╄→尐↘猪︶ㄣ 提交于 2019-11-30 04:55:23
问题 I have a JScrollPane whose content pane is a JXList. When I use the mouse wheel on the list, the list steps three (3) items at a time. This also works for a table, regardless of row height. How can I change this so that - regardless of platform - for both list and table the scroll distance is exactly 1 item? Setting block increment doesn't cut it because some rows in the table have a different height. 回答1: Out of pure interest (and a little boredom) I created a working example: /** * Scrolls

Map API for Java Swing

ε祈祈猫儿з 提交于 2019-11-30 03:23:52
问题 I want to visualise the geographic map in the swing application. I found only swingx map api. Do you know other open-source map api? 回答1: Try Geotools, it has a good API and tools for geospatial data. 回答2: You could use this mappanel in Swing: http://mappanel.sourceforge.net/ This is completely open source. together with openstreetmap.org maps. 回答3: A little late, but here is a solution: Slippy maps for Java Swing GUIs: SwingX-WS 回答4: hey have a look at SVG Batik of Apache at http:/

How do I know if an item of an auto-complete decorated JComboBox is mouse clicked?

半世苍凉 提交于 2019-11-29 20:30:07
问题 I'm using the SwingX AutoCompleteDecorator for a JComboBox . The autocomplete feature works beautifully... But I have trouble to identify the moment of the final user selection ; to persist my data seldom. Let me try to explain: The combobox fires an "comboBoxChanged"- ActionEvent for every selection. I have to ignore these events while the user is typing characters and the combobox is auto-matching and selecting items. If the user hits the return-key an "comboBoxEdited"- ActionEvent is

Prefuse example graph partly outside of JPanel

限于喜欢 提交于 2019-11-29 14:42:31
I want to use Prefuse to visualise a graph. I followed their tutorial and tried their sample application. Its sourcecode can be found here However, even if I simply copy the full code, the resulting graph does not look as displayed in the tutorial. It is only half visible, stuck in JPanel's upper left corner. Some parts of it are missing becuase they would have to be displayed outside the panel. I tried with some graphs of my own, but I keep running into the same phenomenon. I suppose this is not expected behaviour, but I have no idea where to hunt for the problem. I don't know if this is a

Does anyone use the “swingx” extensions to Swing? [closed]

烂漫一生 提交于 2019-11-29 14:27:25
问题 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 7 years ago . I've seen "swingx" mentioned and referred to here. However, every time I try to visit the site: http://swinglabs.org/ It's down! Is this still an active,

JXDatePicker using SimpleDateFormat to format dd.MM.yy to dd.MM.yyyy with current century

本小妞迷上赌 提交于 2019-11-29 04:48:05
as already explained I want to achieve, that when the user is editing a date within a JXDatePicker, he can choose, weather he types it again in the same format, which is by default dd.MM.yyyy or just dd.MM.yy. When he uses the short form I want the Picker to choose the current century. Example: 27.01.2012 edited to 27.01.10 should result in 27.01.2010 as well as: 27.01.2012 edited to 27.01.2010 should also result in 27.01.2010 By default the JXDatePicker handels it the following way: 27.01.2012 edited to 27.01.10 results in 27.01.0010 Which is not really the way I wanted it to work. After some