Announcements - PowerPoint PPT Presentation

About This Presentation
Title:

Announcements

Description:

Today. JPanel container - groups components to control layout. Layout options: FlowLayout ... Show JPanel and GridLayout in BlueJ. Let's try it out. ... – PowerPoint PPT presentation

Number of Views:39
Avg rating:3.0/5.0
Slides: 5
Provided by: CSCF
Category:

less

Transcript and Presenter's Notes

Title: Announcements


1
Announcements Review
  • Last time GUI
  • Survey
  • JFrame container
  • ImageIcon - image component
  • Today
  • JPanel container - groups components to control
    layout
  • Layout options
  • FlowLayout
  • BorderLayout
  • GridLayout
  • Read
  • Ch GU1 GU2 Cohoon Davidson
  • Ch 14 Reges Stepp
  • Lab 10 set game
  • due 4/26
  • Exam 2
  • Wed 5/2 530-730

2
JFrame JPanelcontainers
  • Components we have seen
  • Jbutton, JRadioButton, JTextField, ImageIcon
  • We put components into a container, i.e., a
    JFrame
  • New container JPanel container
  • containers group one or more components into
    logical parts fro layout and/or logical
    programming
  • Lightweight JPanel container
  • http//java.sun.com/j2se/1.4.2/docs/api/javax/swin
    g/JPanel.html

3
JFrame JPanel layout
  • Within a JFrame or JPanel we lay components out
    in a style
  • FlowLayout
  • http//java.sun.com/j2se/1.4.2/docs/api/java/awt/F
    lowLayout.html
  • GridLayout
  • http//java.sun.com/j2se/1.4.2/docs/api/java/awt/G
    ridLayout.html
  • BorderLayout
  • http//java.sun.com/j2se/1.4.2/docs/api/java/awt/B
    orderLayout.html

4
Show JPanel and GridLayout in BlueJ
  • Lets try it out.
Write a Comment
User Comments (0)
About PowerShow.com