Gui complete, I cooked
parent
5ce975c334
commit
b34b0c82bc
|
@ -558,23 +558,32 @@ public class Main extends JFrame {
|
|||
JLabel jlEntfernung = new JLabel("Entfernung:");
|
||||
JLabel jlEntfernungText = new JLabel(details[3]);
|
||||
JLabel jlReisedauerUndKraftstoffverbrauch = new JLabel("Reisedauer und Kraftstoffverbrauch Auto:");
|
||||
JLabel jlAutoDauer = new JLabel(details[4]);
|
||||
JLabel jlAutoVerbrauch = new JLabel(details[5]);
|
||||
JLabel jlAutoDauerText = new JLabel(details[4]);
|
||||
JLabel jlAutoVerbrauchText = new JLabel(details[5]);
|
||||
JLabel jlReisedauerMitFahrrad = new JLabel("Reisedauer mit Fahrrad:");
|
||||
JLabel jlReisedauerMitFahrradText = new JLabel(details[6]);
|
||||
jlAddress.setBounds(4, 6, 100, 100);
|
||||
jlAddressText.setBounds(4, 16, 100, 100);
|
||||
jlWettervorhersage.setBounds(4, 36, 100, 100);
|
||||
jlWettervorhersageTextOne.setBounds(4, 46, 100, 100);
|
||||
jlWettervorhersageTextTwo.setBounds(4, 56, 100, 100);
|
||||
jlWettervorhersageTextThree.setBounds(4, 66, 100, 100);
|
||||
jlEntfernung.setBounds(4, 86, 100, 100);
|
||||
jlEntfernungText.setBounds(4, 96, 100, 100);
|
||||
jlReisedauerUndKraftstoffverbrauch.setBounds(4, 116, 100, 100);
|
||||
jlAutoDauer.setBounds(4, 126, 100, 100);
|
||||
jlAutoVerbrauch.setBounds(4, 136, 100, 100);
|
||||
jlReisedauerMitFahrrad.setBounds(4, 156, 100, 100);
|
||||
jlReisedauerMitFahrradText.setBounds(4, 166, 100, 100);
|
||||
if(details[4].equals("")){
|
||||
jlAutoDauerText.setText("---");
|
||||
}
|
||||
if(details[5].equals("")){
|
||||
jlAutoVerbrauchText.setText("---");
|
||||
}
|
||||
if(details[6].equals("")){
|
||||
jlReisedauerMitFahrradText.setText("---");
|
||||
}
|
||||
jlAddress.setBounds(4, 0, 300, 20);
|
||||
jlAddressText.setBounds(4, 12, 300, 20);
|
||||
jlWettervorhersage.setBounds(4, 45, 300, 20);
|
||||
jlWettervorhersageTextOne.setBounds(4, 57, 300, 20);
|
||||
jlWettervorhersageTextTwo.setBounds(4, 69, 300, 20);
|
||||
jlWettervorhersageTextThree.setBounds(4, 81, 300, 20);
|
||||
jlEntfernung.setBounds(4, 108, 300, 20);
|
||||
jlEntfernungText.setBounds(4, 120, 300, 20);
|
||||
jlReisedauerUndKraftstoffverbrauch.setBounds(4, 147, 300, 20);
|
||||
jlAutoDauerText.setBounds(4, 159, 300, 20);
|
||||
jlAutoVerbrauchText.setBounds(4, 171, 300, 20);
|
||||
jlReisedauerMitFahrrad.setBounds(4, 198, 300, 20);
|
||||
jlReisedauerMitFahrradText.setBounds(4, 210, 300, 20);
|
||||
jp.add(jlAddress);
|
||||
jp.add(jlAddressText);
|
||||
jp.add(jlWettervorhersage);
|
||||
|
@ -584,14 +593,15 @@ public class Main extends JFrame {
|
|||
jp.add(jlEntfernung);
|
||||
jp.add(jlEntfernungText);
|
||||
jp.add(jlReisedauerUndKraftstoffverbrauch);
|
||||
jp.add(jlAutoDauer);
|
||||
jp.add(jlAutoVerbrauch);
|
||||
jp.add(jlAutoDauerText);
|
||||
jp.add(jlAutoVerbrauchText);
|
||||
jp.add(jlReisedauerMitFahrrad);
|
||||
jp.add(jlReisedauerMitFahrradText);
|
||||
|
||||
jf.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
|
||||
jf.add(jp);
|
||||
jf.setSize(300, 300);
|
||||
jf.setSize(280, 270);
|
||||
jf.setResizable(false);
|
||||
jf.setVisible(true);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue