create account

API Concepts Part-2 by safat

View this thread on: hive.blogpeakd.comecency.com
· @safat · (edited)
$0.07
API Concepts Part-2
#### 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-
https://res.cloudinary.com/hpiynhbhq/image/upload/v1517056557/dfkuzzzrcwbf48yyhcp7.png
After running this program then we can see the following output-
https://res.cloudinary.com/hpiynhbhq/image/upload/v1517056601/mdw9ekctzwen3ruqcqn5.png
### 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-
https://res.cloudinary.com/hpiynhbhq/image/upload/v1517056929/efmf2bqi2o8hoh9nr6ig.png
After running this program then we see the following output-
https://res.cloudinary.com/hpiynhbhq/image/upload/v1517056965/k7grq9i90jryp3j4nr9w.png
https://res.cloudinary.com/hpiynhbhq/image/upload/v1517056970/bbtmkvq8lhapbffcgnid.png
### 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-
https://res.cloudinary.com/hpiynhbhq/image/upload/v1517057831/c14prl37ga5ostjgf55q.png
After running this program then we can see the following output-
https://res.cloudinary.com/hpiynhbhq/image/upload/v1517057868/mnotbnq5uc1054tztgmf.png
### 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-
https://res.cloudinary.com/hpiynhbhq/image/upload/v1517058825/jl1waqztfgprjnedj9da.png
After running this program then we can see the following output-
https://res.cloudinary.com/hpiynhbhq/image/upload/v1517058859/zg5d3kdtmzu3irgxylbu.png
https://res.cloudinary.com/hpiynhbhq/image/upload/v1517058868/akqisyebkyi7inhh7zkt.png
### Java JLayeredPane- Java JLayeredPane is a class which used to add depth in swing container.
So, here we can see the following example-
https://res.cloudinary.com/hpiynhbhq/image/upload/v1517062546/qjvtpujt4bkacrpl5pla.png
After running this program then we can see the output-
https://res.cloudinary.com/hpiynhbhq/image/upload/v1517062576/vgqxgxn4nc3dqoqlbwik.png
https://res.cloudinary.com/hpiynhbhq/image/upload/v1517062580/em127tcucxi2vzi5wo2a.png
### 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-
https://res.cloudinary.com/hpiynhbhq/image/upload/v1517063256/jlpurpc4tdged3fonjeg.png
After running this program then we can see the following output-
https://res.cloudinary.com/hpiynhbhq/image/upload/v1517063297/tucgmjbpoqtq3kn3n7ah.png
https://res.cloudinary.com/hpiynhbhq/image/upload/v1517063309/ps7sknl4x1xifhj15srp.png
### 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-
https://res.cloudinary.com/hpiynhbhq/image/upload/v1517063662/z3zx9uepshyagbqv5xqx.png
After running this program then we can see the following output-
https://res.cloudinary.com/hpiynhbhq/image/upload/v1517063694/we2dcinm8glmvefqtqmv.png
https://res.cloudinary.com/hpiynhbhq/image/upload/v1517063706/xtmj1snvjfjcdw3owswh.png
### 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-
https://res.cloudinary.com/hpiynhbhq/image/upload/v1517064575/jqcrjyirtepbkygeb3nt.png
After running this program then we can see the following output-
https://res.cloudinary.com/hpiynhbhq/image/upload/v1517064609/yzvtmahnvbnnzx2bad4n.png
### 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-
https://res.cloudinary.com/hpiynhbhq/image/upload/v1517065190/jbq8jbrbqrz8pirkkhze.png
After running this program then we can see the following output-
https://res.cloudinary.com/hpiynhbhq/image/upload/v1517065226/npkvao6syckq8ljvvktj.png

#### Curriculum
- [API Concepts of Java Swing](https://utopian.io/utopian-io/@safat/api-concepts-of-java-swing)


<br /><hr/><em>Posted on <a href="https://utopian.io/utopian-io/@safat/api-concepts-part-2">Utopian.io -  Rewarding Open Source Contributors</a></em><hr/>
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
properties (23)
authorsafat
permlinkapi-concepts-part-2
categoryutopian-io
json_metadata{"community":"utopian","app":"utopian/1.0.0","format":"markdown","repository":{"id":23829681,"name":"java-swing-tips","full_name":"aterai/java-swing-tips","html_url":"https://github.com/aterai/java-swing-tips","fork":false,"owner":{"login":"aterai"}},"pullRequests":[],"platform":"github","type":"tutorials","tags":["utopian-io","utopian-io","tutorials","open-source"],"users":["safat"],"links":["https://utopian.io/utopian-io/@safat/api-concepts-of-java-swing"],"moderator":{"account":"espoem","time":"2018-01-27T21:22:33.222Z","reviewed":false,"pending":false,"flagged":true}}
created2018-01-27 16:06:33
last_update2018-01-27 21:22:33
depth0
children3
last_payout2018-02-03 16:06:33
cashout_time1969-12-31 23:59:59
total_payout_value0.074 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length5,956
author_reputation796,185,354,773
root_title"API Concepts Part-2"
beneficiaries
0.
accountutopian.pay
weight2,500
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id32,773,675
net_rshares11,905,505,094
author_curate_reward""
vote details (33)
@gerginho ·
Thank you for the contribution. It has been approved.

You can contact us on [Discord](https://discord.gg/uTyJkNm).
**[[utopian-moderator]](https://utopian.io/moderators)**
properties (22)
authorgerginho
permlinkre-safat-api-concepts-part-2-20180127t204803717z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"community":"utopian","app":"utopian/1.0.0"}
created2018-01-27 20:48:06
last_update2018-01-27 20:48:06
depth1
children1
last_payout2018-02-03 20:48:06
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length172
author_reputation3,574,684,637,492
root_title"API Concepts Part-2"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id32,830,177
net_rshares0
@espoem ·
The post has been rejected. The content is copied from https://www.javatpoint.com

- https://www.javatpoint.com/java-jcomponent

The user has been banned.
properties (22)
authorespoem
permlinkre-gerginho-re-safat-api-concepts-part-2-20180127t212326198z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"community":"utopian","app":"utopian/1.0.0"}
created2018-01-27 21:23:27
last_update2018-01-27 21:23:27
depth2
children0
last_payout2018-02-03 21:23:27
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length154
author_reputation59,289,149,412,912
root_title"API Concepts Part-2"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id32,836,917
net_rshares0
@untapentuoreja ·
@safat
Your publication has been successfully shared, with more than 2482 Steemit users thank you for participating in the [last edition of free reestem](https://steemit.com/share/@untapentuoreja/free-reesteem-day-27-01-58-reactivates-the-rewards-of-your-publication-2477-followers).
If you find my project useful, **donate a vote to my comment**
properties (22)
authoruntapentuoreja
permlinkre-safat-api-concepts-part-2-20180127t234405298z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"users":["safat"],"links":["https://steemit.com/share/@untapentuoreja/free-reesteem-day-27-01-58-reactivates-the-rewards-of-your-publication-2477-followers"],"app":"steemit/0.1"}
created2018-01-27 23:44:06
last_update2018-01-27 23:44:06
depth1
children0
last_payout2018-02-03 23:44:06
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length346
author_reputation913,006,409,722
root_title"API Concepts Part-2"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id32,860,419
net_rshares0