Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Swing + RCP problem(JTextField non editable on embedding it into RCP view)
Swing + RCP problem [message #652692] Sat, 05 February 2011 11:46 Go to next message
Prithviraj Patil is currently offline Prithviraj PatilFriend
Messages: 10
Registered: February 2011
Junior Member
I have added a swing JTextField / JTextArea to a RCP view ..however on adding the JTextField / JTextArea .. it cannot be edited that is i am unable to edit / add values to the JTextField / JTextArea

[Updated on: Sat, 05 February 2011 12:02]

Report message to a moderator

Re: Swing + RCP problem [message #737387 is a reply to message #652692] Sat, 15 October 2011 00:52 Go to previous messageGo to next message
rockcoder  is currently offline rockcoder Friend
Messages: 1
Registered: October 2011
Junior Member
It's a Defect in SWT_AWT bridge.
Add JTextField on Panel instead JPanel can solve this trouble.

JPanel jPanel = new JPanel();
JTextField jTextField = new JTextField();
jPanel.add(jTextField );

After encapsulated´╝Ü
JPanel jPanel = new JPanel();
JTextField jTextField = new JTextField();
Panel panel = new Panel();

So, the original layout was not affected.

Re: Swing + RCP problem [message #752003 is a reply to message #737387] Wed, 26 October 2011 08:34 Go to previous message
vanessa_frsb is currently offline vanessa_frsbFriend
Messages: 2
Registered: September 2011
Junior Member
Hi all,

I am a beginner and have a theoretical question: If I want to embemb a JFrame in a RCP aplication does it has to be a simple JFrame and so do I make a bridge like this:

Composite composite = new Composite (parent, SWT.EMBEDDED |
Frame frame = SWT_AWT.new_Frame (composite);
MyFrame JFrame = new JFrame ();
frame.add (MyFrame);

or can I have in my JFrame: JLists, ScrollPane and JButtons?
is that until now I have been trying for a JFrame with all these components in an RCP View and it is not working.
Previous Topic:How to switch off lazy loading of views in perspective folder
Next Topic:How to add custom menu item to the windows popup menu in a Text?
Goto Forum:

Current Time: Sat Jun 23 06:42:21 GMT 2018

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

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

Back to the top