Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
CSE205 Lecture 12
Search
Javier Gonzalez-Sanchez
PRO
September 22, 2021
Programming
0
460
CSE205 Lecture 12
Object-Oriented Programming and Data Structures
Java Swing III
(202203)
Javier Gonzalez-Sanchez
PRO
September 22, 2021
Tweet
Share
More Decks by Javier Gonzalez-Sanchez
See All by Javier Gonzalez-Sanchez
CSC305 Lecture 26
javiergs
PRO
0
140
CSC305 Lecture 25
javiergs
PRO
0
130
CSC509 Lecture 14
javiergs
PRO
0
140
CSC305 Lecture 24
javiergs
PRO
0
46
CSC509 Lecture 13
javiergs
PRO
0
170
CSC305 Lecture 23
javiergs
PRO
1
120
CSC305 Lecture 22
javiergs
PRO
0
61
CSC509 Lecture 12
javiergs
PRO
0
210
CSC305 Lecture 21
javiergs
PRO
0
190
Other Decks in Programming
See All in Programming
Semantic Kernelのネイティブプラグインで知識拡張をしてみる
tomokusaba
0
180
Stackless и stackful? Корутины и асинхронность в Go
lamodatech
0
950
情報漏洩させないための設計
kubotak
4
830
선언형 UI에서의 상태관리
l2hyunwoo
0
190
Cloudflare MCP ServerでClaude Desktop からWeb APIを構築
kutakutat
1
570
AppRouterを用いた大規模サービス開発におけるディレクトリ構成の変遷と問題点
eiganken
1
150
20年もののレガシープロダクトに 0からPHPStanを入れるまで / phpcon2024
hirobe1999
0
820
AWSのLambdaで PHPを動かす選択肢
rinchoku
2
300
Webエンジニア主体のモバイルチームの 生産性を高く保つためにやったこと
igreenwood
0
340
KubeCon + CloudNativeCon NA 2024 Overviewat Kubernetes Meetup Tokyo #68 / amsy810_k8sjp68
masayaaoyama
0
260
テストケースの名前はどうつけるべきか?
orgachem
PRO
0
160
「Chatwork」Android版アプリを 支える単体テストの現在
okuzawats
0
180
Featured
See All Featured
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
44
6.9k
Bash Introduction
62gerente
609
210k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
28
2.1k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
365
25k
Why Our Code Smells
bkeepers
PRO
335
57k
Measuring & Analyzing Core Web Vitals
bluesmoon
4
170
No one is an island. Learnings from fostering a developers community.
thoeni
19
3k
Fashionably flexible responsive web design (full day workshop)
malarkey
405
66k
Navigating Team Friction
lara
183
15k
For a Future-Friendly Web
brad_frost
175
9.4k
Fantastic passwords and where to find them - at NoRuKo
philnash
50
2.9k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
45
2.2k
Transcript
jgs CSE 205 Object-Oriented Programming and Data Structures Lecture 12:
Java Swing III Dr. Javier Gonzalez-Sanchez
[email protected]
javiergs.engineering.asu.edu | javiergs.com PERALTA 230U Office Hours: By appointment
jgs Previously … JPanel
Javier Gonzalez-Sanchez | CSE205 | Fall 2021 | 3 jgs
JPanel
Javier Gonzalez-Sanchez | CSE205 | Fall 2021 | 4 jgs
Pseudo Calculator
Javier Gonzalez-Sanchez | CSE205 | Fall 2021 | 5 jgs
Extending JPanel
Javier Gonzalez-Sanchez | CSE205 | Fall 2021 | 6 jgs
Extending JPanel
jgs Tabs The class JTabbedPane
Javier Gonzalez-Sanchez | CSE205 | Fall 2021 | 8 jgs
Tabs
Javier Gonzalez-Sanchez | CSE205 | Fall 2021 | 9 jgs
Tabs
Javier Gonzalez-Sanchez | CSE205 | Fall 2021 | 10 jgs
Tabs
Javier Gonzalez-Sanchez | CSE205 | Fall 2021 | 11 jgs
Tabs
Javier Gonzalez-Sanchez | CSE205 | Fall 2021 | 12 jgs
Tabs
Javier Gonzalez-Sanchez | CSE205 | Fall 2021 | 13 jgs
Tabs
jgs JMenu
Javier Gonzalez-Sanchez | CSE205 | Fall 2021 | 15 jgs
JMenuBar Jmenu JMenuItem
Javier Gonzalez-Sanchez | CSE205 | Fall 2021 | 16 jgs
JMenuBar, Jmenu, JMenuItem
jgs Slider
Javier Gonzalez-Sanchez | CSE205 | Fall 2021 | 18 jgs
§ JSlider s = new JSlider(0,10); add(s);
jgs CheckBox
Javier Gonzalez-Sanchez | CSE205 | Fall 2021 | 20 jgs
JCheckBox c1 = new JCheckBox("checkbox 1"); JCheckBox c2 = new JCheckBox("checkbox 2"); add(c1);add(c2);
jgs RadioButton
Javier Gonzalez-Sanchez | CSE205 | Fall 2021 | 22 jgs
JRadioButton b1 = new JRadioButton("one"); JRadioButton b2 = new JRadioButton("two"); JRadioButton b3 = new JRadioButton("three"); JRadioButton b4 = new JRadioButton("four"); b1.setSelected(true); b4.setEnabled(false); ButtonGroup group = new ButtonGroup(); group.add(b1); group.add(b2); group.add(b3); group.add(b4); add(b1); add(b2); add(b3); add(b4);
jgs JList and JComboBox
Javier Gonzalez-Sanchez | CSE205 | Fall 2021 | 24 jgs
JList Object data[] = {"one", "two", "three", "four", "five"}; JList list = new JList(data); list.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION); list.setLayoutOrientation(JList.VERTICAL); JScrollPane listScroller = new JScrollPane(list); add(listScroller);
Javier Gonzalez-Sanchez | CSE205 | Fall 2021 | 25 jgs
Orientation and Selection
Javier Gonzalez-Sanchez | CSE205 | Fall 2021 | 26 jgs
§ Object data[] = {"one", "two", "three", "four", "five"}; JComboBox list = new JComboBox(data); add(list);
Javier Gonzalez-Sanchez | CSE205 | Fall 2021 | 27 jgs
Questions
jgs CSE 205 Object-Oriented Programming and Data Structures Javier Gonzalez-Sanchez,
Ph.D.
[email protected]
Fall 2021 Copyright. These slides can only be used as study material for the class CSE205 at Arizona State University. They cannot be distributed or used for another purpose.