2 * Imagesqueeze - Image codec. Copyright ©2012-2019, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of version 3 of the GNU Lesser General Public License
6 * or later as published by the Free Software Foundation.
9 package eu.svjatoslav.imagesqueeze.sampleApplication;
14 public class ImageFrame extends javax.swing.JFrame {
15 private ImagePanel imagePanel1;
17 public ImageFrame(final String title) {
24 * Auto-generated main method to display this JFrame
26 public static void main(final String[] args) {
27 SwingUtilities.invokeLater(() -> {
28 final ImageFrame inst = new ImageFrame("test");
29 inst.setLocationRelativeTo(null);
30 inst.setVisible(true);
34 public ImagePanel getImagePanel() {
38 private void initGUI() {
40 final BorderLayout thisLayout = new BorderLayout();
41 setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
42 getContentPane().setLayout(thisLayout);
44 imagePanel1 = new ImagePanel();
45 getContentPane().add(getImagePanel(), BorderLayout.CENTER);
48 } catch (final Exception e) {