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 06:46 Go to next message
Prithviraj Patil is currently offline Prithviraj Patil
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 07:02]

Report message to a moderator

Re: Swing + RCP problem [message #737387 is a reply to message #652692] Fri, 14 October 2011 20:52 Go to previous messageGo to next message
rockcoder  is currently offline rockcoder
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.

Before:
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();
panel.add(jTextField);
jPanel.add(panel);

So, the original layout was not affected.


Re: Swing + RCP problem [message #752003 is a reply to message #737387] Wed, 26 October 2011 04:34 Go to previous message
vanessa_frsb is currently offline vanessa_frsb
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 |
SWT.NO_BACKGROUND);
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: Thu Apr 17 17:33:25 EDT 2014

Powered by FUDForum. Page generated in 0.01494 seconds