How to add intellisense to a search line in java swing

安稳与你 提交于 2019-12-13 17:16:08

问题


This is my first time with intellisense so please go easy on me :)

I'm using Java swing for building a search engine for viewing XML files .

At the moment the XML file is uploaded and searched successfully , however I still

would like to add the intellisense element to the project .

It's very hard to be specific since the code is pretty big , then I'll do my best to be

as specific as I could .

Here is a visual picture of the XML search engine :

Now , after the user uploaded the XML file (using the open button on the left)

he enters a query in the **current path:* box . Each part of the query is separated via / , hence what I want is to give to the user my options when he hits / , which they are :

String[] axesTypes = {"child::", "attribute::", "descendant::",
                                        "descendant-or-self::", "slef::", "parent::",
                                        "following-sibling::", "preceding-sibling::",
                                        "ancestor-or-self::", "ancestor::", "following::",
                                        "preceding::" ,"preceding::", "namespace::", "node()"};

I'd appreciate if someone can give an explanation regarding how to add that element to my project .

If you need me to post the code - please say so , and I would .

Regards

来源:https://stackoverflow.com/questions/10911554/how-to-add-intellisense-to-a-search-line-in-java-swing

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!