Examples of JConsole


Examples of bsh.util.JConsole

public class BeanShellConsole implements Console {

    private JConsole console;

    public BeanShellConsole() {
        console = new JConsole();
        console.setFont(new Font("MONOSPACED", PLAIN, 11));
        console.setAutoscrolls(true);
    }
View Full Code Here

Examples of bsh.util.JConsole

      JSplitPane contentPanel = null;
      if (useConsole)
      {
         String welcomeMessage = getWelcomeMessage();

         bshConsole = new JConsole();
         Interpreter interpreter = new Interpreter(bshConsole);

         configureInterpreter(interpreter, cacheDelegate);

         interpreter.println(welcomeMessage);
View Full Code Here

Examples of bsh.util.JConsole

  private void test() {
   
    mainPanel = new JPanel();
    mainPanel.setLayout(new BorderLayout());

    JConsole bshConsole = new JConsole();
    Interpreter interpreter = new Interpreter(bshConsole);

    interpreter.println("Hello World");
    Thread t = new Thread(interpreter);
    t.start();
View Full Code Here

Examples of bsh.util.JConsole

    mainPanel.add(tablePanel, BorderLayout.SOUTH);
    JSplitPane contentPanel = null;
    if (useConsole) {
      String welcomeMessage = getWelcomeMessage();

      bshConsole = new JConsole();
      Interpreter interpreter = new Interpreter(bshConsole);

      configureInterpreter(interpreter, cacheDelegate);

      interpreter.println(welcomeMessage);
View Full Code Here

Examples of bsh.util.JConsole

    return scrollTxtEditor;
  }
 
  public JConsole getConsole() {
    if (jConsole == null) {
      jConsole = new JConsole();
    }
    return jConsole;
  }
View Full Code Here

Examples of bsh.util.JConsole

     */
    public BeanShellGUI( Kernel kernel )
    {
        setPreferredSize( new Dimension( 600, 480 ) );

        m_jConsole = new JConsole();

        this.setLayout( new BorderLayout() );
        this.add( m_jConsole, BorderLayout.CENTER );

        m_interpreter = new Interpreter( m_jConsole );
View Full Code Here

Examples of bsh.util.JConsole

    tablePanel.add(table, BorderLayout.CENTER);

    mainPanel.add(tablePanel, BorderLayout.SOUTH);
    JSplitPane contentPanel=null;
    if (TreeCacheView2.useConsole) {
      JConsole bshConsole = new JConsole();
      Interpreter interpreter = new Interpreter(bshConsole);
      interpreter.getNameSpace().importCommands("org.jboss.cache.util");
      interpreter.setShowResults(!interpreter.getShowResults()); // show();
      //System.setIn(bshConsole.getInputStream());
      System.setOut(bshConsole.getOut());
      System.setErr(bshConsole.getErr());
      Thread t = new Thread(interpreter);
      t.start();

      contentPanel = new JSplitPane(JSplitPane.VERTICAL_SPLIT,mainPanel, bshConsole);
      getContentPane().add(contentPanel);
View Full Code Here

Examples of bsh.util.JConsole

    tablePanel.add(table, BorderLayout.CENTER);

    mainPanel.add(tablePanel, BorderLayout.SOUTH);
    JSplitPane contentPanel=null;
    if (TreeCacheView2.useConsole) {
      JConsole bshConsole = new JConsole();
      Interpreter interpreter = new Interpreter(bshConsole);
      interpreter.getNameSpace().importCommands("org.jboss.cache.util");
      interpreter.setShowResults(!interpreter.getShowResults()); // show();
      //System.setIn(bshConsole.getInputStream());
      System.setOut(bshConsole.getOut());
      System.setErr(bshConsole.getErr());
      Thread t = new Thread(interpreter);
      t.start();

      contentPanel = new JSplitPane(JSplitPane.VERTICAL_SPLIT,mainPanel, bshConsole);
      getContentPane().add(contentPanel);
View Full Code Here

Examples of bsh.util.JConsole

      JSplitPane contentPanel = null;
      if (useConsole)
      {
         String welcomeMessage = getWelcomeMessage();

         bshConsole = new JConsole();
         Interpreter interpreter = new Interpreter(bshConsole);

         configureInterpreter(interpreter, cacheDelegate);

         interpreter.println(welcomeMessage);
View Full Code Here

Examples of mikera.gui.JConsole

import mikera.util.Rand;

public class ConsoleApp {

    public static void main(String[] args) { 
      JConsole jc=new JConsole(100,40);
      jc.setCursorVisible(true);
      jc.setCursorBlink(true);
      jc.write("Hello World\n");
      jc.write("Hello World\n",Color.BLACK,Color.MAGENTA);
      jc.write("Hello World\n",Color.GREEN,Color.BLACK);

      System.out.println("Normal output");
      jc.captureStdOut();
      System.out.println("Captured output");
     
     
      // brown box
      jc.fillArea(' ', Color.WHITE, new Color(100,70,30), 20, 20, 3, 3);
     
      jc.setCursorPos(0, 0);

      Frames.display(jc,"JConsole test application");
     
      int SECS=3;
      long start=System.currentTimeMillis();
      int iterations=0;
     
      while (start>(System.currentTimeMillis()-1000*SECS)) {
        for (int y=10; y<20; y++) {
          for (int x=10; x<80; x++) {
            jc.fillArea((char)Rand.r(256),
                Colours.getColor(Rand.nextInt()),
                Colours.getColor(Rand.nextInt()),
                x, y, 1, 1);
          }
        }
        jc.repaint();
        iterations++;
      }
     
      jc.setCursorPos(0, 6);
      System.out.println("FPS="+iterations/SECS);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.