2 * Imagesqueeze - Image codec optimized for photos.
3 * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of version 2 of the GNU General Public License
7 * as published by the Free Software Foundation.
10 package eu.svjatoslav.imagesqueeze.sampleApplication;
15 public class ImageFrame extends javax.swing.JFrame {
16 private ImagePanel imagePanel1;
18 public ImageFrame(final String title) {
25 * Auto-generated main method to display this JFrame
27 public static void main(final String[] args) {
28 SwingUtilities.invokeLater(() -> {
29 final ImageFrame inst = new ImageFrame("test");
30 inst.setLocationRelativeTo(null);
31 inst.setVisible(true);
35 public ImagePanel getImagePanel() {
39 private void initGUI() {
41 final BorderLayout thisLayout = new BorderLayout();
42 setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
43 getContentPane().setLayout(thisLayout);
45 imagePanel1 = new ImagePanel();
46 getContentPane().add(getImagePanel(), BorderLayout.CENTER);
49 } catch (final Exception e) {