Javaの標準GUIライブラリ「Swing」を使えば、簡単にデスクトップアプリケーションを作ることができます。本記事では、画像を表示するシンプルなUIをSwingで作成する手順をわかりやすく解説します。 画像表示のコード例 import javax.swing.*; import java.awt.*; public ...
concentrate the business logic into e.g. the "Model", which "lives longer" (in years) than the often changing GUI technologies When you develop a Java Swing GUI in practice, you face the following ...
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 ...
MVPモデルで画面遷移をする時に、どこからどうやって処理していけばよいのか考えると混乱してきてよく分かりません。そこで私はMVPモデルで作っているGUIアプリにおける画面遷移について色々考え、規則を定めました。 あくまで私がいつもやっている方法 ...
Swing is a framework for building GUI-based applications. Swing provides features not present in the AWT. More dynamic components - through the use of delegation objects More complex components - ...
今回は、実際にJFrameに主なコンポーネントを組み込んで使ってみましょう。 前回、JFrameを使ってウインドウを表示し、コンポーネントを組み込むまでを行いました。今回は、コンポーネントの利用についてもう少し掘り下げていきましょう。といっても、実 ...