コンテンツにスキップ

JInternalFrame JLayeredPane JDesktopPane

JInternalFrameをModalにする

ModalInternalFrame

JInternalFrameをModalにして、他のJInternalFrameなどを操作できないようにブロックします。

JInternalFrameを半透明にする

TransparentFrame

JInternalFrameのフレーム内を半透明にします。

SynthでJInternalFrameを半透明にする

Section titled “SynthでJInternalFrameを半透明にする”
SynthでJInternalFrameを半透明にする

TranslucentFrame

Synthを使ったLookAndFeelで、JInternalFrameを半透明にします。

JComponentをマウスで移動、リサイズ

Section titled “JComponentをマウスで移動、リサイズ”
JComponentをマウスで移動、リサイズ

ResizableComponents

JLayeredPaneに、マウスで移動、リサイズ可能なコンポーネントを追加します。

JDesktopPaneにJInternalFrameを吸着させる

Section titled “JDesktopPaneにJInternalFrameを吸着させる”
JDesktopPaneにJInternalFrameを吸着させる

MagneticFrame

JDesktopPaneとJInternalFrameの距離が近くなった場合、これらを自動的に吸着させます。

JInternalFrameを固定

ImmovableFrame

JInternalFrameをマウスなどで移動できないように固定します。

DesktopManagerでアイコンの再配置

RelocatedIcon

JDesktopPaneのサイズが変更されたとき、アイコン化しているJInternalFrameの再配置を行います。

JLayeredPaneに付箋風のウィンドウを表示する

Section titled “JLayeredPaneに付箋風のウィンドウを表示する”
JLayeredPaneに付箋風のウィンドウを表示する

JLayeredPane1

JLayeredPaneに背景画像を設定し、編集可能な色付きの付箋紙風コンポーネントを作成して追加、表示します。

JInternalFrameを一番手前に表示

LayeredPane

JLayeredPaneを使って、常に一番手前に表示されるJInternalFrameを作成します。

JInternalFrameを閉じる

CloseInternalFrame

選択中のJInternalFrameをDesktopManagerなどを使用して外部から閉じる方法をテストします。

JInternalFrameをJFrameとして表示する

Section titled “JInternalFrameをJFrameとして表示する”
JInternalFrameをJFrameとして表示する

InternalFrameTitleBar

JFrameのタイトルバーなどを非表示にし、JInternalFrameのタイトルバーでこれらを代用します。

Borderの右下にJComponentを配置

RightAlignComponentBorder

SpringLayoutを設定したJLayeredPaneを使って、Borderの右下にJComponentを配置します。

JRootPaneの背景として画像を表示

Section titled “JRootPaneの背景として画像を表示”
JRootPaneの背景として画像を表示

RootPaneBackground

JRootPaneの背景として画像を表示しています。

JRootPaneにリサイズのための装飾を設定する

Section titled “JRootPaneにリサイズのための装飾を設定する”
JRootPaneにリサイズのための装飾を設定する

WindowDecorationStyle

JFrame自体の装飾を削除し、JRootPaneにリサイズのための透明なウィンドウ装飾を設定します。

JInternalFrame間でのドラッグ&ドロップによるJTableの行入れ替え

Section titled “JInternalFrame間でのドラッグ&ドロップによるJTableの行入れ替え”
JInternalFrame間でのドラッグ&ドロップによるJTableの行入れ替え

InternalFrameDropTarget

JInternalFrame間でJTableの行をドラッグ&ドロップを使って入れ替えます。

JInternalFrameのタイトルバーに表示されるアイコンを変更する

Section titled “JInternalFrameのタイトルバーに表示されるアイコンを変更する”
JInternalFrameのタイトルバーに表示されるアイコンを変更する

InternalFrameTitleIcon

JInternalFrameのタイトルバー左上隅に表示されるアイコンを各JInternalFrame毎に設定します。

JDesktopPane内のJInternalFrameをJTabbedPaneのタブと入れ替える

Section titled “JDesktopPane内のJInternalFrameをJTabbedPaneのタブと入れ替える”
JDesktopPane内のJInternalFrameをJTabbedPaneのタブと入れ替える

SwapInternalFramesWithTabs

JDesktopPaneとJTabbedPaneをCardLayoutで切り替えるとき、その内部のJInternalFrameとタブもすべて入れ替えます。

JInternalFrameをアイコン化した場合のサイズを変更する

Section titled “JInternalFrameをアイコン化した場合のサイズを変更する”
JInternalFrameをアイコン化した場合のサイズを変更する

DesktopIconSize

JInternalFrameをアイコン化したときに使用されるJDesktopIconのサイズを変更します。

JDesktopPaneにTaskBarを配置してJInternalFrameの一覧を表示する

Section titled “JDesktopPaneにTaskBarを配置してJInternalFrameの一覧を表示する”
JDesktopPaneにTaskBarを配置してJInternalFrameの一覧を表示する

DesktopIconTaskBar

JDesktopPaneに追加されているJInternalFrameの一覧を表示するタスクバーを設定します。

JInternalFrameの縁の装飾を変更してパレット化する

Section titled “JInternalFrameの縁の装飾を変更してパレット化する”
JInternalFrameの縁の装飾を変更してパレット化する

PaletteInternalFrame

パレット化したJInternalFrameをJDesktopPaneのパレットレイヤーに追加します。

JInternalFrameの最大化、最大化からの復元イベントを取得する

Section titled “JInternalFrameの最大化、最大化からの復元イベントを取得する”
JInternalFrameの最大化、最大化からの復元イベントを取得する

InternalFrameMaximizedListener

JInternalFrameの最大化ボタン、最大化からの復元ボタンをクリックした場合のイベントを取得します。

MetalLookAndFeelのJInternalFrameタイトルバーでBumpsを非表示にする

Section titled “MetalLookAndFeelのJInternalFrameタイトルバーでBumpsを非表示にする”
MetalLookAndFeelのJInternalFrameタイトルバーでBumpsを非表示にする

DisableMetalBumps

MetalLookAndFeelのJInternalFrameでBumpsを非表示にし、フラットなタイトルバーに変更します。

JInternalFrameのタイトル文字列幅を取得し、その値でJDesktopIconの幅を調整する

Section titled “JInternalFrameのタイトル文字列幅を取得し、その値でJDesktopIconの幅を調整する”
JInternalFrameのタイトル文字列幅を取得し、その値でJDesktopIconの幅を調整する

ComputeTitleWidth

JInternalFrameのタイトル文字列幅を取得し、その値をアイコン化した場合のJDesktopIconの幅として適用します。

JInternalFrameのタイトルを左寄せに変更する

Section titled “JInternalFrameのタイトルを左寄せに変更する”
JInternalFrameのタイトルを左寄せに変更する

InternalFrameTitleAlignment

NimbusLookAndFeelを使用するJInternalFrameのタイトルを左寄せに変更します。

JInternalFrameをキー入力で移動、リサイズする

Section titled “JInternalFrameをキー入力で移動、リサイズする”
JInternalFrameをキー入力で移動、リサイズする

InternalFrameKeyInputOperation

JInternalFrameのカーソルキー入力による移動、リサイズをテストします。

MetalThemeを変更してJInternalFrameのタイトル文字色を変更する

Section titled “MetalThemeを変更してJInternalFrameのタイトル文字色を変更する”
MetalThemeを変更してJInternalFrameのタイトル文字色を変更する

MetalTheme

MetalThemeを変更してJInternalFrameのタイトル文字色やアクティブでない場合のタイトル文字色を変更します。

JDesktopPaneに適用するドラッグスタイルを変更する

Section titled “JDesktopPaneに適用するドラッグスタイルを変更する”
JDesktopPaneに適用するドラッグスタイルを変更する

DesktopPaneDragMode

JDesktopPaneのドラッグスタイルを継続的描画モードとアウトライン描画モードで切り替えます。

JDesktopPaneに配置されたすべてのJInternalFrameの表示状態を切り替える

Section titled “JDesktopPaneに配置されたすべてのJInternalFrameの表示状態を切り替える”
JDesktopPaneに配置されたすべてのJInternalFrameの表示状態を切り替える

ShowDesktop

JDesktopPaneに配置されたすべてのJInternalFrameの表示状態やアイコン化状態をまとめて切り替えます。

JInternalFrameにJPopupMenuを設定してタイトルを変更する

Section titled “JInternalFrameにJPopupMenuを設定してタイトルを変更する”
JInternalFrameにJPopupMenuを設定してタイトルを変更する

EditInternalFrameTitle

JInternalFrameのタイトルをタイトルバーやアイコン化された状態のJDesktopIconからJPopupMenuを開いて変更します。

JInternalFrameのタイトルを右ダブルクリックしても最大化しないよう設定する

Section titled “JInternalFrameのタイトルを右ダブルクリックしても最大化しないよう設定する”
JInternalFrameのタイトルを右ダブルクリックしても最大化しないよう設定する

DisableRightDoubleClickMaximize

JInternalFrameのタイトルバーをマウスの右ボタンでダブルクリックしても最大化しないよう設定します。

JDesktopPane内のJInternalFrameがカーソルキーで移動可能な範囲を変更する

Section titled “JDesktopPane内のJInternalFrameがカーソルキーで移動可能な範囲を変更する”
JDesktopPane内のJInternalFrameがカーソルキーで移動可能な範囲を変更する

DesktopMinOnScreenInsets

JDesktopPane内のJInternalFrameがカーソルキーを使用した移動で配置可能な領域をInsetsで設定します。

JInternalFrameがマウスドラッグで移動中はそのフレームを半透明に変更する

Section titled “JInternalFrameがマウスドラッグで移動中はそのフレームを半透明に変更する”
JInternalFrameがマウスドラッグで移動中はそのフレームを半透明に変更する

DragInternalFrameTranslucency

JInternalFrameがマウスドラッグで移動中の場合はそのフレームを半透明に変更して背景が確認できるよう設定します。

JInternalFrameのリサイズ中に表示されるアウトラインを点線に変更する

Section titled “JInternalFrameのリサイズ中に表示されるアウトラインを点線に変更する”
JInternalFrameのリサイズ中に表示されるアウトラインを点線に変更する

OutlineDragStroke

JInternalFrameのリサイズ中に表示されるアウトラインを色反転の直線から点線に変更してJLayer上に描画します。

JInternalFrameのタイトルパネルをフレーム原点から描画する

Section titled “JInternalFrameのタイトルパネルをフレーム原点から描画する”
JInternalFrameのタイトルパネルをフレーム原点から描画する

InternalFrameLayoutTitlePaneAtOrigin

JInternalFrameのタイトルパネルをフレーム原点から描画するかBorderを考慮した配置にするかを切り替えます。

JInternalFrameのTitleButtonでJToolTipを表示するかを切り替える

Section titled “JInternalFrameのTitleButtonでJToolTipを表示するかを切り替える”
JInternalFrameのTitleButtonでJToolTipを表示するかを切り替える

InternalFrameTitleButtonToolTipsOn

JInternalFrameのタイトルバーに配置された閉じる、最大化、最小化JButtonでJToolTipの表示・非表示を切り替えます。

JInternalFrameのTitlePaneの高さを変更

Section titled “JInternalFrameのTitlePaneの高さを変更”
JInternalFrameのTitlePaneの高さを変更

InternalFrameTitlePaneHeight

JInternalFrameの上部に配置されるタイトルバーの高さを変更します

JToggleButtonでドットインジケーターを作成する

Section titled “JToggleButtonでドットインジケーターを作成する”
JToggleButtonでドットインジケーターを作成する

DotNavigationSlideshow

JToggleButtonでドットインジケーターを作成してページ下部に配置し、マウスクリックなどでスクロールアニメーション付きの画面遷移を実行します。

JLayeredPaneに展開・折りたたみ可能なサイドメニューを追加する

Section titled “JLayeredPaneに展開・折りたたみ可能なサイドメニューを追加する”
JLayeredPaneに展開・折りたたみ可能なサイドメニューを追加する

Drawer

JPanelで作成したサイドメニューをJLayeredPaneのモーダルレイヤーに追加し、その展開および折りたたみをアニメーション付きで実行します。