




















































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





















































Objectives
continued Docsity.com
listeners (waiting code)
events (info. objects) components
layout manager
window is done with layout managers
continued Docsity.com
use Swing
continued Docsity.com
Using the Substance L&F add-on library (https://substance.dev.java.net/)
title
content pane
window controls
Implemented by subclassing JFrame
public class ImageViewer extends JFrame { public ImageViewer() { super("ImageViewer 0.1");
// create the GUI Container c = getContentPane(); JLabel label = new JLabel ("I am a label. I can display some text."); c.add(label); :
JLabel is a GUI component
Version 0.