Java Swing for the UPCSHMEM Performance Tool Presentation Unit PowerPoint PPT Presentation

presentation player overlay
1 / 9
About This Presentation
Transcript and Presenter's Notes

Title: Java Swing for the UPCSHMEM Performance Tool Presentation Unit


1
Java Swing for the UPC/SHMEM Performance Tool
Presentation Unit
  • Max Billingsley III, Research Assistant
  • HCS Research Laboratory
  • University of Florida

2
Outline
  • Introduction
  • Swing Foundations
  • Learning Project
  • Conclusions
  • References
  • Demonstration

3
Introduction
  • Motivation
  • The Presentation Unit will be implemented in Java
    and require a Graphical User Interface
  • JFC/Swing provides for GUIs in Java
  • My prior exposure to Swing was limited
  • Objectives
  • Learn the foundations of GUI programming using
    Swing
  • Practice these skills by working on a learning
    project
  • Devote no more than one week to the project
  • Focus
  • Learn the Swing concepts and components most
    relevant in implementing the Presentation Unit

4
Swing Foundations
  • Swing Components
  • Top-level container JFrame
  • All other components descend from JComponent
  • JPanel, JButton, JMenu, JLabel, etc.
  • Event Management
  • Events occur whenever user clicks mouse, etc.
  • Objects register to be notified of events
  • Event-handling code runs in a single
    event-dispatch thread
  • Swing is part of the Java Foundation Classes
  • Also includes look-and-feel, accessibility,
    Java2D, etc.

5
Learning Project
  • Overview
  • Have separate sorting routines, in logically
    separate parts of the interface
  • Choice of sorting essentially arbitrary
    represents a computational process that does some
    work
  • Represent sorting process visually
  • Run routines to obtain timing data
  • Visualize this data in a chart
  • Other Features
  • Be able to save data to a file
  • Be able to load data to visualize from a file

6
Learning Project (cont.)
  • Relevant Components
  • Top-level frame, tabbed panels, buttons, etc.
  • Menu bar, standard file open/save dialogs
  • Text display area for messages
  • Relevant Concepts Tools
  • Component layout via layout managers
  • Basics of custom component drawing
  • Charting using Chart2D

7
Conclusions
  • Java GUI Implementation
  • The GUI is a fundamental part of the performance
    tools Presentation Unit
  • JFC/Swing provides for fully-functional GUIs
  • Learning Project Completion
  • All major functionality implemented as planned
  • Program is not fancy, but
  • Future Work
  • Start designing and implementing the Statistics
    and Calltree visualizations

8
References
  • Creating a GUI with JFC/Swing, The Java
    Tutorial. Available http//java.sun.com/docs/book
    s/tutorial/uiswing/
  • index.html Accessed March 6, 2005.
  • J. Sima, Chart2D. Available http//chart2d.sour
    ceforge.net/
  • Accessed March 6, 2005.
  • Java 2 Platform Standard Edition 5.0 API
    Specification. Available http//java.sun.com/j2s
    e/1.5.0/docs/api/ Accessed March 6, 2005.

9
Demonstration
Write a Comment
User Comments (0)
About PowerShow.com