Results 1 to 4 of 4
- 01-12-2010, 12:06 PM #1
Member
- Join Date
- Jan 2010
- Posts
- 2
- Rep Power
- 0
swt Display and Shell in JTabbedPane : Jintilla
Hello,
i'm currently developping a color syntax editor, in i want to use JIntilla wich is a JNI interface of Scintilla control.
I would like to show a composite draw inside a pane of a JTabbedPane :
my question is : how to replace ( connect ) Display and shell by a standard panel ?
sample code of Jintilla interface that i would like to integrate in JPanel:
public static void main (String args[]) {
Display display = new Display();
Shell shell = new Shell(display);
shell.setSize(new org.eclipse.swt.graphics.Point(580, 394));
shell.setText("Scintilla Test");
GridLayout gridLayout = new GridLayout();
shell.setLayout(gridLayout);
gridLayout.marginWidth = 0;
final Scintilla scintilla = new Scintilla(shell, SWT.NONE);
scintilla.setFocus();
...
shell.layout();
shell.open();
while (!shell.isDisposed()) {
if (!display.readAndDispatch()) display.sleep();
}
display.dispose();
}
Thank you for your help !!!!
Fred
- 01-12-2010, 11:41 PM #2
since i discovered this page, maybe it can help
linkLast edited by AndreB; 01-12-2010 at 11:44 PM.
"There is no foolproof thing; fools are too smart."
"Why can't you solve my Problem ?"
- 01-13-2010, 11:06 AM #3
Member
- Join Date
- Jan 2010
- Posts
- 2
- Rep Power
- 0
Great link !!
Thank you for the link, i will inverstigate for this bridge.
I develop my application with Swing and i try to integrate SWT components.
I think i'm wrong : i must develop an SWT application that integrate Swing components !!!
Thank you !
Fred
- 01-13-2010, 11:11 AM #4
then the SWT_AWT bridge should help.
in my experience however it works only on standard java awt components (and it makes trouble with swing)
so no prefuse, proccessing or any other 3rd party library will work properly. But i may be wrong"There is no foolproof thing; fools are too smart."
"Why can't you solve my Problem ?"
Similar Threads
-
Traversing a JTabbedPane
By Inks in forum AWT / SwingReplies: 12Last Post: 03-11-2009, 06:15 AM -
How to use JTabbedPane
By Java Tip in forum javax.swingReplies: 0Last Post: 06-27-2008, 08:50 PM -
How to handle each display/shell dialog box (not knowed) and choose default answer
By lenar in forum SWT / JFaceReplies: 0Last Post: 04-04-2008, 01:15 AM -
Help with JTabbedPane
By lenny in forum SWT / JFaceReplies: 1Last Post: 08-07-2007, 07:18 AM -
Same component on all JTabbedPane
By java_novice in forum AWT / SwingReplies: 4Last Post: 08-06-2007, 10:09 AM
Bookmarks