Double click for JList items selection
I would like to select JList items only by double clicking on them. I can write a mouse listener for detecting double clicks by my own (and handle it afterwards), by please tell me how to turn the default behavior off (selecting items by clicking one time).
Thanks in advance
Marek
I would like to select JList items only by double clicking on them. Well the standard is to select or highlight on a mouseClick or by using the arrow keys on the keyboard.
Then once you have a selected item you can perform and Action on the item by double clicking or by using the enter key. Remember you should always be able to use either the keyboard or the mouse to perform any given function.
This posting shows my solution for the above scenario:
http://forum.java.sun.com/thread.jspa?forumID=57&threadID=626866
Similar Messages
-
My computer had to be shut down this morning when I could move my mouse around but it would not respond when I double clicked on an item to select. Now I cannot open a file in my finder window by double clicking on it. Any suggestions?
Did you reinstall CS3 after CC?
For that matter, doing an in-place upgrade on the OS is always a gamble with Adobe programs. Reinstalling all the versions you need, in order, would probably solve your problem.
And you shouldn't need to save as IDML after opening the .inx in CC. -
Hi,
I'm just trying to perform an action by double-clicking a list item, but doesn't seem to work. code:
WHEN-MOUSE-DOUBLE-CLICK trigger on List item (TList).
DECLARE
v_verwalten VARCHAR2(40);
BEGIN
v_verwalten := :CONTROL.LIST;
IF v_verwalten = 'Codes verwalten'
THEN NEW_FORM('COD_VER');
END IF;
END;Hi all,
When the list item type is tlist, the trigger 'WHEN-LIST-ACTIVATED' will fire for "mouse double click" and "key enter".
Try with placing the code in 'WHEN-LIST-ACTIVATED' trigger.
Cheers,
Zakiy -
I have Thunderbird 24.5.0. When I double click the desktop item to open it up, it opens immediately, but when I'm in the main page with all the folders on the left & the corresponding email details on the right of that same page, it seems to have problems. Before, when I would highlight a certain box / folder (whether it would b “inbox”, “sent” folder, “trash” folder, or whatever, it takes a good 5 min (minimum) to open that certain folder so I can see the emails of that folder.
Can u help me determine what is causing this? Just 3 days ago, it was fine.
Thank youWhat is your anti-virus software?
-
When i double click on an item in the firefox dowloads window the item dos'nt open.Left clicking on the item dose not give me the choice to "open" the item.
the downloaded item is a pdf file of 59 kb, and was downloaded using adobe acrobat version 5I have sort of the exact same problem. Extremely far away from user friendly
I have an second issue as well: When I hook off all-day it comes up with an 8 hour event!
And then if I put in a late start hour it pushes end time to next day due to the 8 hour event suggestion.
All in all this gives a lot of changes just to enter an event.
Command N
I learnt from your input to use this fuction. At least that comes up with a one hour event as default. -
Blocks in standalone applications which can be double clicked for changing parameters
Can we have blocks in standalone applications which can be double clicked for changing parameters.
something like an options/configure button which opens another window and helps us to change tha parameters of that particular
block.Well, you will need to program your application that way. Maybe I am not understanding this correctly but what parameters do you want to change in your standalone application?
Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies -
I can open only 1 browser window and I can't open another or multiple windows by double clicking Firefox icon or selecting NEW WINDOW from the file menu.
Looking forward to your earliest reply.
Thanks and regards,
SherazDo you have that problem when running in the Firefox SafeMode? <br />
[http://support.mozilla.com/en-US/kb/Safe+Mode] <br />
''Don't select anything right now, just use "Continue in SafeMode."''
If not, see this: <br />
[http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes] -
My 4s suddenly tells me to double click for all functions. How do I revert to normal functions please?
https://sites.google.com/site/appleclubfhs/support/advice-and-articles/voiceover -on-off
(Note that my links to other pages may promote my organization, and this should not be taken as an endorsement by Apple) -
I have to double click for clicking, and cannot drag and select.
Hello
Yesterday my mouse went out of batteries, and i put a fresh new ones in (have tried a lot new), nothing works.
After that happened my mouse has been wierd.
- I have to doubleclick to click.
- When i select a text, it removes what i have selected after 1-2 seconds, like i click on the mouse again.
- I have to doubleclick on all elements to click them.
It's so annoying, and i don't know what to do.
- I have upgraded the newest LION OS - didn't work.
- I tried remove all startup programs - didn't work.
- I tried removing unierval access from other devices - didn't work.
- I tried restarting my computer - didnt work
- I tried scanning my computer via. CCleaner - didn't work.
What to do??Check your settings in System Preferences > Mouse
-
I am using a JList, and I would like to select certain items in the list. Right now I am doing it by passing the constructor an array of int indecies that correspond to the items I want selected.
What I would really like to do, is have one item selected in red and the others selected the way they are. Or the other way around. I just want different color selections. I'm pretty sure I can not do this, but I just wanted to see if you guys (and gals) had any ideas.
The other idea I had was to use a JPanel, and then use drawString to list the items, then capture the mouse click, find what item was selected, and then paint that rectangle the color I want.Hi
You need to write a custom ListCellRenderer and set that for the list using: list.setCellRenderer(someCellRenderer); Once you have done that, populate the list with items (i.e. instances of a class which you created) that define whether the list item being drawn should be drawn using a red foreground. The renderer will need to check and see if the list item boolean value for painting in red is true, and if so set the foreground to red, otherwise use the default foreground color.
Sorry if this sounds cryptic but I can't devote any more time to helping you out. Best of luck.
cheers,
Greg -
Iphoto wont play movie files and wont double click for zoom or edit
Hi i bought my first ever macbook a week ago,love everything on it,iphoto worked well but today i wanted to show someone a movie file on my camea which i have in my iphoto libray clicked on it and it usually opens,today nothing!!! this file has opened loads before because its a holiday movie, loads of people have seen it but now nothing.
Also my double click to zoom or edit preference seems to do nothing whichever box you check in preffence nothing happens.
Being new to mac i hope i can find some answers!!
ChrisChris:
Welcome to the Apple Discussions. First Control+click on the movie's thumbnail and select Show File from the contextual menu. When you get to the original movie file double click on it to see if you can open it in Quicktime. If not then it's more a QT issue. If it opens OK in QT go to the next procedure.
Delete the iPhoto preference file, com.apple.iPhoto.plist, that resides in your User/Library/Preferences folder and try again. If iPhoto is still misbehaving log into another account and try the same operations in iPhoto there. If still not working you may have to reinstall iPhoto from the disk it came one. To do so you'll have to delete the current application and all files with "iPhoto" in the file name that reside in the HD/Library/Receipts folder. After you get iPhoto reinstalled run the latest update for it, 7.1.3 if needed.
TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
I've created an Automator workflow application (requires Tiger or later), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 6 and 7 libraries and Tiger and Leopard. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.≤br>
Note: There now an Automator backup application for iPhoto 5 that will work with Tiger or Leopard. -
How to get index of the item from table when user double click on an item
Can anyone tell me how to get the corresponding index of a table in which
elements are listed as array of strings? I am looking for the index of the
item being double-clicked on?
Thank you in advance
Cheers,
NQ.Hi NQ,
Although the question is not thouroughly clear, I can give a few suggestions. You can use the property node for table to refer to any particular row or column of the table. The correpsonding elements in the property node will be "SelStart", "SelSize" etc. Just as a side thought, the index of a table starts with (0,0).
I am attaching a test file. Please see if it helps you in figuring out what exactly you want. This example VI is just to help you try different options under property node (if you havent already tried)to get what you want.
Regards,
Sastry Vadlamani
Applications Engineer
National Instruments
Attachments:
test.vi 27 KB -
ALV TREE - Double click on an item
Hi all,
I need to handle the double click action on an Item of ad ALV_TREE defined cl_gui_alv_tree_simple
What I did at now is:
u2026
DATA tree1 TYPE REF TO cl_gui_alv_tree_simple.
u2026
CREATE OBJECT event_receiver.
SET HANDLER event_receiver->item_double_click FOR tree1.
SET HANDLER event_receiver->node_double_click FOR tree1.
u2026
CLASS lcl_event_receiver DEFINITION.
PUBLIC SECTION.
METHODS:
*Double-click control
item_double_click FOR EVENT item_double_click OF cl_gui_alv_tree_simple
IMPORTING index_outtab
fieldname
grouplevel,
*Double-click control
node_double_click FOR EVENT node_double_click OF cl_gui_alv_tree_simple
IMPORTING index_outtab
grouplevel.
PRIVATE SECTION.
ENDCLASS. "lcl_event_receiver DEFINITION
CLASS lcl_event_receiver IMPLEMENTATION.
METHOD item_double_click.
break <my_user_id>.
ENDMETHOD. "handle_double_click
METHOD node_double_click.
break <my_user_id>.
ENDMETHOD. "handle_double_click
ENDCLASS. "lcl_event_receiver IMPLEMENTATION
When I double click on item the program do nothing and I donu2019t understand the why.
Note: I think I could try to define the events passed, using the method et_registered_events, but I donu2019t know how to obtain the id of method item_double_click defined in class cl_gui_alv_tree_simple.
Any Idea?
Thank you in advance.Register the events with the below code...
data: lt_events type cntl_simple_events,
l_event type cntl_simple_event.
l_event-eventid = cl_gui_column_tree=>eventid_node_double_click.
append l_event to lt_events.
l_event-eventid = cl_gui_column_tree=>eventid_item_double_CLICK.
append l_event to lt_events.
call method tree1->set_registered_events
exporting
events = lt_events
exceptions
cntl_error = 1
cntl_system_error = 2
illegal_event_combination = 3. -
Single (instead of Double) click for af:table editingMode="clickToEdit"
Hi all,
My af:table has editingMode="clickToEdit".
A row becomes editable by double clicking on it - this is a default.
How can I overide this editable behaviour with ONLY SINGLE click instead of Double?
Thanks.Ok, I can overirde the selection listener,
but inside that method I do not want to: setEditingMode("editAll");
I still want the table to have editingMode="clickToEdit".
But I want with only one click (instead of double) the row to be editable.
So one row editable at the time.
But only one click to show input fields.
The tabel does not have a property (number of clicks to make the row editable) that I can control.
In RichTable class it sais:
In "clickToEdit" mode a single row editable at a time. A row becomes editable by double clicking on it.
Can I overide this with: one click on the row???
And for sure I do not want to PPR the table since default double click on the table do not refresh the whole table.
Thanks.
Edited by: VesnaS on 15-Jan-2010 10:47 AM -
I have created a form with Adobe Acrobad Pro 9.
There are a few "drop-down" boxes for people to choose options from. I created them with the "Combo box" option. They work perfectly fine on my laptop (Lenovo T500 windows 7, with all updates up to date.) I sent the file to another exact same computer and that's when the problem came up. When you click on the drop-down, the list will quickly appear and then disappear. Then if you click it again it will stay open so you can choose your option. However this only happens on "some" computers but not everyone's. I emailed the exact same form out to other people in my office and they do not have any problems with the form. There is no need to double click the drop down, it will just open up properly for them.
Has anyone come across this? And if so, is there maybe a setting on these specific laptops that is preventing the "combo box" to not work properly? I need to use this specific laptop as a "Kiosk" like a "check out" station for users to fill out the form to check out equipment. I will be running in Reader so people can not make changes to the form. (both the Acrobat Pro 9 version and the (most up to date) Reader version of the PDF form does the same "double-click" problem) I need a date drop down and an equipment type drop down.
Any suggestions would be greatly appreciated !
Thanks !I've got this kind of problem with a form of mine (designed with LCD) :
- combo boxes with font-color changing event handlers on :enter
- on Acrobat 9 Pro : no problem
- on Reader 8.3 :
- first click seems to execute the event handler but stops the combo's opening
- second click does open the combo
Do you have event handlers on combo:enter ?
Could the difference between comps where it works and comps where it doesn't be Acrobat's version ?
Maybe you are looking for
-
I brought second hand iphone4 but i cannot open it because the owner forgot her apple id and password, how can i reformat this without reformating my phone outside? what can i do to open this? its till on the set up mode
-
How to use aggregate function with Date
Hi All, I have a group of date from that is it possible to Max and Min of date. I have tried like this but its errored out <?MIN (current-group()/CREATION_DATE)?>. I have also tried like this but it doesnt works <?xdoxslt:minimum(CREATION_DATE)?> Is
-
I am parsing an XML into a DOM object using the Xerces parser that is packaged with JDK 1.5. First, I create a new instance of the DocumentBuilderFactory and then using the factory, create a new DocumentBuilder. I then parse the XML using the Documen
-
Reg. Display of Output exceeds 255 characters as spool list
Dear Experts, My requirement is that i need to display output that exceeds 255 characters in length as spool list. How should i achieve it? Regards, Ramesh Manoharan
-
Contacts overview: Only "JobTitle", not "Company"?
Hi There, In my C5, when going to Contacts -> Open, I see a nice short contact overview. Great stuff - but on the right hand side of the image, is the "job title" of the person, but not the "company". Is there a way to change this short - and useful