Missing the maximize Button for undocked Modes?

Sometimes you want to open one of your TopComponents separate from the MainWindow. The trick is to create a Mode with state “separate” instead of “joined”. Geertjan has a nice blog enry about this. If you do this, on Mac you’ll get a Maximize button for your undocked mode Frame all the time, but on Windows, it might be missing. So if you’re wondering how to get it back you came to the right place :-).

Your Mode definition probably looks similar to this:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mode PUBLIC "-//NetBeans//DTD Mode Properties 2.0//EN" "http://www.netbeans.org/dtds/mode-properties2_0.dtd">

<mode version="2.0"><name unique="myMode" />
<kind type="view" />
<state type="separated" />
<path orientation="horizontal" number="0" weight="1" />
<path orientation="vertical" number="0" weight="1" />
<bounds x="150" y="150" width="1200" height="660" />
 <frame state="0"/>
 <empty-behavior permanent="true" />

You just need to change the “kind” from type=”view” to type=”editor”. This will do the trick and display the “maximize” button.

Dieser Eintrag wurde in netbeans geschrieben. Link merken.

Hinterlasse eine Antwort

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind markiert *

Du kannst folgende HTML-Tags benutzen: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>