Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Simulator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
letsgoING
ArduBlock Source
Simulator
Commits
cf1ca736
Commit
cf1ca736
authored
4 years ago
by
Lucas Stratmann
Browse files
Options
Downloads
Patches
Plain Diff
cleaned comments
parent
aa62bcf7
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/tec/letsgoing/ardublock/simulator/view/GUI.java
+2
-10
2 additions, 10 deletions
src/tec/letsgoing/ardublock/simulator/view/GUI.java
with
2 additions
and
10 deletions
src/tec/letsgoing/ardublock/simulator/view/GUI.java
+
2
−
10
View file @
cf1ca736
...
@@ -78,20 +78,12 @@ public class GUI extends JFrame implements Runnable, ActionListener {
...
@@ -78,20 +78,12 @@ public class GUI extends JFrame implements Runnable, ActionListener {
JButton
reloadButton
=
new
JButton
();
JButton
reloadButton
=
new
JButton
();
JButton
measButton
=
new
JButton
();
JButton
measButton
=
new
JButton
();
//Changes by Anian: added res to build-path (subfolder img) to export images to .jar file
//TODO get Images (Modules and Arduino) in ArduBlock and from .jar-File
// e.g. by getToolkit().getImage(GUI.class.getResource("PathToImage"))
//-> compare OpenBlocks-Workspace.java line 156
// creating Modules with images -> maybe pass img by parameter? -> getToolkit not available in Modules...
goButton
.
setIcon
(
new
ImageIcon
(
getToolkit
().
getImage
(
GUI
.
class
.
getResource
(
"/img/Play.png"
))));
goButton
.
setIcon
(
new
ImageIcon
(
getToolkit
().
getImage
(
GUI
.
class
.
getResource
(
"/img/Play.png"
))));
stopButton
.
setIcon
(
new
ImageIcon
(
getToolkit
().
getImage
(
GUI
.
class
.
getResource
(
"/img/Stop.png"
))));
stopButton
.
setIcon
(
new
ImageIcon
(
getToolkit
().
getImage
(
GUI
.
class
.
getResource
(
"/img/Stop.png"
))));
reloadButton
.
setIcon
(
new
ImageIcon
(
getToolkit
().
getImage
(
GUI
.
class
.
getResource
(
"/img/Reload.png"
))));
reloadButton
.
setIcon
(
new
ImageIcon
(
getToolkit
().
getImage
(
GUI
.
class
.
getResource
(
"/img/Reload.png"
))));
measButton
.
setIcon
(
new
ImageIcon
(
getToolkit
().
getImage
(
GUI
.
class
.
getResource
(
"/img/Measure.png"
))));
measButton
.
setIcon
(
new
ImageIcon
(
getToolkit
().
getImage
(
GUI
.
class
.
getResource
(
"/img/Measure.png"
))));
// goButton.setIcon(new ImageIcon("res/img/Play.png"));
// stopButton.setIcon(new ImageIcon("res/img/Stop.png"));
// reloadButton.setIcon(new ImageIcon("res/img/Reload.png"));
// measButton.setIcon(new ImageIcon("res/img/Measure.png"));
goButton
.
addActionListener
(
simu
);
goButton
.
addActionListener
(
simu
);
stopButton
.
addActionListener
(
simu
);
stopButton
.
addActionListener
(
simu
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment