Adding FileFilters to JFileChooser827 (3/24/2009 2:31:43 AM) comp.lang.java.programmer Okay, I know this should be easy, but I really cannot got this to work. I'm adding FileFilters (DefaultFileFilters) to a JFileChooser in the following way: List filters = new ArrayList(); filters.add(new Defa... Jason
JScience Question146 (3/20/2009 6:48:29 PM) comp.lang.java.programmer I'm currently using JScience (http://jscience.org/) to do some conversions. One thing I'm confused about using this library (which is relatively straightforward) is when I am creating a new unit, I can do one ... Jason
Extra Row in JTree625 (3/16/2009 2:47:02 PM) comp.lang.java.programmer I'm having an issue when adding a new node to a JTree. Here's the code in question: this.setEditable(true); if (parent == null) { treeModel.insertNodeInto(child, rootNode, rootNode.getChildCount()); } else... Jason
Preventing Events From Firing230 (12/17/2008 10:55:19 PM) comp.lang.java.programmer Is it possible to update a Swing component (such as calling JTextField.setText(String)) without an event being fired off? Currently, any call I make to setText fires the DocumentListener on the JTextField's doc... Jason
Multiple Views to a Model928 (12/11/2008 10:17:35 PM) comp.lang.java.programmer I was wondering if anybody here has implemented multiple (Swing) views to a common model. I'm currently doing this, and I'm having an issue where 1. I update the model via the first view (type some text into ... Jason
Handling Focus on JTextField237 (12/2/2008 2:56:25 PM) comp.lang.java.programmer I'm attempting to handle focus on a JTextField. Basically, when the user tabs to the text field, I want all the text to be highlighted. When the user uses the mouse to give the JTextField focus, I just want th... Jason
Drawing a Button in JTextField327 (11/17/2008 8:25:10 PM) comp.lang.java.programmer I want to place a button within a JTextField (at the far right). I'm easily able to put images and other things in the JTextField by overriding paint(Graphics), but I can't seem to insert a component. (For the... Jason
Accessing File In JAR1030 (11/12/2008 3:59:56 PM) comp.lang.java.programmer I am having trouble accessing files located in a JAR. Here's my current setup (names have been changed of the JAR files). JAR1.jar - This is the JAR that will try to access the text.properties file. (This is... Jason
Serialization Slow?428 (11/7/2008 12:16:25 AM) comp.lang.java.programmer I'm doing some serialization of data (as a result of a TransferHandler - basically, I'm doing a copy and paste) and I am noticing that it becomes increasingly slow as I copy more and more data. One piece of da... Jason
Expensive Recursion + Method Calls?727 (10/23/2008 4:00:10 PM) comp.lang.java.programmer In my original code, I implemented a method that searched through a tree structure to find children of a certain type beneath a parent node. This is demonstrated in the following method. Note that this method... Jason
Smuggling information to enums2735 (3/24/2009 2:57:08 PM) comp.lang.java.programmer What the techniques are there for smuggling information to enums? they don't have constructors. It is not clear how you would make them nested classes. Is it possible to somehow have two enum class objects ... see_website(4855)
Adding FileFilters to JFileChooser827 (3/24/2009 2:31:43 AM) comp.lang.java.programmer Okay, I know this should be easy, but I really cannot got this to work. I'm adding FileFilters (DefaultFileFilters) to a JFileChooser in the following way: List filters = new ArrayList(); filters.add(new Defa... jason.cavett(211)
Extra Row in JTree625 (3/16/2009 2:47:02 PM) comp.lang.java.programmer I'm having an issue when adding a new node to a JTree. Here's the code in question: this.setEditable(true); if (parent == null) { treeModel.insertNodeInto(child, rootNode, rootNode.getChildCount()); } else... jason.cavett(211)
Handling Focus on JTextField237 (12/2/2008 2:56:25 PM) comp.lang.java.programmer I'm attempting to handle focus on a JTextField. Basically, when the user tabs to the text field, I want all the text to be highlighted. When the user uses the mouse to give the JTextField focus, I just want th... jason.cavett(211)
Drawing a Button in JTextField327 (11/17/2008 8:25:10 PM) comp.lang.java.programmer I want to place a button within a JTextField (at the far right). I'm easily able to put images and other things in the JTextField by overriding paint(Graphics), but I can't seem to insert a component. (For the... jason.cavett(211)
Managing a software project131 (11/12/2008 4:50:12 PM) comp.lang.java.programmer Hello, I want to learn about software management methods. I guess that most contributors to this group are full time developers and are confronted to some sort of software management. Would you share your know... djbulu(75)
Accessing File In JAR1030 (11/12/2008 3:59:56 PM) comp.lang.java.programmer I am having trouble accessing files located in a JAR. Here's my current setup (names have been changed of the JAR files). JAR1.jar - This is the JAR that will try to access the text.properties file. (This is... jason.cavett(211)
Serialization Slow?428 (11/7/2008 12:16:25 AM) comp.lang.java.programmer I'm doing some serialization of data (as a result of a TransferHandler - basically, I'm doing a copy and paste) and I am noticing that it becomes increasingly slow as I copy more and more data. One piece of da... jason.cavett(211)
Expensive Recursion + Method Calls?727 (10/23/2008 4:00:10 PM) comp.lang.java.programmer In my original code, I implemented a method that searched through a tree structure to find children of a certain type beneath a parent node. This is demonstrated in the following method. Note that this method... jason.cavett(211)