
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
<a href="http:// 發表在
痞客邦
留言(0)
人氣()

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
<a href="http:// 發表在
痞客邦
留言(0)
人氣()

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
<a href="http:// 發表在
痞客邦
留言(0)
人氣()

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
<a href="http:// 發表在
痞客邦
留言(0)
人氣()

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
class test
{
public static void main(String[] args)
{
JFrame jtfMainFrame = new JFrame("安安");
<a href="http:// 發表在
痞客邦
留言(0)
人氣()

import java.util.Random;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class test extends JFrame{
public static void main(String[]args){
<a href="http:// 發表在
痞客邦
留言(0)
人氣()

VB
Private Sub CommandButton1_Click()
For i = 1 To 10
Cells(1, i) = i
Next
End Sub
<a href="http:// 發表在
痞客邦
留言(0)
人氣()

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class myButton extends JFrame{
<a href="http:// 發表在
痞客邦
留言(0)
人氣()

程式
<html>
<head>
<title> The First Example: Hello, World </title>
</head>
<body>
<h2> This line is HTML </h2>
<a href="http:// 發表在
痞客邦
留言(0)
人氣()

import java.awt.*; import java.awt.event.*; import javax.swing.*; class test { public static void main(String[] args) { JFrame jtfMainFrame = new JFrame("安安"); jtfMainFrame.setSize(300, 250); JButton jbnButton1 = new JButton("Button 1"); JButton jbnButton2 = new JButton("Button 2"); JButton jbnButton3 = new JButton("Button 3"); JButton jbnButton4 = new JButton("Button 4"); JButton jbnButton5 = new JButton("Button 5"); JButton jbnButton6 = new JButton("Button 6"); JButton jbnButton7 = new JButton("Button 7"); JButton jbnButton8 = new JButton("Button 8"); JButton jbnButton9 = new JButton("Button 9"); JTextField jtfInput = new JTextField(20); JPanel jplPanel = new JPanel(); jplPanel.add(jtfInput); jplPanel.add(jbnButton1); jbnButton1.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { jtfInput.setText("Button 1!"); } }); jplPanel.add(jbnButton2); jbnButton2.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { jtfInput.setText("Button 2!"); } }); jplPanel.add(jbnButton3); jbnButton3.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { jtfInput.setText("Button 3!"); } }); jplPanel.add(jbnButton4); jbnButton4.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { jtfInput.setText("Button 4!"); } }); jplPanel.add(jbnButton5); jbnButton5.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { jtfInput.setText("Button 5!"); } }); jplPanel.add(jbnButton6); jbnButton6.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { jtfInput.setText("Button 6!"); } }); jplPanel.add(jbnButton7); jbnButton7.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { jtfInput.setText("Button 7!"); } }); jplPanel.add(jbnButton8); jbnButton8.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { jtfInput.setText("Button 8!"); } }); jplPanel.add(jbnButton9); jbnButton9.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { jtfInput.setText("Button 9!"); } }); jtfMainFrame.getContentPane().add(jplPanel, BorderLayout.CENTER); jtfMainFrame.setVisible(true); System.out.print("Feng-Chia"); } }
<a href="http:// 發表在
痞客邦
留言(0)
人氣()

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
class test
{
public static void main(String[] args)
{
JFrame jtfMainFrame = new JFrame("Which Button Demo");
<a href="http:// 發表在
痞客邦
留言(0)
人氣()

<html>
<head>
<title> The First Example: Hello, World </title>
</head>
<body>
<h2> This line is HTML </h2>
<a href="http:// 發表在
痞客邦
留言(0)
人氣()