Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
kurs_java_alx_20240321
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Patryk Czarnik
kurs_java_alx_20240321
Commits
30d29132
Commit
30d29132
authored
Apr 12, 2024
by
Patryk Czarnik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zdarzenia - MojListener
parent
28dc6d75
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
MojListener.java
src/swing/zdarzenia/MojListener.java
+13
-0
Rozmowa1.java
src/swing/zdarzenia/Rozmowa1.java
+3
-0
No files found.
src/swing/zdarzenia/MojListener.java
0 → 100644
View file @
30d29132
package
swing
.
zdarzenia
;
import
java.awt.event.ActionEvent
;
import
java.awt.event.ActionListener
;
public
class
MojListener
implements
ActionListener
{
@Override
public
void
actionPerformed
(
ActionEvent
evt
)
{
System
.
out
.
println
(
"kliknięto guzik"
);
}
}
src/swing/zdarzenia/Rozmowa1.java
View file @
30d29132
...
@@ -66,6 +66,9 @@ public class Rozmowa1 {
...
@@ -66,6 +66,9 @@ public class Rozmowa1 {
panel
.
add
(
Box
.
createRigidArea
(
odstep
));
panel
.
add
(
Box
.
createRigidArea
(
odstep
));
okno
.
pack
();
okno
.
pack
();
MojListener
listener
=
new
MojListener
();
guzik
.
addActionListener
(
listener
);
okno
.
setVisible
(
true
);
okno
.
setVisible
(
true
);
System
.
out
.
println
(
"okno wyświetlone, koniec main"
);
System
.
out
.
println
(
"okno wyświetlone, koniec main"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment