swingx

Java Swing JXDatePicker

淺唱寂寞╮ 提交于 2019-11-28 12:26:05
I'm using SwingX JXDatePicker and I can't figure out how to provide next/previous year buttons (as by default it only provides next/previous month buttons). Also, it seems that SwingX is not maintained anymore: should I be using a more recent component as date picker? Any help/hint would be greatly appreciated. Thanks, Thomas UPDATE: To clarify the question, I added a JXDatePicker screenshot and highlighted in red the next/previous month buttons. The questions is thus: how to add buttons that will bring the calendar to next/previous year? Please note that the new buttons need to be standard

Custom TableCellRenderer/TreeTableCellRenderer doesn't render Table cells

六眼飞鱼酱① 提交于 2019-11-28 11:30:28
I made this CustomCellRenderer class intended to be used in JXTreeTable and JXTable objects since I have many of these in my project. So this class implements TreeCellRenderer and TableCellRenderer interfaces: public class CustomCellRenderer extends JLabel implements TreeCellRenderer, TableCellRenderer { @Override public Component getTreeCellRendererComponent(JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { setBackground(selected ? new Color(83,142,213) : Color.white); setForeground(selected ? Color.white : Color.black); //here is the

How to hide a particlar column in DefaultTableModel from displaying it in table?

╄→尐↘猪︶ㄣ 提交于 2019-11-28 09:39:19
问题 I am using Java Swingx framework. I have 4 columns in my DefaultTableModel object. I wish to display only 3 of the columns. But, I need all four for computing. Actual data model S.No. | ID | GDC ID | Decsription What I want to display in table S.No.| GDC ID | Decsription Is it possible to hide or omit only one column from rendering? Please guide me. 回答1: by default minimum size is 10 pixels widht, you can to remove / add column from JTable view, column presents in the XxxTableModel, you can

create an transparent rectangle over blurred background in jframe

半腔热情 提交于 2019-11-28 01:46:11
I am having problem in creating an transparent rectangle over blurred background. I am trying to do this task on glasspane . Here is my code snippet. void createBlur() { alpha = 1.0f; JRootPane root = SwingUtilities.getRootPane(jf); blurBuffer = GraphicsUtilities.createCompatibleImage(jf.getWidth(), jf.getHeight()); Graphics2D g2d = blurBuffer.createGraphics(); root.paint(g2d); g2d.dispose(); backBuffer = blurBuffer; blurBuffer = GraphicsUtilities.createThumbnailFast(blurBuffer, jf.getWidth() / 2); blurBuffer = new GaussianBlurFilter(5).filter(blurBuffer, null); } where, backBuffer and

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

孤人 提交于 2019-11-27 11:24:30
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 the download addresses etc are all broken, for example: https://swingx.dev.java.net the first link on http://swinglabs.org/projects.jsp https://swingx.dev.java.net/files/documents/2981/153005/swingx-1.6.2-bundle.zip the latest stable download etc... Is it simply a matter of substituting a new domain, or has Oracle gutted these activities? kleopatra Update SwingX 1.6.5-1 is released (actually, a while back, forgot this thread ;), see the

Filtering on a JTree [closed]

雨燕双飞 提交于 2019-11-27 08:49:26
Problem Applying filtering on a JTree to avoid certain nodes/leaves to show up in the rendered version of the JTree . Ideally I am looking for a solution which allows to have a dynamic filter, but I would already be glad if I can get a static filter to work. To make it a bit easier, let us suppose the JTree only supports rendering, and not editing. Moving, adding, removing of nodes should be possible. An example is a search field above a JTree , and on typing the JTree would only show the subtree with matches. A few restrictions: it is to be used in a project which has access to JDK and SwingX

Replace a class within the Java class library with a custom version

天大地大妈咪最大 提交于 2019-11-27 08:19:42
The class BasicLabelUI in javax/swing/plaf/basic is affected by a confirmed bug . In my application I need functionality provided by the fixed version (filed for v9) . Due to both legal and technical reasons, I'm still bound to the affected JDK version. My approach was to create a package javax/swing/plaf/basic inside my project, containing the fixed version. How can I force my project to favor my included version of the class over the defective class in the installed JDK? This has to be somewhat portable as the fixed class also has to be working on customer side and the defective class in the

Java Swing JXDatePicker

心已入冬 提交于 2019-11-27 07:01:31
问题 I'm using SwingX JXDatePicker and I can't figure out how to provide next/previous year buttons (as by default it only provides next/previous month buttons). Also, it seems that SwingX is not maintained anymore: should I be using a more recent component as date picker? Any help/hint would be greatly appreciated. Thanks, Thomas UPDATE: To clarify the question, I added a JXDatePicker screenshot and highlighted in red the next/previous month buttons. The questions is thus: how to add buttons that

Custom TableCellRenderer/TreeTableCellRenderer doesn't render Table cells

﹥>﹥吖頭↗ 提交于 2019-11-27 06:17:22
问题 I made this CustomCellRenderer class intended to be used in JXTreeTable and JXTable objects since I have many of these in my project. So this class implements TreeCellRenderer and TableCellRenderer interfaces: public class CustomCellRenderer extends JLabel implements TreeCellRenderer, TableCellRenderer { @Override public Component getTreeCellRendererComponent(JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { setBackground(selected ? new

Choosing a file in-pane with Swing

两盒软妹~` 提交于 2019-11-27 03:57:16
问题 I'm writing a GUI in Swing where I want to do a file chooser that is in the main window, looking something like the image below: while there seem to be quite a few tutorials on how to write a popup file chooser, i don't see much information on how this type of chooser might be accomplished in swing. also sorry if this has been asked before, i did a good bit of searching around and wan't able to find anything else.. 回答1: JFileChooser actually extends JComponent, so you can use like any other