what is java swing in hindi?

Java swing in hindi:- जावा स्विंग क्या है?

java swing जो है वह java foundation classes (JFC) का एक हिस्सा है जिसका प्रयोग विंडोज पर आधारित एप्लीकेशन को बनाने के लिए किया जाता है.

इसे AWT (abstract windowing toolkit) API के उपर बनाया गया है तथा इसे पूरी तरह जावा में लिखा गया है.

swing API का प्रयोग developers के द्वारा जावा पर आधारित front end/GUI एप्लीकेशन बनाने के लिए किया जाता है. तथा swing API का प्रयोग AWT API के substitute के तौर पर किया जाता है.

जावा में, Javax.swing पैकेज swing API के लिए classes को उपलब्ध करता है जैसे:- JButton, JComboBox, JList, JTabbedPane, JToolbar, JTextArea, JRadioButton तथा JPasswordField आदि.

Java swing

java swing features in hindi:-

इसके गुणधर्म निम्नलिखित है:-

1:- platform independent:- swing के components जो है वह प्लेटफार्म इंडिपेंडेंट होते है अर्थात् यह किसी भी ऑपरेटिंग सिस्टम में run हो जाते है.

2:- light weight:- चूँकि swing components को पूरी तरह जावा में लिखा गया है इसलिए यह light weight होते है.

3:- controls:- swing में बहुत सारें अच्छे controls होते है जैसे:- tree, TabbedPane, Slider, ColorPicker तथा Table controls आदि.

4:- customize:- हम swing controls को आसानी से कस्टमाइज कर सकते है.

5:- look:- swing पर आधारित एप्लीकेशन के look तथा feel को runtime में भी बदला जा सकता है.

methods of java swing components classes:-

methoddescription
public void add(Component c)इसका प्रयोग एक component दूसरे component में add करने के लिए किया जाता है.
public void setSize(int width,int height)इसका प्रयोग component के साइज़ को सेट करने के लिए किया जाता है.
public void setLayout(LayoutManager m)इसका प्रयोग component के लिये layout manager को सेट करने के लिए किया जाता है.
public void setVisible(boolean b)इसका प्रयोग component की visibility को सेट करने के लिए किया जाता है.

example:- simple program of java swing

import javax.swing.JFrame;
import javax.swing.swingUtilities;

public class App {

public static void main(string[] args) {

swingUtilities.invokeLater(new Runnable() {
public void run() {
JFrame frame = name JFrame(“hello world Swing!”);
frame.setSize(500, 400);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setVisible(true);
}
}};

}

}

निवेदन:- अगर आपके लिए यह पोस्ट helpful रही है तो कमेंट के द्वारा बताइए तथा इसे अपने दोस्तों के साथ share करें. धन्यवाद.

6 thoughts on “what is java swing in hindi?”

  1. Kya sir aap Jslider using menus with frames (constructor of the class ,commonly used functions) topic ko hindi note bna skte ho taki proper smjh aye mujhe ye topic

    Reply

Leave a Comment