public class Frames extends Object
| Constructor and Description |
|---|
Frames() |
| Modifier and Type | Method and Description |
|---|---|
static JFrame |
createFrame(String title)
Create a frame or get an existing frame with the specified title
|
static JFrame |
createImageFrame(BufferedImage image,
String title) |
static JFrame |
display(BufferedImage image,
String title) |
static JFrame |
display(JComponent component)
Display a component in a new standard frame
|
static JFrame |
display(JComponent component,
String title)
Display a component in a new standard frame with the given title
|
static JFrame |
displayImage(BufferedImage image,
String title)
Display an image in an image viewing frame.
|
static void |
main(String[] args) |
static void |
showFrame(JFrame f)
Shows a frame, making it visible as required
|
public static JFrame createFrame(String title)
title - public static JFrame createImageFrame(BufferedImage image, String title)
public static JFrame display(BufferedImage image, String title)
public static JFrame displayImage(BufferedImage image, String title)
public static void showFrame(JFrame f)
public static JFrame display(JComponent component)
public static JFrame display(JComponent component, String title)
public static void main(String[] args)
Copyright © 2012. All Rights Reserved.