Search:

Type: Posts; User: hafunui

Search: Search took 0.08 seconds.

  1. Replies
    2
    Views
    1,819

    JDBC vs Serialization

    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...
  2. Replies
    2
    Views
    1,512

    Update GUI before lengthy task

    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...
  3. Replies
    3
    Views
    2,054

    Re: JTree DnD Problem

    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...
  4. Replies
    3
    Views
    2,054

    Re: JTree DnD Problem

    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....
  5. Replies
    3
    Views
    2,054

    JTree DnD Problem

    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...
  6. Replies
    2
    Views
    1,485

    Re: Getting Image reader to change source

    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...
  7. Replies
    2
    Views
    1,485

    Getting Image reader to change source

    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;...
  8. Replies
    4
    Views
    4,481

    Re: Remove focus from JSpinner?

    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.


    ...
  9. Replies
    4
    Views
    4,481

    [SOLVED] Remove focus from JSpinner?

    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...
  10. Replies
    4
    Views
    3,623

    Re: Opening a file with a java program

    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...
  11. Replies
    4
    Views
    3,623

    Re: Opening a file with a java program

    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 >...
  12. Replies
    4
    Views
    3,623

    Re: Opening a file with a java program

    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...
  13. Replies
    4
    Views
    3,623

    [SOLVED] Opening a file with a java program

    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;...
Results 1 to 13 of 13