前回、クラスとインスタンス利用のサンプルとして、AWT(Abstract Window Toolkit)という標準で付属するクラス群を使ってウインドウを表示するプログラムを作成しました。Javaには、標準でこのAWTと「Swing」という2つのGUIライブラリが付属します。AWTは非常に ...
System.out.printlnの結果やエラー出力をAWTプログラムで表示させるコンポーネントを作ってみましょう。 では、実際にOutputTextAreaを使った簡単なアプリケーションを作ってみましょう。ごく簡単なサンプルということで、入力されたテキストを計算し結果を表示 ...
この記事の要約:この記事では、Javaで本格的なグラフィカルユーザーインターフェース(GUI)アプリケーションを作成する方法が解説します。AWTは、ウィンドウ、ボタン、テキストフィールドなどのUIコンポーネントと、それらを階層的に含み配置する ...
Do you ever get the feeling there’s something not quite right about Swing threading? John Zukowski puts his finger on it in this article. While tracing Swing’s single-threaded event model from Java ...
Java tips: Tap into the AWT Image class and FileNameMap Your email has been sent Need some Java tips you can put to work right away? Here are a couple of techniques you'll want to pick up if you work ...
This Java project allows users to drag and drop an image file directly onto a graphical window (JFrame). Once dropped, the image is automatically loaded and displayed within the frame. It demonstrates ...
本記事では、Java における AWT(Abstract Window Toolkit)と、それに対応する Python の Tkinter の違いを、初心者にもわかりやすく解説します。 初心者でも理解しやすいように、AWT と Tkinter の基本的な使い方や違いについて、実際のコード例を交えて詳しく説明します ...
一部の結果でアクセス不可の可能性があるため、非表示になっています。
アクセス不可の結果を表示する