swingx

Setting the date format in JXTable cell

倖福魔咒の 提交于 2021-01-29 07:39:51
问题 On this thread I've figured out how to add a JXDatePicker in to a JXTable (or JTable) cell. But I've a small issue now. DatePicker pops up and works fine according to my need. But I can't change the display format of the date in the cell. It shows in the following long format. Eg: Wed Aug 01 00:00:00 IST 2012 But I need it in dd-MMM-yyyy format. I've tried changing the DatePickerCellEditor 's format. It partly works. Which means, now it shows the date according to the set format when that

How to dispose a tabbed pane component completely from a JTabbedPane

纵然是瞬间 提交于 2021-01-27 19:08:01
问题 I have added a few tabs to a JTabbedPane. Each tab contains a JPanel. I now remove the tab by calling JTabbedPane.remove([tab index]). This removes the tab and everything is fine, except that when I profile the app, the JPanel added to the JTabbedPane does not get 'disposed' off and the reference is still present in the heap. After few 100 operations of adding the tab and closing it, the app goes Out of Memory. I analysed the heap dump using Eclipse MAT and I clicked on the Immediate

Dynamically update a pie chart in an Observer?

情到浓时终转凉″ 提交于 2020-01-25 07:22:06
问题 I am using pie chart to display some statistics in a JFrame using JFreeChart package. I am using the PieDataset to be passed to the createChart method. Also, the datatset is set to update dynamically, as I am using the observer pattern in my application, which I thoroughly debugged. My issue is that in spite of being able to update the datatset dynamically, the piechart on the frame does not update as it is, maybe not able to take the new (updated) values and display the result. I would like

JXTable not refreshed upon button click

五迷三道 提交于 2020-01-22 02:49:08
问题 I have a JFrame which holds a JXTable (from SwingX dependency) and a JButton . Once I click the JButton the table should get updated each time. In my case it gets updated only at the first time. Other events also get triggered on the button click (which happens each time I click the button). Only the table is not refreshed with the new rows added. I am using DeafultTableModel and have tried (explicit trigger) all suggested methods like repaint , fireTableDataChanged etc. Can someone please

how can i use JXMapViewer in my applet?

倖福魔咒の 提交于 2020-01-13 05:31:28
问题 i want to write an applet that must render my map images with zoom/pan tools, i find out JXMapViewer can help me, how i can use it? where i can find related docs which help me to write an applet that request on my image server to provide tiles to render? what about image server and .... !!!!??? help me on : image server structure, tileprovider, tilefactory,... that JXMapViewer need. 回答1: As AeonFlux linked you, Joshua Marinacci's blog is the best resource to get started. There are six

Prefuse example graph partly outside of JPanel

≯℡__Kan透↙ 提交于 2020-01-10 05:17:08
问题 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

What is the status of SwingLabs (SwingX) post acquisition [closed]

前提是你 提交于 2020-01-09 04:18:18
问题 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 found this older discussion: Does anyone use the "swingx" extensions to Swing?, but I am wondering the current status of SwingLabs, SwingX. A bunch of

Accessing JFrame stuff from the outside

蓝咒 提交于 2020-01-06 12:59:14
问题 Really, really stupid question here. I'm new to Java (and OOP), coming from a Javascript (Extendscript, actually) background. I have a JFrame here: package info.chrismcgee.sky.production; import java.awt.EventQueue; import java.awt.Font; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JTextField; import javax.swing.SwingConstants; import javax.swing.border.EmptyBorder; import javax.swing.border.EtchedBorder;

Accessing JFrame stuff from the outside

梦想与她 提交于 2020-01-06 12:58:28
问题 Really, really stupid question here. I'm new to Java (and OOP), coming from a Javascript (Extendscript, actually) background. I have a JFrame here: package info.chrismcgee.sky.production; import java.awt.EventQueue; import java.awt.Font; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JTextField; import javax.swing.SwingConstants; import javax.swing.border.EmptyBorder; import javax.swing.border.EtchedBorder;

The Auto Completion For JTable Using J2s [Auto complete ComboBox] Not Working

六眼飞鱼酱① 提交于 2020-01-03 03:31:07
问题 With refrence To The Question! By abg and answer By mKorBel. And Using J2s Auto Complete Combo Box! The Code in the Answer By mKorBel For My Case Is Not Working When I use Item Class instead of String for ArrayList items. Vector<Vector<String>> comboData=util.GetComboData(); ArrayList<String> listSomeString = util.GetListForComboBox(comboData); Java2sAutoComboBox comboBox = new Java2sAutoComboBox(listSomeString); comboBox.setDataList(listSomeString); column.setCellEditor(new DefaultCellEditor