

ITD102_WEEK14-WEEK15
Presentation
•
Computers
•
University
•
Practice Problem
•
Easy
Wency Jorda
Used 2+ times
FREE Resource
13 Slides • 0 Questions
1
Object Oriented
Programming 1
ITD102L
Wency N. Jorda
Instructor
2
GUI COMPONENTS
PART 2
3
GUI Components:
•Jslider
•JPopupMenu
•JDesktopPane
•JInternalFrame
•JTabbedPane
•BoxLayout
4
JSlider
•It provides a slider component for selecting a range of values by
sliding a knob along a bar.
Syntax:
JSlider slider = new JSlider(min, max, initialValue);
5
Example:
JSlider slider = new JSlider(___, ___, ____);
Syntax:
6
JPopupMenu
•
It provides a context-sensitive pop-up menu that appears when the
user right-clicks on component.
JPopupMenu popupMenu = new JPopupMenu();
JMenuItem item1 = new JMenuItem(“Option1");
JMenuItem item2 = new JMenuItem(“Option2");
popupMenu.add(item1);
popupMenu.add(item2);
Syntax:
7
Example
JPopupMenu popupMenu = new JPopupMenu();
JMenuItem _____ = new JMenuItem(“______");
JMenuItem _____ = new JMenuItem(“_______");
popupMenu.add(_____);
popupMenu.add(_____);
Syntax:
8
JDesktopPane
•
A container used to hold multiple JInternalFrame components, which
allows an Multiple Document Interface within a main window.
JDesktopPane desktopPane = new JDesktopPane();
JInternalFrame internalFrame = new JInternalFrame("Internal Frame", true,
true, true, true);
desktopPane.add(internalFrame);
Syntax:
9
JDesktopPane
1stTrue
Resizable
2ndTrue
Closable
4thTrue
Iconifiable
3rdTrue
Maximizable
10
JTabbedPane
•
Used to create a tabbed interface that allows switching between panels by
clicking on tabs
JTabbedPane tabbedPane = new JTabbedPane();
JPanel panel1 = new JPanel();
tabbedPane.addTab(“Name of tab", panel1);
Syntax:
11
Example
JTabbedPane tabbedPane = new JTabbedPane();
JPanel ______ = new JPanel();
JPanel ______ = new JPanel();
tabbedPane.addTab(“_______", _______);
tabbedPane.addTab(“_______", _______);
Syntax:
12
BoxLayout
•
Layout manager that arranges components either vertically or horizontally
JPanel panel = new JPanel();
panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));
panel.add(new JButton("Button 2"));
panel.add(new JButton("Button 3"));
Syntax:
13
Discover new features in Lessons!
Finish all phases of “I-do ; We-do ; You-do” with Quizizz




You can also create lessons directly on Google Slides using “Quizizz Extension”.
Read more about it here
Object Oriented
Programming 1
ITD102L
Wency N. Jorda
Instructor
Show answer
Auto Play
Slide 1 / 13
SLIDE
Similar Resources on Wayground
11 questions
PDA Software - A&D Outcomes 3& 4 Assessment
Presentation
•
12th Grade
13 questions
Pertemuan 4. Latihan Soal Bab 1
Presentation
•
12th Grade - University
12 questions
PRETURNO CALIDAD 25 DE OCT
Presentation
•
KG
10 questions
Adobe Photoshop CS3
Presentation
•
Professional Development
10 questions
Diseño Web
Presentation
•
University
8 questions
08 - Locating the Operating System
Presentation
•
Professional Development
10 questions
FC 24 PS4
Presentation
•
University
10 questions
Scanner
Presentation
•
University
Popular Resources on Wayground
20 questions
Math Review
Quiz
•
3rd Grade
15 questions
Fast food
Quiz
•
7th Grade
20 questions
Context Clues
Quiz
•
6th Grade
20 questions
Inferences
Quiz
•
4th Grade
19 questions
Classifying Quadrilaterals
Quiz
•
3rd Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
10 questions
Identify Fractions, Mixed Numbers & Improper Fractions
Quiz
•
3rd - 4th Grade
Discover more resources for Computers
20 questions
Guess The App
Quiz
•
KG - Professional Dev...
11 questions
NFL Football logos
Quiz
•
KG - Professional Dev...
19 questions
Minecraft
Quiz
•
6th Grade - Professio...
40 questions
8th Grade Math Review
Quiz
•
8th Grade - University
20 questions
Block Buster Movies
Quiz
•
10th Grade - Professi...
10 questions
Would you rather...
Quiz
•
KG - University
40 questions
Flags of the World
Quiz
•
KG - Professional Dev...
14 questions
Superhero
Quiz
•
1st Grade - University