Package data

Examples of data.Semaphore


  public static void main(String[] args) {

    JFrame window = new JFrame();
    DrawSemaphore panel = new DrawSemaphore();
   
    Semaphore semaphore = new Semaphore();
    semaphore.addObserver(panel);
   
    JButton button = new JButton("Placebo");
    button.setLocation(20, 200);
    button.addActionListener(new ButtonEventHandler(semaphore));
    panel.add(button);
View Full Code Here

TOP

Related Classes of data.Semaphore

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.