Presentation is loading. Please wait.

Presentation is loading. Please wait.

GUI Programming In Java Sagun Dhakhwa BIM, HSM. GUI Appllications Event Driven OOP Uses objects of Classes like in any other Java programming.

Similar presentations


Presentation on theme: "GUI Programming In Java Sagun Dhakhwa BIM, HSM. GUI Appllications Event Driven OOP Uses objects of Classes like in any other Java programming."— Presentation transcript:

1 GUI Programming In Java Sagun Dhakhwa BIM, HSM

2 GUI Appllications Event Driven OOP Uses objects of Classes like in any other Java programming

3 Types Stand Alone Applications Applets : that run on web pages [“lets” means small like in pig and piglets]

4 main() In GUI driven standalone program, main() method is the only method called (as in any java program) main() method creates UI and finishes All the other components (or methods) of the program is run via events generated when user interacts with the UI

5 Look at the basic UI program created Applet Standalone application

6 Layout Managers A layout manager is an object that implements the LayoutManager interface* and determines the size and position of the components within a container.*

7 Default Layout Manager ContentPane uses BorderLayout JPanel uses FlowLayout These defaults are only useful for prototypes For serious Uis use GridBagLayout if you code by hand and GroupLayout if you use Netbeans or similar things Absolute layout means using no layout at all and giving bounds to the components

8


Download ppt "GUI Programming In Java Sagun Dhakhwa BIM, HSM. GUI Appllications Event Driven OOP Uses objects of Classes like in any other Java programming."

Similar presentations


Ads by Google