JDK-4845535 : isFrameStateSupported does not return the correct value with Mantis on Gnome Sol
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.4.2
  • Priority: P4
  • Status: Closed
  • Resolution: Not an Issue
  • OS: solaris,solaris_9
  • CPU: generic,sparc
  • Submitted: 2003-04-09
  • Updated: 2003-05-26
  • Resolved: 2003-04-10
Related Reports
Relates :  
Relates :  
Description
J2SDK          : JDK1.4.2 b19,  
Platform       : Sparc/x86 Solaris9, 
Session        : Gnome Desktop2.0   
switch/Mode    : -client, -server
testbase       : /net/sqesvr/export/st2/suites/mantis/awt
TestProgram    :
-AWT_Merlin_WS/ZoomFrame/src/Interactive/Frame/ChangeStateTest
 

Reproduce to:
Compile ChangestateTest.java then execute "appletviewer ChangestateTest.html"
on Gnome Solaris.

After launch this test program on Gnome Solaris, buttons displays in
test frame as like as below.

[ICONIFY] [NORMAL] [MAX_HOR] [MAX_VER] [MAX_BOTH]

*[ICONIFY] [NORMAL] is supported on Windows,Solaris,Linux.
*[MAX_HOR] [MAX_VER] [MAX_BOTH] are supported on Windows platform,
                                not supported on Solaris(CDE),Linux.


If execute test program on CDE (Common Desktop Environment) Solaris and 
Linux(Gnome), return the message that "not supported in this platform"
when select buttons 
[MAX_HOR] (Frame.MAXIMIZED_HORIZ) 
[MAX_VER] (Frame.MAXIMIZED_VERT)
[MAX_BOTH] (Frame.MAXIMIZED_BOTH)

But Gnome desktop on Solaris8,9 both Sparc,x86 with jdk1.4.1,jdk1.4.2(b19), these three buttons [MAX_HOR] [MAX_VER] [MAX_BOTH] responds and does not return
the message "not supported in this platform". 

CDE and Linux are not supported this [MAX_HOR] [MAX_VER] [MAX_BOTH], Gnome on Solaris also should not be supported.  

Comments
EVALUATION Name: vuR10080 Date: 04/10/2003 ###@###.### 2002-04-10 Not a bug. As noted, common behaviour is not required. Toolkit's isFrameStateSupported method can be used (and *is* used by the test) to find out which state the WM supports. MAX_VERT/MAX_HORIZ buttons should not be enabled (compare 4845549) because Metacity doesn't support unidirectional maximization - but that's reported as 4795485 and is fixed. ======================================================================
11-06-2004