- 89 名前:デフォルトの名無しさん [2007/01/26(金) 12:37:45 ]
- >>85さんありがとうございます。
でもコンパイルでエラーばっかりで・・・Swingで一応やってました。。 import javax.swing.*; import java.awt.event.*; import java.awt.BorderLayout; public class TwoFrame extends JFrame{ public static void main(String[] args){ TwoFrame test = new TwoFrame("TwoFrame"); test.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); test.setVisible(true); } TwoFrame(String title){ setTitle(title); setBounds( 10, 10, 400, 300); JDesktopPane desktop = new JDesktopPane(); JInternalFrame iframe1 = new JInternalFrame("画像1"); iframe1.setBounds(50, 50, 500, 500); iframe1.setVisible(true); desktop.add(iframe1); JInternalFrame iframe2 = new JInternalFrame("画像2"); iframe2.setBounds(10, 10, 500, 500); iframe2.setVisible(true); desktop.add(iframe2); getContentPane().add(desktop, BorderLayout.CENTER); } } 上のでフレームを二つ用意は出来たのですが、どう書いたら画像を表示出来るんでしょうか。。 どなたか力を貸してください。。
|

|