Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

11998 Posts in 1588 Topics- by 3508 Members - Latest Member: PienueDut

26. May 2012, 11:49:35 am
Xith3D CommunityGeneral CategorySupport (Moderator: Marvin Fröhlich)Frame undecorated
Pages: [1]
Print
Author Topic: Frame undecorated  (Read 308 times)
elijah
Enjoying the stay
*
Offline Offline

Posts: 72


View Profile
« on: 14. June 2009, 12:45:15 am »

Hi there,

I just found a bug.

When you create a frame without a title New Frame( width, height ) and then later called setTitle("ABC"). When you run the program it will throw a exception undecorated window

Solution is new Frame( width, height, "ABC" );

I love the new hud. Good work Marvin.
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #1 on: 14. June 2009, 12:51:51 am »

I just found a bug.

When you create a frame without a title New Frame( width, height ) and then later called setTitle("ABC"). When you run the program it will throw a exception undecorated window

Solution is new Frame( width, height, "ABC" );

It's not a bug, it's a feature... honestly Wink. The exception is not an unexpected NPE or something like that, it's an exception, that tells you, what's up. It's enough to pass an empty String to the Frame's constructor.

I love the new hud. Good work Marvin.

Thanks Smiley.

Marvin
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic