Package com.ibm.richtext.awtui

Examples of com.ibm.richtext.awtui.TextFrame


        }
    }

    private static void makeFrame(MConstText text, String title) {

        TextFrame frame = new TextFrame(text, title,
                Toolkit.getDefaultToolkit().getSystemClipboard());
        frame.setSize(550, 700);
        frame.show();
        fgListener.listenToFrame(frame);
    }
View Full Code Here


    }

    public TypingPerfTest(PrintWriter out, MConstText text, char[] insText) {

        fInsText = insText;
        fTextFrame = new TextFrame(text, "", null);
        TextPanel textPanel = (TextPanel) fTextFrame.getTextPanel();
        fKeyEventForwarder = new KeyEventForwarder(textPanel);
        fOut = out;

        DateFormat df = DateFormat.getDateTimeInstance();
View Full Code Here

        Date startDate = new Date();

        try {
            Clipboard clipboard = new Clipboard("ITextTestPanel");
            TextFrame frame = new TextFrame(null, "Interactive Test", clipboard);
            MTextPanel panel = frame.getTextPanel();

            new ITestTextPanel(panel, frame, clipboard).show();
        }
        finally {
            DateFormat df = DateFormat.getDateTimeInstance();
View Full Code Here

        }
    }
   
    public static void main(String[] args) {
       
        TextFrame f = new TextFrame();
        f.addWindowListener(new WindowAdapter() {
            public void windowClosing(WindowEvent e) {
                System.exit(0);
            }
        });
        f.setSize(400, 300);
        MTextPanel panel = f.getTextPanel();
        panel.addListener(new SyntaxColorer(panel));
        f.show();
    }
View Full Code Here

TOP

Related Classes of com.ibm.richtext.awtui.TextFrame

Copyright © 2018 www.massapicom. 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.