Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I might misunderstand your problem. Have you tried to look at the setSelected() method of JIF? It seems there are support for method override and vetoable activation events.</p> <p><strong>Edit:</strong> Maybe we have some terminological misunderstanding as the javadoc states:</p> <pre><code>/** * Selects or deselects the internal frame * if it's showing. * A &lt;code&gt;JInternalFrame&lt;/code&gt; normally draws its title bar * differently if it is * the selected frame, which indicates to the user that this * internal frame has the focus. * When this method changes the state of the internal frame * from deselected to selected, it fires an * &lt;code&gt;InternalFrameEvent.INTERNAL_FRAME_ACTIVATED&lt;/code&gt; event. * If the change is from selected to deselected, * an &lt;code&gt;InternalFrameEvent.INTERNAL_FRAME_DEACTIVATED&lt;/code&gt; event * is fired. * * @param selected a boolean, where &lt;code&gt;true&lt;/code&gt; means this internal frame * should become selected (currently active) * and &lt;code&gt;false&lt;/code&gt; means it should become deselected * @exception PropertyVetoException when the attempt to set the * property is vetoed by the &lt;code&gt;JInternalFrame&lt;/code&gt; * * @see #isShowing * @see InternalFrameEvent#INTERNAL_FRAME_ACTIVATED * @see InternalFrameEvent#INTERNAL_FRAME_DEACTIVATED * * @beaninfo * constrained: true * bound: true * description: Indicates whether this internal frame is currently * the active frame. */ </code></pre> <p><strong>Edit 2:</strong> Now I re-read your 2nd case. I would say each JIF has its own separated focus/selection environment. You could create a method which traverses all your JIFs and deselects anything in it unless its the component you wanted to be selected.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload