翔泳社では、「独習」「徹底入門」「スラスラわかる」「絵で見てわかる」「一年生」などの人気シリーズをはじめ、言語や開発手法、最新技術を解説した書籍を多数手がけています。プロジェクトマネジメントやチームビルティングといった管理職向けの ...
今回は、表シートを表示する「テーブル」の基本について覚えましょう。 JTableのデータを管理するモデルクラスは、javax.swing.tableパッケージのTableModelというインターフェイスを実装したクラスとして用意します。標準で、DefaultTableModelという実装済みの ...
Oracle has a layout manager called TableLayout which is an alternative for GridBagLayout for Java Swing. Essentially, to create a layout in Swing, you need to initialize the panel with appropriate and ...
This is one of my major desktop applications developed with Java Swing. This application was requested by my father who is a mechanical design engineer. The purpose of this application is to create a ...
Java Foundation Classes (JFC) offer a rich selection of components for building smart and interactive graphical user interfaces (GUIs). You can display tabular data using the javax.swing.JTable class.
今回は、表計算ソフトなどでおなじみのテーブルを作る「JTable」についてです。 では、表示された各項目(テーブルの「セル」と呼ばれるものです)の値を取り出したり、変更したりするにはどうすればよいのでしょうか。JTableに、そのためのメソッドなど ...
SwingXプロジェクトの紹介も今月で3回目になりました。今月も先月に引き続きSwingで提供されていない独自のコンポーネントを紹介します。 今月取りあげるコンポーネントは、カレンダーとツリーテーブルです。どちらも使用頻度が高いコンポーネントなの ...
Q: How can I set the color (or font) on a specific cell (row, column) in a JTable? A: In order to set the color or font for a specific table cell you must create a custom TableCellRenderer. The ...