看板 java 關於我們 聯絡資訊
※ 引述《sss0350 (快劍)》之銘言: : 小弟是java新手 如果問到蠢問題的會自d : 就是 我如果已在 a.java 裡畫好一些框架與按紐了 : 如果我要在b.java裡用到a.java裡的按紐或元件的話 : 即要在b檔裡 做一些按下a.java檔裡的元件後會造成什麼結果 : 要怎麼使用呢? 繼承? import ? @@ 麻煩各位了~ 1.Java是以類別為單位,不是以.java檔為單位。 2.GUI的話 請以Component當一個單位去操作元件, 你可以用container承載conponent並操作它。 3.以你的情況看起來像是兩個Frame之間的互動, 那你需要一個能讓兩個Frame都存在的環境.....XD -- 胡說八道一通~等待能人XD -- String temp="relax"; | Life just like programing while(buringlife) String.forgot(temp); | to be right or wrong while(sleeping) brain.setMemoryOut(); | need not to say stack.push(life.running); | the compiler will stack.push(scouting.buck()); | answer your life stack.push(bowling.practice()); | Bone everything -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 220.139.147.114