API Concepts Part-2

in #utopian-io7 years ago (edited)

What Will We Learn From This Tutorials?

in this tutorials, we learn full basic concept of java swing knowledge. Java swing is one kind of window application based system to create it.. It works on AWT and API where written of java. So java swing is also part a JFC (java foundation class). Finally, java swing is one kind of platform where independent and light weight components.
• We will learn from this tutorial of full basic knowledge of java swing concept.
• Also know java swing API components. Such as Java JToolBar, Java JViewport, Java JFrame, Java JComponent, Java JLayeredPane, Java JDesktopPane, Java JEditorPane, Java JScrollPane, Java JSplitPane and many more API components.

Requirements of this tutorials?

There are some requirements in this tutorials. such as-
• Basic knowledge of programming language means object oriented programming means java.
• Also need to know about AWT package.

Difficulty

In this tutorials it's no difficulty. Its totally easy tutorial.
• basic

Tutorial Contents of full package of java swing.

Java swing is a platform where is independent and also light weight components. It follows MVC pattern and also support pluggable look and it's also powerful components. So in this tutorials we discuss full package API components and also basic knowledge of Java swing.

Java JToolBar- Java JToolBar is a component in a group that usually buttons icon ina a row and column. This component used for display commonly which action or contro used,

So,here we can see the following example-

After running this program then we can see the following output-

Java JViewport- Java JViewport is a class component which used for implement scrolling. It designed for both pixel based and logical based scrolling.

Here, we see the following program example-

After running this program then we see the following output-

Java JFrame- Java JFrame ia container types of class which inherits java.awt.Frame class. It works infront mean main window where other components can added to create a new GUI.

So, here we can see the following example-

After running this program then we can see the following output-

Java JComponent- Java JComponent is a base class where all the swing component except top level. That the component name begin with J are descendants in the class.

So, here we can see the following example-

After running this program then we can see the following output-

Java JLayeredPane- Java JLayeredPane is a class which used to add depth in swing container.

So, here we can see the following example-

After running this program then we can see the output-

Java JDesktopPane- java JDesktopPane is a class which used to create multi document applications. This application have many windows included.

So, here we can see the following example-

After running this program then we can see the following output-

Java JEditorPane- Java JEditorPane is a class which used to create a simple text for editor window.

So, here we can see the following example-

After running this program then we can see the following output-

Java JScrollPane- Java JScrollPane is used to make a view scrollbar for the components. It means when screen size is small then we use scroll pane to display a large component.

So, here we can see the following example-

After running this program then we can see the following output-

Java JSplitPane- Java JSplitPane is mainly used for divide two components. Thise two components can divide there based on the look and also implementation, also resized by the user.

So, here we can see the following example-

After running this program then we can see the following output-

Curriculum



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Thank you for the contribution. It has been approved.

You can contact us on Discord.
[utopian-moderator]

The post has been rejected. The content is copied from https://www.javatpoint.com

The user has been banned.

@safat
Your publication has been successfully shared, with more than 2482 Steemit users thank you for participating in the last edition of free reestem.
If you find my project useful, donate a vote to my comment

Coin Marketplace

STEEM 0.16
TRX 0.16
JST 0.032
BTC 59185.02
ETH 2522.04
USDT 1.00
SBD 2.47