Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » VE problem with javax.swing.text.DefaultStyledDocument
VE problem with javax.swing.text.DefaultStyledDocument [message #70085] Fri, 05 November 2004 17:21 Go to next message
Eclipse UserFriend
Originally posted by: nikojimandres.yahoo.com

hi there;
i have a problem when i try to view jbuilder swing code generated in the
eclipse visual editor, the problem is when the visual editor try to
evaluate objects of the class javax.swing.text.DefaultStyleDocument, the
ve can not evaluate that.

any suggestions ??
thanks
Re: VE problem with javax.swing.text.DefaultStyledDocument [message #70104 is a reply to message #70085] Fri, 05 November 2004 17:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

What is the error?

Please append a snippet of the code that gets flagged so that we can see
why it doesn't work.


--
Thanks,
Rich Kulp
Re: VE problem with javax.swing.text.DefaultStyledDocument [message #70124 is a reply to message #70104] Fri, 05 November 2004 17:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: nikojimandres.yahoo.com

the code...

...
//Create the document for the text area
DefaultStyledDocument styleDoc = new DefaultStyledDocument();
//Create the text pane and configure it
textPane = new JTextPane();
textPane.setDocument(styleDoc);
textPane.setEditable(false);
jScrollPane1=new JScrollPane(textPane);

---

the problem is that in canŽt visualize the design, it appears an 'i' icon
where the tooltip is 'java.lang.InstantiationException() (IWAV0125E
"styleDoc is too complicated too be evaluated)'...

but if i run the code i see the design whithout problems... but i canŽt
visualize in the design mode...

thanks,


Rich Kulp wrote:

> What is the error?

> Please append a snippet of the code that gets flagged so that we can see
> why it doesn't work.
Re: VE problem with javax.swing.text.DefaultStyledDocument [message #70161 is a reply to message #70124] Fri, 05 November 2004 18:47 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Change the line to:

> DefaultStyledDocument styleDoc = new DefaultStyledDocument(); // @jve:decl-index=0

At the moment we aren't smart enough to know that styleDoc is something
of interest. The comment on the end tells us that it is.

--
Thanks,
Rich Kulp
Re: VE problem with javax.swing.text.DefaultStyledDocument [message #602640 is a reply to message #70085] Fri, 05 November 2004 17:25 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

What is the error?

Please append a snippet of the code that gets flagged so that we can see
why it doesn't work.


--
Thanks,
Rich Kulp
Re: VE problem with javax.swing.text.DefaultStyledDocument [message #602646 is a reply to message #70104] Fri, 05 November 2004 17:52 Go to previous message
Eclipse UserFriend
Originally posted by: nikojimandres.yahoo.com

the code...

...
//Create the document for the text area
DefaultStyledDocument styleDoc = new DefaultStyledDocument();
//Create the text pane and configure it
textPane = new JTextPane();
textPane.setDocument(styleDoc);
textPane.setEditable(false);
jScrollPane1=new JScrollPane(textPane);

---

the problem is that in canŽt visualize the design, it appears an 'i' icon
where the tooltip is 'java.lang.InstantiationException() (IWAV0125E
"styleDoc is too complicated too be evaluated)'...

but if i run the code i see the design whithout problems... but i canŽt
visualize in the design mode...

thanks,


Rich Kulp wrote:

> What is the error?

> Please append a snippet of the code that gets flagged so that we can see
> why it doesn't work.
Re: VE problem with javax.swing.text.DefaultStyledDocument [message #602656 is a reply to message #70124] Fri, 05 November 2004 18:47 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Change the line to:

> DefaultStyledDocument styleDoc = new DefaultStyledDocument(); // @jve:decl-index=0

At the moment we aren't smart enough to know that styleDoc is something
of interest. The comment on the end tells us that it is.

--
Thanks,
Rich Kulp
Previous Topic:VE problem with javax.swing.text.DefaultStyledDocument
Next Topic:VE confuses SWT with AWT
Goto Forum:
  


Current Time: Sat Jul 27 18:32:27 GMT 2024

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

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

Back to the top