2 * Image codec. Author: Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
3 * This project is released under Creative Commons Zero (CC0) license.
5 package eu.svjatoslav.imagesqueeze.sampleApplication;
10 public class ImageFrame extends javax.swing.JFrame {
11 private ImagePanel imagePanel1;
13 public ImageFrame(final String title) {
20 * Auto-generated main method to display this JFrame
22 public static void main(final String[] args) {
23 SwingUtilities.invokeLater(() -> {
24 final ImageFrame inst = new ImageFrame("test");
25 inst.setLocationRelativeTo(null);
26 inst.setVisible(true);
30 public ImagePanel getImagePanel() {
34 private void initGUI() {
36 final BorderLayout thisLayout = new BorderLayout();
37 setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
38 getContentPane().setLayout(thisLayout);
40 imagePanel1 = new ImagePanel();
41 getContentPane().add(getImagePanel(), BorderLayout.CENTER);
44 } catch (final Exception e) {