Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Styles in Groups.
Styles in Groups. [message #467365] Mon, 30 January 2006 13:29 Go to next message
lolo is currently offline loloFriend
Messages: 8
Registered: July 2009
Junior Member
All the styles are seen equals, in linux and windows.
This is a snippet:

import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Group;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Shell;

public class Prueba {
public static void main(String[] args) {
Display display = new Display();
Shell shell = new Shell(display);
shell.setLayout(new FillLayout());
Group g = new Group(shell, SWT.SHADOW_ETCHED_OUT);
// Group g = new Group(shell, SWT.SHADOW_ETCHED_IN);
// Group g = new Group(shell, SWT.SHADOW_IN);
// Group g = new Group(shell, SWT.SHADOW_OUT);
// Group g = new Group(shell, SWT.SHADOW_NONE);
g.setLayout(new FillLayout());
g.setText("Group");
Label l = new Label(g, 0);
l.setText("Dentro");
l.pack();
g.pack();
shell.pack();
shell.open();
while (!shell.isDisposed()) {
if (!display.readAndDispatch())
display.sleep();
}
display.dispose();
}
}

Switching the uncommented line make no effect
Re: Styles in Groups. [message #467390 is a reply to message #467365] Mon, 30 January 2006 20:39 Go to previous messageGo to next message
Daniel Spiewak is currently offline Daniel SpiewakFriend
Messages: 263
Registered: July 2009
Senior Member
From the API javadoc:<i>

Shadow styles are hints and may not be honoured by the platform. To create a group with the default shadow style for the platform, do not specify a shadow style. </i>

Have you tried it on Mac or Motif?
Re: Styles in Groups. [message #467424 is a reply to message #467390] Tue, 31 January 2006 08:23 Go to previous message
lolo is currently offline loloFriend
Messages: 8
Registered: July 2009
Junior Member
No, I'm only tried on linux and windows

Thanks for your answer.

Daniel Spiewak wrote:

> From the API javadoc:<i>
>
> Shadow styles are hints and may not be honoured by the platform. To create
> a group with the default shadow style for the platform, do not specify a
> shadow style. </i>
>
> Have you tried it on Mac or Motif?
Previous Topic:KTable merging mechanism help!!
Next Topic:KTable Combo renderer
Goto Forum:
  


Current Time: Fri Apr 19 20:49:54 GMT 2024

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

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

Back to the top