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
122c3d58
Commit
122c3d58
authored
4 years ago
by
Leon Dieter
Browse files
Options
Downloads
Patches
Plain Diff
windows scaling in progress
parent
f3804344
Branches
Übung
Branches containing commit
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
+9
-14
9 additions, 14 deletions
src/tec/letsgoing/ardublock/simulator/view/GUI.java
with
9 additions
and
14 deletions
src/tec/letsgoing/ardublock/simulator/view/GUI.java
+
9
−
14
View file @
122c3d58
...
@@ -110,8 +110,8 @@ public class GUI extends JFrame implements Runnable, ActionListener {
...
@@ -110,8 +110,8 @@ public class GUI extends JFrame implements Runnable, ActionListener {
//Panel der Buttons auf der rechten Seite wird ausgeblendet
//Panel der Buttons auf der rechten Seite wird ausgeblendet
//mainPane.add(createControlPanel(simu), BorderLayout.LINE_END);
//mainPane.add(createControlPanel(simu), BorderLayout.LINE_END);
mainPane
.
add
(
createSerialLog
(),
BorderLayout
.
PAGE_END
);
mainPane
.
add
(
createSerialLog
(),
BorderLayout
.
PAGE_END
);
this
.
setSize
(
xscale
,
yscale
);
//
this.setSize(xscale, yscale);
//
this.pack();
this
.
pack
();
// this.setLocation(-1300, 0); //Mglichkeit die Renderingposition festzulegen
// this.setLocation(-1300, 0); //Mglichkeit die Renderingposition festzulegen
this
.
setVisible
(
true
);
this
.
setVisible
(
true
);
...
@@ -119,21 +119,16 @@ public class GUI extends JFrame implements Runnable, ActionListener {
...
@@ -119,21 +119,16 @@ public class GUI extends JFrame implements Runnable, ActionListener {
@Override
@Override
public
void
componentResized
(
ComponentEvent
e
)
{
public
void
componentResized
(
ComponentEvent
e
)
{
if
(!(
xscale
==
getWidth
()
&&
yscale
==
getHeight
()))
{
if
(!(
xscale
==
getWidth
()
&&
yscale
==
getHeight
()))
{
if
(
modulPanel
.
getWidth
()
<=
modulPanel
.
getHeight
())
{
xscale
=
getWidth
();
yscale
=
getHeight
();
}
else
{
xscale
=
getWidth
();
yscale
=
getHeight
();
}
xscale
=
getWidth
();
yscale
=
getHeight
();
updateGUI
(
xscale
,
yscale
);
updateGUI
(
xscale
,
yscale
);
System
.
out
.
println
(
"xScale: "
+
xscale
+
"\tyScale: "
+
yscale
);
System
.
out
.
println
(
"xScale: "
+
xscale
+
"\tyScale: "
+
yscale
);
}
}
}
}
...
@@ -168,7 +163,7 @@ public class GUI extends JFrame implements Runnable, ActionListener {
...
@@ -168,7 +163,7 @@ public class GUI extends JFrame implements Runnable, ActionListener {
modules
[
1
].
updateGUI
(
xscale
,
yscale
);
modules
[
1
].
updateGUI
(
xscale
,
yscale
);
modules
[
2
].
updateGUI
(
xscale
,
yscale
);
modules
[
2
].
updateGUI
(
xscale
,
yscale
);
modules
[
3
].
updateGUI
(
xscale
,
yscale
);
modules
[
3
].
updateGUI
(
xscale
,
yscale
);
}
}
...
...
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