Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » what is the corresponding part of swt against the JsplitPane of swing?
what is the corresponding part of swt against the JsplitPane of swing? [message #438451] Thu, 24 June 2004 15:43 Go to next message
Eclipse UserFriend
Originally posted by: curtis.hotmail.com

what is the corresponding part of swt against the JsplitPane of swing?

and I found that Button can not be subclassed?
Re: what is the corresponding part of swt against the JsplitPane of swing? [message #438452 is a reply to message #438451] Thu, 24 June 2004 16:49 Go to previous messageGo to next message
Jeff Myers is currently offline Jeff MyersFriend
Messages: 396
Registered: July 2009
Senior Member
Curtis,

Check out org.eclipse.swt.custom.SashForm which is similar to JSplitPane.

Yes, in most cases widgets in SWT are not meant to be subclassed.

- Jeff

curtis wrote:

> what is the corresponding part of swt against the JsplitPane of swing?
>
> and I found that Button can not be subclassed?
>
Re: what is the corresponding part of swt against the JsplitPane of swing? [message #438453 is a reply to message #438451] Thu, 24 June 2004 16:52 Go to previous messageGo to next message
Jean-Christophe Deprez is currently offline Jean-Christophe DeprezFriend
Messages: 133
Registered: July 2009
Senior Member
>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<

On 6/24/2004, 8:43:59 AM, curtis@hotmail.com (curtis) wrote regarding
what is the corresponding part of swt against the JsplitPane of swing?:


> what is the corresponding part of swt against the JsplitPane of swing?

Try using SashForm.

> and I found that Button can not be subclassed?

Yeah. A bunch of this stuff cannot be subclassed. No idea why. Oh and
of course
the classes aren't marked final e.g.
public final class Button {}
so you don't get a compiler error the minute you break this rule. (
Instead there's
this silly runtime check.. )

Btw if you just want to and some simple properties to a non-subclassible
widget take a look at the Widget.setData/getData methods.

-- d
Re: what is the corresponding part of swt against the JsplitPane of swing? [message #438461 is a reply to message #438453] Thu, 24 June 2004 20:43 Go to previous message
Iran is currently offline IranFriend
Messages: 32
Registered: July 2009
Member
> Yeah. A bunch of this stuff cannot be subclassed. No idea why. Oh and
> of course
> the classes aren't marked final e.g.

I think it's because swt "talks" to OS APIs in different ways
to create visual elements. That's because we have one swt.jar
for each platform.

iran
Previous Topic:Table column headers in flat look?
Next Topic:Can toolbars exist in composites, not shell?
Goto Forum:
  


Current Time: Thu Apr 25 22:42:51 GMT 2024

Powered by FUDForum. Page generated in 0.03016 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top