查看積分策略說明發表回覆
Discuz! 代碼
提示插入
直接插入
說明訊息

插入粗體文本 插入斜體文本 插入下劃線 置中對齊 插入超級連結 插入信件位址 插入圖像 插入 flash 插入代碼 插入引言 插入列表
刪除線 直線分隔線 虛線分隔線
    
添加文字底框
內容 [字數檢查]:

表情符號

更多 Smilies
字型大小 |||
溫馨提示:本區開放遊客瀏覽。


文章關鍵字 : [功能說明]
(關鍵字可加強搜索準確性, 如關鍵字多於一組, 請以 , 作分隔, e.g. : 阿笨,shiuh,第一笨)

 關閉 URL 識別 | html 禁用
 關閉 表情符號 | 表情符號 可用
 關閉 Discuz! 代碼 | Discuz! 代碼 可用
使用個人簽名
接收新回覆信件通知
推薦放檔網絡空間

檔案(Torent, zip等)
  1. freedl
  2. multiupload
  3. btghost
  4. 便當狗
  5. mediafire
  6. pillowangel
圖片(JPG, GIF等)
  1. hotimg
  2. tinypic
  3. mousems2
  4. imageshack
  5. imm.io
>>>歡迎推薦好用空間


最新10篇文章回顧
GT47

 發表於 2006-6-17 06:37 PM

AKDR 大
謝謝
幫我完成了作業.送3隻花做為感謝


jocosn

 發表於 2006-6-17 08:34 AM


引用:
AKDR寫到:
大概是這樣吧.不是我也沒辦了:lol
-------------------------------------------------------
import java.awt.*;
import java.awt.event.*;
public cla.....略


太厲害啦,
看的我也想問問題。


AKDR

 發表於 2006-6-15 08:09 PM

大概是這樣吧.不是我也沒辦了:lol
-------------------------------------------------------
import java.awt.*;
import java.awt.event.*;
public class 王小明 extends Frame implements
ActionListener,AdjustmentListener
{
   static 王小明 frm=new 王小明();
   static Button btn1=new Button("我 的 姓 名");
   static Button btn2=new Button("學  號");
   static Button btn3=new Button("興  趣");      
   static Button btn4=new Button("自 傳 簡 介");
   static Button btn5=new Button("清  除");
   static Panel pnl=new Panel();
   static Scrollbar scr1=new Scrollbar(Scrollbar.VERTICAL);
   static Scrollbar scr2=new Scrollbar(Scrollbar.HORIZONTAL);
   static TextArea txa=new TextArea("",8,14,TextArea.SCROLLBARS_VERTICAL_ONLY);
   static WinLis wlis=new WinLis();
   public static void main(String args[])
   {
      BorderLayout br=new BorderLayout(5,5);
      scr1.addAdjustmentListener(frm);            
      scr1.setValues(20,4,26,150);
      scr2.addAdjustmentListener(frm);      
      scr2.setValues(10,4,15,200);
      btn1.addActionListener(frm);
      btn2.addActionListener(frm);
      btn3.addActionListener(frm);
      btn4.addActionListener(frm);
      btn5.addActionListener(frm);
      frm.setTitle("A123456789 王小明");
      frm.addWindowListener(wlis);
      frm.setSize(500,450);
      frm.setBackground(Color.yellow);
      frm.add(scr1,br.EAST);
      frm.add(scr2,br.SOUTH);
      pnl.setLayout(null);
      btn1.setSize(80,30);
      btn2.setSize(80,30);
      btn3.setSize(80,30);
      btn4.setSize(80,30);
      btn5.setSize(80,30);
      txa.setSize(200,280);
      btn1.setLocation(60,40);
      btn2.setLocation(60,100);
      btn3.setLocation(60,160);
      btn4.setLocation(60,220);
      btn5.setLocation(60,280);
      txa.setLocation(200,40);
      pnl.add(btn1);
      pnl.add(btn2);
      pnl.add(btn3);
      pnl.add(btn4);
      pnl.add(btn5);
      pnl.add(txa);
      frm.add(pnl,br.CENTER);
      txa.setEditable(false);
      frm.setVisible(true);
   }
   public void adjustmentValueChanged(AdjustmentEvent e)
   {      
     int x=scr2.getValue();      
     int y=scr1.getValue();
     pnl.setLocation(x,y);
   }
   public void actionPerformed(ActionEvent e)
   {
      Button btn=(Button) e.getSource();  
      if(btn==btn1)
      txa.setText("王小明");
      else if(btn==btn2)     
      txa.setText("B932011574");
      else if(btn==btn3)                     
      txa.setText("集郵、下棋");
      else if(btn==btn4)                     
      txa.setText("人家都叫我王小明,我以前在便利商店工作過");
      else if(btn==btn5)                     
      txa.setText("");
   }
      static class WinLis extends WindowAdapter
   {
      public void windowClosing(WindowEvent e)  
      {
         System.out.println("windowClosing() called");
         System.out.println("Closing window...");
         frm.dispose();   
         System.out.println("window closed...");
      }
      public void windowClosed(WindowEvent e)  
      {        
         System.out.println("windowClosed() called");
      }
      public void windowDeactivated(WindowEvent e)
      {
         System.out.println("windowDeactivated() called");
      }      
      public void windowActivated(WindowEvent e)   
      {
         System.out.println("windowActivated() called");
      }            
      public void windowDeiconified(WindowEvent e)   
      {
         System.out.println("windowDeiconified() called");
      }         
      public void windowIconified(WindowEvent e)   
      {
         System.out.println("windowIconified() called");
      }   
      public void windowOpened(WindowEvent e)   
      {
         System.out.println("windowOpened() called");
      }


Outbreak

 發表於 2006-6-13 04:01 PM

題目敘述不清
只有一張圖
大家只能看圖說故事...

大概是  四個按鈕
然後按了之後  分別會顯示在 最下方的顯示區域吧  

@@

故事說完了

程式也寫完了

收工


dlc007

 發表於 2006-6-12 11:16 AM

是要問題是什麼還是問程式怎麼寫?
題目不懂應該問老師, 程式不懂就該用功囉


GT47

 發表於 2006-6-8 11:29 PM

[求助]
期末作業 履歷表

今天看了課本.都看不懂.請個位好心人幫忙
.謝謝
------------------------------------------

[GT47 在  2006-6-9 12:04 AM 作了最後編輯]





所在時區為 GMT+8, 現在時間是 2024-9-30 01:29 AM
清除 Cookies - 連絡我們 - TWed2k © 2001-2046 - 純文字版 - 說明
Discuz! 0.1 | Processed in 0.022587 second(s), 6 queries , Qzip disabled