In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article focuses on "how to use Java Swing to achieve QQ login page", interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let the editor take you to learn "how to use Java Swing to achieve QQ login page"!
The code is as follows:
Import java.awt.*;import javax.swing.*; public class Demo121 extends JFrame {public Demo121 () {JPanel jp1=new JPanel (); JPanel jp2=new JPanel (); JPanel jp3=new JPanel (); Icon icon1=new ImageIcon (getClass (). GetResource ("/ com/res/tou.gif")); Icon icon2=new ImageIcon (getClass (). GetResource ("/ com/res/clear.gif")) Icon icon3=new ImageIcon (getClass (). GetResource ("/ com/res/denglu.gif"); Icon icon4=new ImageIcon (getClass (). GetResource ("/ com/res/quxiao.gif")); Icon icon5=new ImageIcon (getClass (). GetResource ("/ com/res/xiangdao.gif")); JButton jb1=new JButton (); JButton jb2=new JButton (); JButton jb3=new JButton (); JButton jb4=new JButton () JButton jb5=new JButton (); jb1.setIcon (icon1); jb2.setIcon (icon2); jb3.setIcon (icon3); jb4.setIcon (icon4); jb5.setIcon (icon5); JTabbedPane jta=new JTabbedPane (JTabbedPane.TOP); JPanel jp4=new JPanel (); JPanel jp5=new JPanel (); JPanel jp6=new JPanel (); jta.addTab ("QQ number", jp4) Jta.addTab ("Mobile phone number", jp5); jta.addTab ("Mailbox number", jp6); JLabel jla1=new JLabel ("QQ number"); JLabel jla2=new JLabel ("QQ password"); JLabel jla3=new JLabel ("forget password"); jla3.setFont ("Arial", Font.BOLD,16); jla3.setForeground (Color.BLUE) JLabel jla4=new JLabel ("apply for password protection"); jla4.setForeground (Color.BLUE); JRadioButton jra1=new JRadioButton ("invisible login"); JRadioButton jra2=new JRadioButton ("remember password"); JTextField jte=new JTextField (10); JPasswordField jpa=new JPasswordField (10); jp4.setLayout (new GridLayout (3d3)); jp4.add (jla1) Jp4.add (jte); jp4.add (jb2); jp4.add (jla2); jp4.add (jpa); jp4.add (jla3); jp4.add (jra1); jp4.add (jra2); jp4.add (jla4); jp1.add (jb1); jp2.add (jta); jp3.add (jb3); jp3.add (jb4) Jp3.add (jb5); this.add (jp1,BorderLayout.NORTH); this.add (jp2,BorderLayout.CENTER); this.add (jp3,BorderLayout.SOUTH); this.setSize (400,290); this.setVisible (true); this.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE); this.setLocation (450,120) } public static void main (String [] args) {Demo121 de=new Demo121 ();}}
Running result:
At this point, I believe you have a deeper understanding of "how to use Java Swing to achieve QQ login page". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.