Package com.lightcrafts.ui

Examples of com.lightcrafts.ui.MemoryMeter


public class MemoryMeterTest {

    public static void main(String[] args) {

        JPanel panel = new JPanel();
        panel.add(new MemoryMeter());
        panel.add(new MemoryMeter());
        panel.add(new MemoryMeter());
        panel.add(new MemoryMeter());
        panel.add(new MemoryMeter());
        panel.add(new MemoryMeter());
        panel.add(new MemoryMeter());

        Runnable waster = new Runnable() {
            LinkedList list = new LinkedList();
            public void run() {
                while (true) {
View Full Code Here


    // *** Folder tree path persistence end ***

    private void initMemoryMeter() {
        if (memory == null) {
            memory = new MemoryMeter();
            Border empty = BorderFactory.createEmptyBorder(6, 0, 6, 0);
            Border line = BorderFactory.createLineBorder(Color.gray);
            Border compound = BorderFactory.createCompoundBorder(empty, line);
            memory.setBorder(compound);
        }
View Full Code Here

TOP

Related Classes of com.lightcrafts.ui.MemoryMeter

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.