Package edu.mit.blocks.codeblockutil

Examples of edu.mit.blocks.codeblockutil.CTracklessScrollPane


                }
            }
        });

        //initialize scrollPane
        scrollPane = new CTracklessScrollPane(textArea,
                ScrollPolicy.VERTICAL_BAR_AS_NEEDED,
                ScrollPolicy.HORIZONTAL_BAR_NEVER,
                10, this.borderColor, Comment.background);
        this.add(scrollPane, 0);
View Full Code Here


        //Set up menu (JList)
        menu = new JList();
        menu.setFont(font);
        menu.setBackground(BACKGROUND);
        menu.setLayoutOrientation(JList.VERTICAL);
        CTracklessScrollPane menuPane = new CTracklessScrollPane(menu,
                7, new Color(75, 50, 0), BACKGROUND) {
            @Override
            public Insets getInsets() {
                return new Insets(MARGIN, 0, 0, 0);
            }
        };
        menuPane.setBackground(BACKGROUND);
        menu.setCellRenderer(new QueryCellRenderer());

        //Set up this
        this.setOpaque(false);
        this.setSize(preferredWidth, preferredHeight);
View Full Code Here

TOP

Related Classes of edu.mit.blocks.codeblockutil.CTracklessScrollPane

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.