src/Tools/jEdit/src/jedit/OutputDockable.scala
author wenzelm
Sat Dec 20 17:41:57 2008 +0100 (2008-12-20)
changeset 34424 c880492754d0
parent 34408 ad7b6c4813c8
child 34671 d179fcb04cbc
permissions -rw-r--r--
setPreferredSize for floating dockables;
wenzelm@34408
     1
/*
wenzelm@34408
     2
 * Dockable window for raw process output
wenzelm@34408
     3
 *
wenzelm@34408
     4
 * @author Fabian Immler, TU Munich
wenzelm@34408
     5
 * @author Johannes Hölzl, TU Munich
wenzelm@34408
     6
 */
wenzelm@34408
     7
wenzelm@34318
     8
package isabelle.jedit
wenzelm@34318
     9
wenzelm@34318
    10
wenzelm@34424
    11
import java.awt.{Dimension, GridLayout}
wenzelm@34424
    12
import javax.swing.{JPanel, JTextArea, JScrollPane}
wenzelm@34318
    13
wenzelm@34318
    14
import org.gjt.sp.jedit.View
wenzelm@34424
    15
import org.gjt.sp.jedit.gui.DockableWindowManager
wenzelm@34424
    16
wenzelm@34318
    17
wenzelm@34318
    18
class OutputDockable(view : View, position : String) extends JPanel {
immler@34406
    19
wenzelm@34424
    20
  if (position == DockableWindowManager.FLOATING)
wenzelm@34424
    21
    setPreferredSize(new Dimension(500, 250))
wenzelm@34424
    22
immler@34406
    23
  setLayout(new GridLayout(1, 1))
wenzelm@34424
    24
  add(new JScrollPane(new JTextArea))
wenzelm@34318
    25
}