forked from IF-LK-2020/stundenplan
Anzeige für Kalenderwoche eingefügt und Sidebargröße leicht angepasst
This commit is contained in:
@@ -207,9 +207,10 @@ public class StundenplanGUI extends JFrame implements ActionListener {
|
|||||||
// Seitenleiste für Filter (Auswahlboxen)
|
// Seitenleiste für Filter (Auswahlboxen)
|
||||||
jpSidebar = new JPanel();
|
jpSidebar = new JPanel();
|
||||||
jpSidebar.setBackground(Color.LIGHT_GRAY);
|
jpSidebar.setBackground(Color.LIGHT_GRAY);
|
||||||
jpSidebar.setPreferredSize(new Dimension(100, FRAME_HEIGHT));
|
jpSidebar.setPreferredSize(new Dimension(120, FRAME_HEIGHT));
|
||||||
this.add(jpSidebar, BorderLayout.LINE_START);
|
this.add(jpSidebar, BorderLayout.LINE_START);
|
||||||
|
|
||||||
|
|
||||||
// Hauptbereich für den Stundenplan
|
// Hauptbereich für den Stundenplan
|
||||||
jpPlan = new JPanel();
|
jpPlan = new JPanel();
|
||||||
this.add(jpPlan, BorderLayout.CENTER);
|
this.add(jpPlan, BorderLayout.CENTER);
|
||||||
@@ -228,6 +229,9 @@ public class StundenplanGUI extends JFrame implements ActionListener {
|
|||||||
String heute = wochentag.format(d);
|
String heute = wochentag.format(d);
|
||||||
System.out.println("current Date: " + datum.format(d));
|
System.out.println("current Date: " + datum.format(d));
|
||||||
System.out.println("current Day: " + wochentag.format(d));
|
System.out.println("current Day: " + wochentag.format(d));
|
||||||
|
//Anzeige für Kalenderwoche
|
||||||
|
jpSidebar.add(makeLabel("Kalenderwoche: " + g.get(g.WEEK_OF_YEAR),fHeader));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
for (int j = 0; j < 7; j++) {
|
for (int j = 0; j < 7; j++) {
|
||||||
tage[j]= new GregorianCalendar();
|
tage[j]= new GregorianCalendar();
|
||||||
|
|||||||
Reference in New Issue
Block a user