Question to GUI Gurus

Hello,

As I am an Idea fan (as all of you) I was trying to imitate some of the
nice features to provide better usability for my code.

I would like to ask you GUI Guru out there (yes You) about the best way
to make something like the popup Text box that Idea uses for searching like
"Ctrl+N".

I have a large tree with lots of information, and I would like to offer
the user the ability to type the name of the item to select it in the tree.
I did the search part, so the user can now type and select, but I would like
to allow him to see what he is typing, What is the best way to do so?

--
Best Regards,
Mamado.


10 comments

shouldn't this be a job for the PLUS plugin?

Sven

Mamado wrote:

Hello,

As I am an Idea fan (as all of you) I was trying to imitate some of
the
nice features to provide better usability for my code.

I would like to ask you GUI Guru out there (yes You) about the best
way
to make something like the popup Text box that Idea uses for searching
like "Ctrl+N".

I have a large tree with lots of information, and I would like to offer
the user the ability to type the name of the item to select it in the
tree. I did the search part, so the user can now type and select, but I
would like to allow him to see what he is typing, What is the best way to
do so?


0

shouldn't this be a job for the PLUS plugin?


If someone tald me, that functionality is required, i will think about it :))

But... maybe you just want to use "com.intellij.ide.util.gotoByName.ChooseByNameBase" class? ;)

Thanks!

0

I didn't want force you to implement it, but think its a good place to store
the code into...

Sven
Alexey Efimov wrote:

>> shouldn't this be a job for the PLUS plugin?
>>


If someone tald me, that functionality is required, i will think about it
:))

But... maybe you just want to use
"com.intellij.ide.util.gotoByName.ChooseByNameBase" class? ;)

Thanks!


0

Absolutly agree with you!
But i still not clear understand "what is" needed :)

0

As I Mamado understood correctly:

a service method that presents a dialog for browsing for classes of the
project and resturing the virtual file ?

Am I correct Mamado?

Sven
Alexey Efimov wrote:

Absolutly agree with you!
But i still not clear understand "what is" needed :)


0

As I Mamado understood correctly:

a service method that presents a dialog for browsing for classes of the
project and returning the virtual file ?

Am I correct Mamado?

Sven
Alexey Efimov wrote:

Absolutly agree with you!
But i still not clear understand "what is" needed :)


0

On Thu, 11 Mar 2004 12:40:01 +0100, Sven Krause wrote:

As I Mamado understood correctly:

a service method that presents a dialog for browsing for classes of the
project and returning the virtual file ?


I understood the request to be about providing the functionality in some
other application Mamado is writing, not about accessing it in IDEA.

--
Mark Scott

0

To me it seems that a layered panes is the way to go.

The main control where the user writes the filename looks like a
textfield inside a layered pane.

The dropdown looks like a jlist inside another layered pane.

The up/down keys in the textfield are being intercepted and
redispatched/interpreted to change the selected line in the list.



Look into:

http://java.sun.com/docs/books/tutorial/uiswing/components/rootpane.html

http://java.sun.com/docs/books/tutorial/uiswing/components/layeredpane.h
tml

0

There are a number of ways to do this, but I've implemented a similar
control using a Popup and a JList, borrowing a lot of ideas (and code
snippets) from JComboBox. I suggest you look in there, after all it's
just an editable combo with no button that is dropping down of it's own
accord.

N.

Carlos Costa e Silva wrote:

To me it seems that a layered panes is the way to go.

The main control where the user writes the filename looks like a
textfield inside a layered pane.

The dropdown looks like a jlist inside another layered pane.

The up/down keys in the textfield are being intercepted and
redispatched/interpreted to change the selected line in the list.



Look into:

http://java.sun.com/docs/books/tutorial/uiswing/components/rootpane.html

http://java.sun.com/docs/books/tutorial/uiswing/components/layeredpane.h
tml

0

Thank you very much for all your valuable feedback.

It would be great to have this feature in PLUS, to make it easier for all of
us to use from inside IDEA plugins.

As Mark said, I want to to use (imitate, please forgive me Jetbrains :) the
behavior of a popup textbox to search a tree or a list, in another
application (not IDEA plugin)

Carlos suggested to look in the LayeredPane tutorial, and it seems a good
point to start, Thank you Carlos.

Alsow Nathans suggestion is very nice, I will look into that too, Thank you
all again.
--
Best Regards,
Mamado.

"Mark Scott" <intellij_news@codebrewer.com> wrote in message
news:pan.2004.03.11.11.50.02.119464@codebrewer.com...

On Thu, 11 Mar 2004 12:40:01 +0100, Sven Krause wrote:

>

As I Mamado understood correctly:

>

a service method that presents a dialog for browsing for classes of the
project and returning the virtual file ?

>

I understood the request to be about providing the functionality in some
other application Mamado is writing, not about accessing it in IDEA.

>

--
Mark Scott



0

Please sign in to leave a comment.