forked from IF-LK-2020/stundenplan
Anzeige für Kalenderwoche eingefügt und Sidebargröße leicht angepasst
This commit is contained in:
parent
1ba4f9ce84
commit
c5e02ccbae
|
@ -207,9 +207,10 @@ public class StundenplanGUI extends JFrame implements ActionListener {
|
|||
// Seitenleiste für Filter (Auswahlboxen)
|
||||
jpSidebar = new JPanel();
|
||||
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);
|
||||
|
||||
|
||||
// Hauptbereich für den Stundenplan
|
||||
jpPlan = new JPanel();
|
||||
this.add(jpPlan, BorderLayout.CENTER);
|
||||
|
@ -228,6 +229,9 @@ public class StundenplanGUI extends JFrame implements ActionListener {
|
|||
String heute = wochentag.format(d);
|
||||
System.out.println("current Date: " + datum.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++) {
|
||||
tage[j]= new GregorianCalendar();
|
||||
|
|
Loading…
Reference in New Issue