⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 input.java

📁 Clustering demo.very good
💻 JAVA
字号:
import javax.swing.*;
import javax.swing.event.*;
import java.awt.*;
import java.awt.event.*;
import java.io.*;

class Input extends JFrame implements ActionListener{
    JLabel title=null;
    JButton file=null,database=null,exit=null;
            public Input(){
	super("WELCOME WINDOW");
	title=new JLabel("WELCOME TO CLUSTERING ALGORITHMS");
	title.setFont( new Font("Garamond",Font.BOLD,28));
	file=new JButton("CLICK HERE TO ENTER THE INPUT FILE");
	exit=new JButton("EXIT");
	database=new JButton("CLICK HERE TO ACCESS THE DATA FROM DATABASE");
	
	Container c=getContentPane();
	c.setLayout(null);

	title.setBounds(200,50,700,100);
	file.setBounds(310,200,410,70);
	file.setFont( new Font("Garamond",Font.BOLD,14));
	database.setBounds(310,300,410,70);
	database.setFont( new Font("Garamond",Font.BOLD,14));
	exit.setBounds(310,400,410,70);
	exit.setFont( new Font("Garamond",Font.BOLD,14));
	
	c.setBackground(new Color(255,200,218));//Color.lightGray);
	
	c.add(title);
	c.add(file);
	c.add(database);
	c.add(exit);

	file.addActionListener(this);
	database.addActionListener(this);
	exit.addActionListener(this);

	setSize(1025,750);
	setVisible(true);
      }
   public void actionPerformed(ActionEvent ae){
	if(ae.getSource()==file){
		this.setVisible(false);
		InputFrame iff=new InputFrame();
	}else if(ae.getSource()==database){
		this.setVisible(false);
		InputFrame1 if1=new InputFrame1();
	}else if( ae.getSource() == exit ){
		System.exit(0);
	}
     }

     public static void main(String []args){
 	Input input=new Input();
     }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -