Message from discussion
How can I maximize a newly created window of network view?
Received: by 10.68.213.68 with SMTP id nq4mr2744822pbc.2.1329371087568;
Wed, 15 Feb 2012 21:44:47 -0800 (PST)
X-BeenThere: cytoscape-discuss@googlegroups.com
Received: by 10.68.237.10 with SMTP id uy10ls7334946pbc.3.gmail; Wed, 15 Feb
2012 21:44:45 -0800 (PST)
MIME-Version: 1.0
Received: by 10.68.225.234 with SMTP id rn10mr924318pbc.1.1329371085234; Wed,
15 Feb 2012 21:44:45 -0800 (PST)
Authentication-Results: ls.google.com; spf=pass (google.com: domain of
kna...@gmail.com designates internal as permitted sender)
smtp.mail=kna...@gmail.com; dkim=pass
header...@gmail.com
Received: by n4g2000pbl.googlegroups.com with HTTP; Wed, 15 Feb 2012 21:44:45
-0800 (PST)
Date: Wed, 15 Feb 2012 21:44:45 -0800 (PST)
In-Reply-To: <268dffb9-04d9-4034-aeb9-d7a00bffb7bc@ow3g2000pbc.googlegroups.com>
References: <d9c69349-c218-4659-8e3e-df5c351267ce@h6g2000yqk.googlegroups.com> <268dffb9-04d9-4034-aeb9-d7a00bffb7bc@ow3g2000pbc.googlegroups.com>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8)
AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.46 Safari/535.11,gzip(gfe)
Message-ID: <e98d7005-9113-4afb-9a84-97d763253105@n4g2000pbl.googlegroups.com>
Subject: Re: How can I maximize a newly created window of network view?
From: Knacky <kna...@gmail.com>
To: cytoscape-discuss <cytoscape-discuss@googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
I will try it. Thank you very much for your help!
Knack
On Feb 14, 9:56=A0am, "penwang2...@gmail.com" <penwang2...@gmail.com>
wrote:
> I think this is a bug. I could reproduce the problem on my Windows 7.
> If I set the Cytoscape property "maximizeViewOnCreate" to true, not
> always work.
>
> The work-around is to get the JInternalFrame and maximize it,
>
> javax.swing.JInternalFrame f =3D
> Cytoscape.getDesktop().getNetworkViewManager().getInternalFrame(view);
> try {
> =A0 =A0f.setMaximum(true);}
>
> catch (Exception ex)
> {}
>
> Peng
>
> On Feb 2, 1:23=A0am, Knacky <kna...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Hello Everyone,
>
> > I am creating a plugin of Cytoscape 2.8 and want to create a new
> > network view, whose window is maximized immediately after created.
> > I run my plugin on Mac and it works fine--maximized every time a new
> > view is created.
> > However, when I run it on Windows, sometimes it is maximized, but
> > sometimes it doesn't.
> > Does anyone have a clue about which part of the code I should take
> > care for this difference?
> > BTW, I use an expression
> > CytoscapeInit.getProperties().setProperty("maximizeViewOnCreate",
> > "true");
> > every time BEFORE creating a new network view.
>
> > Do I have to use other expressions to specify the maximization?
>
> > Thank you very much in advance.