Results 1 to 4 of 4
  1. #1
    Sureshgurram is offline Member
    Join Date
    Oct 2008
    Posts
    8
    Rep Power
    0

    Default SWT_AWT bridge ,jtextfield edit problem

    Hi All,
    I am using SWT_AWT bridge in my code to embed swing components in to SWT Composite.
    I am using SWT_AWT bridge frame and adding JTextfield to it, My problem is that the JTextfield which i have added is not allowing me to enter any values in it.Please help.

    Sample code

    Composite composite=new Composite(shell,SWT.EMBEDDED);
    java.awt.Frame frame = SWT_AWT.new_Frame(composite);
    JApplet applet=new JApplet();
    JTextField textfield=new JTextField();
    applet.add(textfield);
    frame.add(applet);

    Thanks in advance.

  2. #2
    popol is offline Member
    Join Date
    Dec 2008
    Posts
    2
    Rep Power
    0

    Default Any news ?

    Hi, I have the same problem and wanted to know if you sold it... and how...
    Thank you for your answer.

  3. #3
    Sureshgurram is offline Member
    Join Date
    Oct 2008
    Posts
    8
    Rep Power
    0

    Default

    Dont use the frame to directly add the jtextfields, insted u can add JApplet to the frame , and add Jtextfield to the JApplet.
    This should solve the problem

  4. #4
    popol is offline Member
    Join Date
    Dec 2008
    Posts
    2
    Rep Power
    0

Similar Threads

  1. Edit Command
    By viji83 in forum New To Java
    Replies: 1
    Last Post: 08-15-2008, 04:26 AM
  2. Conference Bridge 0.1
    By Java Tip in forum Java Software
    Replies: 0
    Last Post: 06-26-2008, 07:19 PM
  3. SWT & Swing Bridge problem
    By roshithmca in forum AWT / Swing
    Replies: 0
    Last Post: 03-26-2008, 02:23 PM
  4. Can't edit JTextField after modal dialog
    By JavaNerd in forum Java Applets
    Replies: 0
    Last Post: 02-07-2008, 10:11 PM
  5. Using JDBC-ODBC bridge
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 02-06-2008, 10:21 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •