예제 #1
0
 /*
  * Update component sizes
  */
 @Override
 public void repaint() {
   launchpad.setLocation(width - launchpad.getWidth(), 0);
   secondary.setSize(width - launchpad.getWidth(), secondary.getHeight());
   song.setSize(width, height - song.getY());
   super.repaint();
 }
예제 #2
0
  /*
   * Display the secondary (console) panel to the left. Just keeps things organized
   */
  private void showSecondary() {
    console = new ConsolePanel();
    console.setTitle("Console");
    console.setSubtitle("Realtime activity output");
    console.setBackground(new Color(0x2B2B2B));

    secondary = new SecondaryPanel(console);
    secondary.setSize(secondarySize);
    secondary.setTitle(console.getTitle());
    secondary.setSubtitle(console.getSubtitle());
    add(secondary);

    song = new SongPanel("resources/soundfiles/Cloud-Nine.wav");
    song.setSize(getWidth(), songHeight);
    song.setLocation(0, launchpadHeight);
    //		song.load();
    add(song);
  }