I'm planning on making a desktop application that stores hash values of files as the key, and the value is some metadata.
Should I use JDBC, or serialize a hashmap/table? I don't know anything about...
Type: Posts; User: hafunui
I'm planning on making a desktop application that stores hash values of files as the key, and the value is some metadata.
Should I use JDBC, or serialize a hashmap/table? I don't know anything about...
I'm trying to change a GUI element before preforming a lengthy function (little icon to show its busy), but I'm not too sure how to do it.
If I make the change then start the task, GUI doesn't...
I've found a solution that seems to have solved it. It is caused by the JPopupmenu...existing? If I set the menu to null when it is cancelled or will become invisible, then everything works fine. I...
Ok, an update to this problem. The problem occurs right after opening a popup menu. If I so much as open then close a popup menu, DnD starts malfunctioning....
I've implemented drag and drop functionality in my JTree so I can reorder the nodes. I also have two methods for adding nodes; one is with a button, and another is a context menu that is triggered by...
I thought about using only one instance, but if my next file is in a different format, I need a new ImageReader.
I was just looking into Thread.join() and I thought the problem could be that I'm...
I'm building an image gallery type program. I want to be able to abort the loading of an image and start loading another. Here's some of the code I've got so far.
ImageReader reader = null;...
Ok, I've solved this one. Apparently setting focasable to false on the spinner alone isn't enough; I have to setFocusable(false) on every component of the JSpinner editor object too.
...
I'm working on program that has the arrow keys traverse a JList via a KeyboardEventDispatcher, and it works on a global level like I want. But I also have a spinner and it keeps changing value when I...
Ok, I was looking into batch scripts and I found out I can do this:
"C:\Program Files\Java\jre6\bin\javaw.exe" -Xms64M -Xmx4G -jar "C:\path\to\myApp.jar" %*
I just open my file with the .bat...
Sorry to bump, but I still haven't figured this out yet.
To reiterate, what I'm trying to do is to open a file by dragging it over MyJavaApp.jar, or in windows (MyFile > open with >...
I've managed to associate the .jar with a file, but the program does not launch. Here's some code.
package simpleImageViewer;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import...
Hi, beginner java programmer here :)
How do I open a file with a java program? Search results return people trying to open a file with streams, or native applications and command lines and such;...