Skip to content
Snippets Groups Projects
Commit 1abd91db authored by Leon Dieter's avatar Leon Dieter
Browse files

minor changes

parent 01eed7f2
No related branches found
No related tags found
No related merge requests found
No preview for this file type
......@@ -175,6 +175,7 @@ public class Simulator implements Runnable, ActionListener{
return false;
}
}
//Beim Neustart des Simulators wird die bisherige Position und Gre des Fenster gespeichert
Point locationWindow = gui.getLocation();
int WidthWindow = ((int)((gui.getWidth() * 1.0975) - 13.307));
int HeightWindow = ((int)((gui.getHeight() * 1.2709) - 174.77));
......@@ -184,8 +185,9 @@ public class Simulator implements Runnable, ActionListener{
gui.dispose();
//Die neue GUI wird mit den gespeicherten Werten gestartet
createSubClasses(WidthWindow, HeightWindow);
//die GUI wird an die gespeicherte Position verschoben
gui.setLocation(locationWindow);
......
......
......@@ -188,7 +188,7 @@ public class Button extends Modul implements ActionListener {
private void calculatePinPos() {
Vector<Point> pins = new Vector<Point>();
for (int i = 0; i < 3; i++) {
pins.add(new Point(i * ((int)(0.031*xscale)) + ((int)(0.1209*xscale)), ((int)(0.243*yscale))));
pins.add(new Point(((int)(i * (0.031*xscale))) + ((int)(0.1209*xscale)), ((int)(0.243*yscale))));
}
this.setPinPos(pins);
}
......
......
......@@ -151,7 +151,7 @@ public class RGB extends Modul {
private void calculatePinPos() {
Vector<Point> pins = new Vector<Point>();
for (int i = 0; i < 3; i++) {
pins.add(new Point(i * ((int)(0.03099*xscale)) + ((int)(0.12087*xscale)), ((int)(0.243*yscale))));
pins.add(new Point(((int)(i * (0.03099*xscale))) + ((int)(0.12087*xscale)), ((int)(0.243*yscale))));
}
this.setPinPos(pins);
}
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment