1. ICO to PNG

    17. Januar 2008 @ 18:39 | Java Stuff

    I hated it to convert Windows icons (the files with the ico ending) to PNG files. What a boring job. For this reason, I've created JconExtract some time ago.
    It makes it easy to extract a specific format out of a Windows icon file and saves it (even with the XP and Vista alpha channel!) to a common PNG image file.

    Today I reworked and streamlined the GUI a little bit.

    Download

    Here you are. If you interested in a tool as this, use the following link to download:
    jconextract_bin.rar


    Hint: Please notice that you'll need at least Java 1.6 installed on your computer to run JconExtract.

    Feedback

    If you have any suggestions, bugreports or anything else, please feel free to leave a comment :-)

    Sources

    If you're a developer and you'd like to have a look at the java sources, you alse can download the source files:
    jconextract_src.rar

  2. Overwrite files with the JFileChooser

    1. November 2007 @ 14:53 | Java Stuff, UI

    To check if the user wants to overwrite the file he has selected in the JFileChooser, you have to implement the test usualy outside of the JFileChooser.
    With a little bit of subclassing you can add a message dialog which handles the overwrite confirmation inside of the JFileChooser.

    JFileChooser fileChooser = new JFileChooser() {
        @Override
        public void approveSelection() {
            File selectedFile = getSelectedFile();
           
            if(selectedFile.exists()) {
                int result = JOptionPane.showConfirmDialog(this,
                        "The file you've selected already exists!\n" +
                        "Do you really want to overwrite?",
                        "Overwrite file",
                        JOptionPane.YES_NO_OPTION);
                if(result == JOptionPane.YES_OPTION) {
                    super.approveSelection();
                }
            } else {
                super.approveSelection();
            }
        }
    };

    Everytime the user clicks the save button in the dialog, the approveSelection()-method is called. As you see above, the subclassing overwrites this method and adds a check if the selected file is already existing. If yes, a confirmation dialog appears where the user can make his decision if he wants to overwrite or not.

    Very simple, isn't it?

  3. To the audience!

    20. September 2007 @ 13:20 | Java Stuff

    Here we go! PicturePimp is ready for a first presentation to the public.
    All you need is a running jave 1.6 virtual machine with web start installed on your rig.

    Start PicturePimp Beta now!


    Do you like the frog behind the leaf? Go to vladstudio.com for the original wallpaper.

  4. Pimp it

    12. September 2007 @ 09:00 | Java Stuff

    I really like the idea behind Picturesque . An easy to use interface to prepare and improve your pictures for the web very fast.
    But there are some bad things... Called "No open source" which means you have to pay money as also no availability for other platforms. Additionally to have some other features would be cool.

    Weiterlesen »

  5. Toolbox: GUIImageManager

    16. Februar 2007 @ 12:30 | Java Stuff, Toolbox

    I've created a lot of small helpers as also complete swing components for developing gui's with java in the past.
    This is the first episode of the "Toolbox" series i want to start here. I'll present you classes out of my GUILibrary in the future. So say "Hello" to the GUIImageManager.

    Weiterlesen »