English 中文(简体)
JPANEL的SWT当量
原标题:SWT Equivalent of JPANEL
  • 时间:2011-02-11 16:37:40
  •  标签:
  • swt
  • jlabel

SWT中的JPanel的等价物是什么?

最佳回答

最初的问题是关于SWT等价于JLabel的问题。

还有一个org.eclipse.swt.custom.CLabel

SWT相当于JPanelorg.eclipse.swt.widgets.Composite组织

问题回答

您可能需要查看由IBM编译的功能比较表(请参见页面底部)详细说明了AWT、Swing和SWT中的相关选项。

The equivalent of a JPanel in SWT is a Composite, CLabel or Canvas depending on what you want to achieve. NB: The eclipse SWT API is a bit temperamental.

@如果您想要JLabel属性,Gilbert_Le_Blanc是正确的。我推荐功能比较表,看看你需要什么。





相关问题
SWT version of: getOppositeComponent on focus change

In Swing you can get "the other Component involved in this focus change" from this: getOppositeComponent. There does not seem to be a similar call in SWT, does anyone have a workaround or fix for this?...

Styling a SWT label to be italic

How would I go about styling a SWT label created along the following lines so it is displayed italicised? Label label = formToolkit.createLabel(composite, "My label name");

Lazy and Deferred TreeViewer questions

I have actually two questions but they are kind of related so here they go as one... How to ensure garbage collection of tree nodes that are not currently displayed using TreeViewer(SWT.VIRTUAL) and ...

add toolbar to section

I want to add a toolbar to a section in SWT. There is an example i saw in the PDE manifest editor. How can i add this toolbar or buttons? maybe i need to use a different control? Thank you, Ido

Create a custom button with SWT

I would like to ask the same thing than this question but using SWT: Is there a way to make a Button with your own button graphic not just with an image inside the button? If not is another way to ...

Mouse events on an SWT Scrollbar

Using standalone SWT Scrollbars is something of a hack (using this workaround), but it can be done. Here s a snippet: ScrolledComposite scrolledComposite = new ScrolledComposite( ...

SWT Cross-Platform Enter Detection

I have a global filter (Display.addFilter) in SWT in which I want to detect Enter key. In Windows, pressing Enter generates SWT.CR in keyCode part of KeyListener event. Is this assumption safe for ...

热门标签