Commonly used packages, classes, and classes, methods, properties----SQL, and text\swing in a package in Java

Source: Internet
Author: User
Tags parse string

Java Commonly used in packages , classes, and classes, methods, and properties in packages

Common packages

java.io.*;

java.util.*;

java.lang.*;

java.sql.*;

java.text.*;

java.awt.*;

javax.swing.*;

package name

interface

class

method

properties

java.sql.*;

 

 

 public class  DriverManager  
 extends Object 

 

static connect Ion

getconnection (String url, String user, string  Password)
           attempted to establish a connection to a given database URL.

 

 

java.text.*;

 

 public class  SimpleDateFormat  
 extends DateFormat 
   
  1. format convert date type to String type
  2. Parse String class Type is converted to date.

 

"Yyyy-mm-dd ' T ' HH:mm:ss. Sssz "

2001-07-04t12:08:56.235-0700

 

java.awt.*; java.swing.*;

Layout classes: BorderLayout, GridLayout, CardLayout, FlowLayout

Component classes: JButton, Jcheckbox, JcomboBox, JComponent, JDialog, Jframe, Jlist, Jlabel, JToolBar, JMenu, JMenuBar, JMenuItem, Joptionpane, JPasswordField, Jpasswordlabel, JScrollPane, Jsepa

Rator, JTextArea

For specific users, please refer to Javaapi.

Commonly used packages, classes, and classes, methods, properties----SQL, and text\swing in a package in Java

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.