File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes How I expose Java API in textarea for developing java editor Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How I expose Java API in textarea for developing java editor" Watch "How I expose Java API in textarea for developing java editor" New topic
Author

How I expose Java API in textarea for developing java editor

sunil antil
Greenhorn

Joined: Jul 23, 2009
Posts: 20
Hi
i am sunil developing a java editor. i face following problem. please help me as fast as possible. i am very much thankful. i am waiting for a good answer and saying thanks in advance.

i am developing a java editor . please tell me how expose the java api in my TextArea. thats mean as more advance editor give the suggestions when we write (.) after class name or object. for example

if i write:- obj. [Then suggestion for methods comes after (.)]


Ex. let obj is of type Object class then after dot(.) methods like toString(), equls() etc comes in a drop down list.....
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4530
    
    5

Search the net for java autocomplete.


luck, db
There are no new questions, but there may be new answers.
Matthew Brown
Bartender

Joined: Apr 06, 2010
Posts: 4370
    
    8

That sounds a seriously non-trivial requirement. I'm not sure exactly how I'd go about doing it, but the first step is that you're going to need a Java parser/compiler so that it can understand the text that has been typed in and knows the context of the current cursor position. I wouldn't have thought that getting the drop-down list to appear would be the hard bit. The hard bit will be working out what should be in that list.
sunil antil
Greenhorn

Joined: Jul 23, 2009
Posts: 20
thanks for reply i search java autocomplete. but did not get any meaningful result. please tell me is there any api for autocomplete for java api.... or i have to do manually. if i have to do manually then please provide me hint...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How I expose Java API in textarea for developing java editor