|
| From: | Tom Tromey |
| Subject: | Re: [cp-patches] Patch: Scroll pane containing a JList with a preferred size. |
| Date: | 17 Jun 2005 08:17:53 -0600 |
| User-agent: | Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 |
>>>>> "Lillian" == Lillian Angel <address@hidden> writes:
A small formatting nit ...
Lillian> + if (p instanceof JScrollPane && !vd.equals( new Dimension() ))
Lillian> + ( (JScrollPane) p ).setPreferredSize( vd );
The spaces are in the wrong places here. Should be:
if (p instanceof JScrollPane && !vd.equals (new Dimension()))
((JScrollPane) p).setPreferredSize(vd);
Tom
| [Prev in Thread] | Current Thread | [Next in Thread] |