filmov
tv
Build Image Viewer Application using Java

Показать описание
A simple image viewer app using java for beginners.
Source Code:
----------------------
public class ImageViewer {
public static void main(String[] args) {
JFrame frame = new ImageViewerFrame();
});
}
}
@SuppressWarnings("serial")
//A frame with a label to show an image
class ImageViewerFrame extends JFrame {
JLabel label;
JFileChooser chooser;
JMenuBar menubar;
JMenu menu;
JMenuItem open;
JMenuItem exit;
//Constructor
public ImageViewerFrame() {
setSize(500,500);
//Use a label to display the image
label = new JLabel();
add(label);
//Set up the file chooser
chooser = new JFileChooser();
//set up the menubar
menubar = new JMenuBar();
setJMenuBar(menubar);
menu = new JMenu("File");
open = new JMenuItem("Open");
public void actionPerformed(ActionEvent event) {
//show file chooser dialog
//if file selected, set it as icon of label
if(result == JFileChooser.APPROVE_OPTION) {
}
}
});
}
}
---------------------------------------------------------------------------------
Follow me:
------------------
Source Code:
----------------------
public class ImageViewer {
public static void main(String[] args) {
JFrame frame = new ImageViewerFrame();
});
}
}
@SuppressWarnings("serial")
//A frame with a label to show an image
class ImageViewerFrame extends JFrame {
JLabel label;
JFileChooser chooser;
JMenuBar menubar;
JMenu menu;
JMenuItem open;
JMenuItem exit;
//Constructor
public ImageViewerFrame() {
setSize(500,500);
//Use a label to display the image
label = new JLabel();
add(label);
//Set up the file chooser
chooser = new JFileChooser();
//set up the menubar
menubar = new JMenuBar();
setJMenuBar(menubar);
menu = new JMenu("File");
open = new JMenuItem("Open");
public void actionPerformed(ActionEvent event) {
//show file chooser dialog
//if file selected, set it as icon of label
if(result == JFileChooser.APPROVE_OPTION) {
}
}
});
}
}
---------------------------------------------------------------------------------
Follow me:
------------------
Build an image viewer with python
Create an Image Viewer Application using Python | Similar to the Original App | Source Code | PySeek
Build Image Viewer Application using Java
Simple Image Viewer in Python
Develop simple Image Viewer app in Android Studio
Build an Image Viewer App With Python and TKinter - Python Tkinter GUI Tutorial #9
How To Create Image Viewer Using Windows Forms Application
Java Tutorial - Making an Image Viewer using Netbeans
Build An Image Viewer App - PyQt5 GUI Thursdays #30
Image Viewer Application with Python TKinter (Ttkbootstap)
Python Image Viewer GUI App in Tkinter
how to create image viewer using python
How to Make Windows Photo Viewer Your Default Image Viewer on Windows 10
Create Image Viewer Using Tkinter | Python Image Viewer
Create a Image Viewer App using Python | Python #Tkinter
Windows 10 / 11 Photo Image Preview Not Showing
How to create an android image viewer - Part 13 setting panning limits and saving last location
Creating a 360 degree Viewer with A-Frame
How to create an android image viewer - Part 5 Using Glide image loading library
Create App Without Coding 😍 How to make mobile app no code #programming #technology #tech #android...
How to create an android image viewer - Part 1
Add Photo with IMG Tag//HTML coding#viral #html ##shorts
Create 3D models in seconds #productivity #ai #aitools #3dmodeling
PQIV: The Simple Mans Image Viewer
Комментарии