• Java - Files and streamsJava - Files and streams

    JFileChooser – class used to display a dialog that enables users to easily select files Method setFileSelectionMode specifies what user can select from JFileChooser FILES_AND_DIRECTORIES constant indicates files and directories FILES_ONLY constant indicates files only DIRECTORIES_ONLY constant indicates directories only Method showOpenDialog d...

    ppt82 trang | Chia sẻ: nguyenlam99 | Ngày: 05/01/2019 | Lượt xem: 8 | Lượt tải: 0

  • Java - Exception handlingJava - Exception handling

    Assertions are conditions that should be true at a particular point in a method Help ensure a program’s validity by catching potential bugs Preconditions and Postconditions are two kinds of assertions Assertions can be stated as comments or assertions can be validated programmatically using the assert statement

    ppt90 trang | Chia sẻ: nguyenlam99 | Ngày: 05/01/2019 | Lượt xem: 9 | Lượt tải: 0

  • Java - Graphics and java 2d™Java - Graphics and java 2d™

    A general path is a shape constructed from straight lines and complex curves Class GeneralPath Method moveTo specifies the first point in a general path Method lineTo draws a line to the next point in the path Method closePath completes the general path Graphics2D method translate – used to move the drawing origin Graphics2D method rotate – u...

    ppt74 trang | Chia sẻ: nguyenlam99 | Ngày: 05/01/2019 | Lượt xem: 11 | Lượt tải: 0

  • Java - Gui components: Part 1Java - Gui components: Part 1

    JScrollPane has scrollbar policies Horizontal policies Always (HORIZONTAL_SCROLLBAR_ALWAYS) As needed (HORIZONTAL_SCROLLBAR_AS_NEEDED) Never (HORIZONTAL_SCROLLBAR_NEVER) Vertical policies Always (VERTICAL_SCROLLBAR_ALWAYS) As needed (VERTICAL_SCROLLBAR_AS_NEEDED) Never (VERTICAL_SCROLLBAR_NEVER)

    ppt174 trang | Chia sẻ: nguyenlam99 | Ngày: 05/01/2019 | Lượt xem: 10 | Lượt tải: 0

  • Java - Object - Oriented programming: PolymorphismJava - Object - Oriented programming: Polymorphism

    Several UML modeling tools convert UML-based designs into Java code and can speed the implementation process considerably. For more information on these tools, refer to the Internet and Web Resources listed at the end of Section 2.9.

    ppt90 trang | Chia sẻ: nguyenlam99 | Ngày: 05/01/2019 | Lượt xem: 10 | Lượt tải: 0

  • Java - Object - Oriented programming: InheritanceJava - Object - Oriented programming: Inheritance

    Class Object methods clone equals finalize getClass hashCode notify, notifyAll, wait toString

    ppt89 trang | Chia sẻ: nguyenlam99 | Ngày: 05/01/2019 | Lượt xem: 8 | Lượt tải: 0

  • Java - Classes and objects: A deeper lookJava - Classes and objects: A deeper look

    Implementing the ATM system from its UML design (for each class) Declare a public class with the name in the first compartment and an empty no-argument constructor Declare instance variables based on attributes in the second compartment Declare references to other objects based on associations described in the class diagram Declare the shells o...

    ppt118 trang | Chia sẻ: nguyenlam99 | Ngày: 05/01/2019 | Lượt xem: 9 | Lượt tải: 0

  • Java - ArraysJava - Arrays

    Sequence of messages in a communication diagram Appear to the left of a message name Indicate the order in which the message is passed Process in numerical order from least to greatest

    ppt100 trang | Chia sẻ: nguyenlam99 | Ngày: 05/01/2019 | Lượt xem: 9 | Lượt tải: 0

  • Java - Methods: A deeper lookJava - Methods: A deeper look

    Some operations may not have return types yet Remaining return types will be added as design and implementation proceed Identifying and modeling operation parameters Examine what data the operation requires to perform its assigned task Additional parameters may be added later on

    ppt88 trang | Chia sẻ: nguyenlam99 | Ngày: 05/01/2019 | Lượt xem: 12 | Lượt tải: 0

  • Java - Control statements: Part 2Java - Control statements: Part 2

    Activity Diagrams Focus on system behavior Model an object’s workflow during program execution Model the actions the object will perform and in what order UML representation Action state ( rectangle with its left and right sides replaced by arcs curving outwards) Action order ( arrow with a stick arrowhead) Initial state (solid circle) Fina...

    ppt95 trang | Chia sẻ: nguyenlam99 | Ngày: 05/01/2019 | Lượt xem: 9 | Lượt tải: 0