JComboBox selectWithKeyChar() method should highlight not select.. How?
JCombobox's selectWithKeyChar(char keyChar) selects an item (calls setSelectedItem()) if it matched with key press but how do I override this to not set the item but instead highlight (highlight as in you move your mouse over that itme) the matched item? Any tricks?
Please help. I am using jsdk.14
doing this override, doesn't help me.. Please correct me.
public boolean selectWithKeyChar(char keyChar) {
int index;
if (keySelectionManager == null) {
keySelectionManager = createDefaultKeySelectionManager();
index = keySelectionManager.selectionForKey(keyChar, getModel());
if (index != -1) {
generateItemEvent(index);
return true;
} else {
return false;
private void generateItemEvent(int index) {
if ((index > -1) && (index < getItemCount())) {
Object itemAtIndex = getItemAt(index);
ItemEvent deselectItemEvent = new ItemEvent(this, ItemEvent.ITEM_STATE_CHANGED, getSelectedItem(),
ItemEvent.DESELECTED);
dispatchEvent(deselectItemEvent);
ItemEvent selectItemEvent = new ItemEvent(this, ItemEvent.ITEM_STATE_CHANGED, itemAtIndex,
ItemEvent.SELECTED);
dispatchEvent(selectItemEvent);
}
Similar Messages
-
We are unable progress the lines due to ware house not selected. We checked the Defaulting rules everything looks good. But line Items not picking the Warehouse - based on the sourcing rules.
If we enter manually and then progress lines getting scheduled.
How do we fix this? So that it will pick the warehouse automatically.Hi,
The issue with ATP- it’s not sourcing from the ware house, even though the sourcing rules defined the correct warehouse. When we enter manually and progress –order is progressing.
Thanks -
For example:
I have 3 tabs open.
I have tab 1 selected, I switch to tab 3 and proceed to type (Log in details for example)
When typing it out, the information I enter types out on tab 1, rather than 3, sometimes I don't check and press enter (Causing it to enter on tab 1, which could cause me to show my password on another site)
I have to switch between tabs like 3-4 times in order to sort the priority out.Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
*Don't make any changes on the Safe mode start window.
*https://support.mozilla.com/kb/Safe+Mode
*https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes -
I'm having problems (1) selecting onscreen text, (2) resizing menu boxes and selecting menues with the cursor. I'm not able to select menus and move them. I'm not sure how to correct this.
1) This is because of software version 1.1. See this
thread for some options as to how to go back to 1.0,
which will correct the problem...
http://discussions.apple.com/thread.jspa?threadID=3754
59&tstart=0
2) This tends to happen after videos. Give the iPod a
minute or two to readjust. It should now be more
accurate.
3) This?
iPod shows a folder icon with exclamation
point
4) Restore the iPod
5) Try these...
iPod Only Shows An Apple Logo and Will Not Start
Up
iPod Only Shows An Apple Logo
I think 3,4, and 5 are related. Try the options I
posted for each one.
btabz
I just noticed that one of the restore methods you posted was to put it into Disk Mode First rather than just use the resstore straight off, I Have tried that and seems to have solved the problem, If it has thank you. previously I have only tried just restoring it skipping this extra step. Hope my iPod stays healthy, if it doesnt its a warrenty job me thinks any way thanks again -
How find which method-class will be selected?
Hello sap gurus,
I have another question:
There are 2 the same methods: customer_exit_event_save, BUT in different classes.
One for the class CL_EX_BCA_PO_CUSTOMER_EXIT, another from the class ZCL_IM_BCA_PO_CUSTOMER_EXI
Not fully clear how the system decide which exactly method should be executed.
Hereby having executed a code(see below) in one case we are executing a method: customer_exit_event_save from the class CL_EX_BCA_PO_CUSTOMER_EXIT,
In the another case u2013 the same method customer_exit_event_save, BUT from the class ZCL_IM_BCA_PO_CUSTOMER_EXI !!!
IF NOT g_exit_obj_cust_exit IS INITIAL.
CALL METHOD g_exit_obj_cust_exit->customer_exit_event_save
EXPORTING
flt_val = l_flt_country
i_header = l_str_po_hd
i_sender = l_str_po_snd
i_receiver = l_tab_po_rcv
i_payment_note = l_tab_po_nt
i_item_info = l_str_item_info
IMPORTING
e_header = l_str_po_hd
e_sender = l_str_po_snd
e_receiver = l_tab_po_rcv
e_note = l_tab_po_nt
EXCEPTIONS
raised_customer = 1.
Do we have any table, where spesific method is selected?
Many thanks in advance.
Edited by: Paul Birch on Oct 16, 2008 2:50 PMHello,
You may execute SE24 to goto Class definition for both classes, go to methods tab and drilldown into the code of the method. Apply a break-point here in both cases and execute your main program which calls the method. Based on the break-point hit, you can decide as to which global class method was called.
Hope this helps.
Thanks,
Venu -
How do you select and move more than one bookmark at a time?
Shift+Click does not select multiple items that are next to one another in a list because the items open in firefox before this happens.Use the bookmarks library. You may use Shift +Click, and Ctrl + Click to create groupings of selected bookmarks to drag and drop.
* one method of opening the bookmarks library is keyboard shortcut <br /> Ctrl+Shift+B (Windows)
*see also [[How to use bookmarks to save and organize your favorite websites]]
*and [[Use bookmark folders to organize your bookmarks]] -
While opening a screen none of the radio button should not selected
Hi,
i have three radio button on the screens.By default the first radio button is getting selected for each and every time when ever i'm opening the screen.i dont want the default select should happen and even i dont want any of the radio button should be selected.
how i can acheive through dialog programming.
kind regards,
Poornima.Hi,
You can have radio buttons with any one field selected from a group .
ex:
selection-screen begin of block b2 with frame title text-042.
parameters:r_detail radiobutton group g2 user-command cmd default
'X',
r_sumry radiobutton group g2,
r_totals radiobutton group g2.
selection-screen end of block b2.
or
selection-screen begin of block b2 with frame title text-042.
parameters:r_detail radiobutton group g2 user-command cmd,
r_sumry radiobutton group g2 default 'X',
r_totals radiobutton group g2.
selection-screen end of block b2.
or
selection-screen begin of block b2 with frame title text-042.
parameters:r_detail radiobutton group g2 user-command cmd,
r_sumry radiobutton group g2 ,
r_totals radiobutton group g2 default 'X'.
selection-screen end of block b2.
Else you can opt for checkbox and have all of them not checked.
Regards,
Dep -
I bought a iPhone 6 16 GB i OS 8.1.2 last week. A software upgrade to i OS 8.1.3 was downloaded to my phone automatically. I taped install now and the phone went to a window verifying update. Then after the verifying window another window came up and said a error has occurred and can not install. Has anyone else had this happen? If so how do I install upgrade? Or should I not install?
Also check to see that the auto-pushed update has been deleted from the device after this botched update. If the iOS update hasn't been installed due to an error, the update file could be sitting on the device using up storage space and possibly causing other issues.
Check if it's on the device under: Settings/Usage. then under STORAGE, tap Manage Storage. A list will populate with your installed apps. The iOS update will be in this list if it's still on the device but hasn't completed installing. If you find the iOS update app in this list, tap on it, then tap on the Delete App button.
Afterwards, try the iTunes update method which is easier to install since it does not require any free device space to complete. -
This method should not be called anymore. The client was already released i
Hi,
while configuring Business Packager for Projects 50.3 fo, we made few changes in R/3 side as per the documentation. after that we are getting following error in portal
"This method should not be called anymore. The client was already released into the pool or the pool entry was deleted"
all the chages were reverted in R/3 system still we are getting the same error.
Can any one help on this issue....
Thanks in advance and for early responce higher marks would be awarded!!!..
Regards
Ravi Sankar KarriHi,
Well there were errors in how stop works:
"Stopping a thread with Thread.stop causes it to
unlock all of the monitors that it has locked (as a
natural consequence of the unchecked ThreadDeath
exception propagating up the stack). If any of the
objects previously protected by these monitors were in
an inconsistent state, the damaged objects become
visible to other threads, potentially resulting in
arbitrary behavior. "
I do understand that you want to have something like
killTheTreadIDontCareAboutConcequences-method, but
it's better to let all your methods that you want to
be able to terminate take a timeout argument, and deal
with the termination in the method. (Close the
sockets/streams etc that you are blocking on).
/KajThe point is, it is not always possible to make those blocking methods stop, via some magic "timeout" thingamabob. The bottom line is still that the blocking methods were written incorrectly to begin with (to possibly block indefinitely), so one cannot come up with an across-the-board solution, other than getting the root cause fixed in the first place. However, one is not always in control of fixing the root cause. -
How do you make a custom button that is Invisible When not selected
Im just recently switching over to using a mac for authoring. I really like all the features in DVD Studio more than what i was using on a PC for the past 6 years. Which was ulead DVD Workshop 2.
The only problem im having (For Now) is that i cant make my custom buttons invisible. I made this little black shape thing in photoshop and i want to use it in DVDSP for selecting different tracks.
I thought all i had to do was just save the black shape with a transparent background in photoshop as a .psd and import it. But that didnt work.
When i change episodes it just stays black the whole time. I want something that will be invisible when it is not selected.
please help
I can send someone my little shape if they can make it a usable button that i can make invisible in dvdsp. I really need to see the layers done with a shape as a button to see how they were able to make it invisible.
i tried a few tutorials but instead of being invisible all i got was a shape that was stuck white the whole time. this is even when i put the opacity to 0 on normal.
I want to make this into a button
http://img694.imageshack.us/i/custonbutton.png/Ok, what you want to do is also in the same tutorial. See the section on "Advanced Highlights" (again, avoid the sections on layered menus), You can create an overlay that does have two colors. The bad news is that there will be absolutely no anti-aliasing at all. This means your graphic will be extremely pixelated. This is just the way the DVD specs are set up, so there is no way around it.
Given that I would highly recommend redesigning your overlay. Take a look at variety of DVDs from Hollywood. See what they are doing in their menus. You can do anything they are doing, but you will notice that the overlay is very simple because of the limited anti-aliasing of DVDs. In all the years that I've been watching DVDs I've only see one DVD use two colors in the overlay, and that was the Jim Carey "The Grinch who Stole Christmas." -
Not sure how i should go about creating this flash to accomplish what i need.
First let me start by saying my flash file is currently 740kb
in .swf form and I'm not done with it. I'm taking this which was
developed from another developer and trying to customize it to work
for what i need. The flash was bought from template monster. I'm
using actionscript 2.0 in the flash.
Is 740kb big for a flash file that is basically an entire
website?
I'm trying to make this flash load as fast as possible while
implementing the best practices so i can use it for future
projects. Also i would like advice on using various techniques to
accomplish some functionality.
The flash file i'm working on is basically like a brochure
for a client. It consists of "8" main pages, along with several sub
pages.
I have the following questions though.
1. Currently the navigation is on the left hand side, and has
a mouse over animation as well as sound effects with rollover and
being clicked. The mouseover effect just moves the text to the
right a little and brings it back to the original position..
However each button in is an individual movie symbol.
- Should I consolidate the navigation so it's one movie
symbol instead of 8 movie symbols on one page? Keeping in mind that
even if i do make it just 1 symbol i might need to add the 8
navigation movie symbols into that one to maintain the animation.
- Should the buttons even be movie symbols or is there a
better way this should be done?
2. Because of the text for each page, I was using adobes
built in scrolling component for the dynamic text boxes.
Considering there is more then 8 dynamic text instances converted
to graphic symbols.... Is there a more efficient way of doing this,
or is the above method just fine?
3. The flash file contains a photo gallery. Currently all the
images from the gallery are in the same flash file. I was thinking
it would be more efficient to load the images in the gallery from
external .swf files. However i'm not sure if that would be the best
method, and i'm also not sure how to correctly accomplish within
standards.
4. I would like to implement a contact form within the flash
so users can contact me.
5. I would also like to have a testimonials page where users
can submit testimonials. However i'm not sure how to create the
form, but i had an idea on displaying the text in the flash using
xml so it can be easily updated . Just not sure on the proper and
more efficient way of doing this.
6. I would also like an event calendar that displays within
the flash. Was thinking of having this loaded from an external .swf
file as well. Would like the calendar to be xml based so I can
update it myself. Don't need nothing advance, just something that
says "Busy", "Not Busy", and "Book" which would just take them back
to the contact form to book me.
I know many of you don't know who i am, but I would really
appreciate some assistance. Whether its sample flash files, links
to tutorials, advice, anything.
I really want to do all of the above, but also as i'm
learning i would like to make sure i'm doing the above in the most
efficient way possible and up to standards while also keeping the
size low. Would like to do it right the first time, so as i
continue making flash files in the future I'm not writing sloppy
actionscript coding, having sloppy timelines, and or having sloppy
structure in my .fla files.
Also i know alot of you are very busy people, and i'm not
asking for you to do the flash for me but any and all help will be
very greatly appreciated.
Thank you in advance for you comments, advice, and replies.
:)Wow, you're really looking to get your money's worth here. :)
I haven't read through your entire list of questions, but
I'll do what I can to help - others here will probably have
different ideas, so feel free to pick and choose which (if any - or
all) you want to integrate.
1. So far, my experience has been that the people that create
the templates on TemplateMonster have a pretty good handle on what
they are doing, and have done what they do for a pretty good
reason. Unless you are quite good at ActionScript, I probably
wouldn't make any major changes to the back end. After all, you
bought the template for a reason. If you want to move the buttons
around the stage, great - edit them to change the colors, great.
But to try to create a button array may be more than you want to
bite into here. That said, it can be done. I've done it. If you
want a sample of the code, drop me an e-mail and I'll send it to
you. FYI: I only do AS3.0 at this point. If your template is in AS2
then one of the other Flash gods would be better suited for code
samples.
1a. The buttons are movie clips for a reason - flexibility.
Leave them as movie clips unless you really like migraines.
2. I hate having to convert text to symbols, but sometimes it
is the most efficient (or only) way to do things. If you want to do
any tweens with the text, it has to be a symbol.
3. You can load the photos from external SWF's or you can
load the JPG's directly using XML. If you are using AS3, I know
that there is tight, simple integration with XML. I'd review a
couple tutorials on XML from some place like www.tutorialized.com
to get a feel for it. Also, look up "Working with XML" in the Flash
Help file (F1). Once you have decided on an approach, come back
here with specific questions and you will get good answers.
4. Doable. Search these forums for "Email from Text Box".
This was covered several times in the last couple of days.
5. XML is one option. You can even have XML give a photo of
the person doing the testimonial and load it all into a single
page. What you can do with this is limited only by your
imagination. This is a very broad question.
6. Someone posted a message about a calendar on here today.
Search for "Calendar" and I'm sure you will get some ideas from
there. Also (and again) www.tutorialized.com is a great resource
for general code and ideas.
You're right, we don't know you. And guess what? That doesn't
matter. We are equal opportunity abusers here. :) I mean that with
the kindest grin.
The things you have asked are very broad in nature and
therefore are quite difficult to give specific answers. We are
always happy to help you when you get stuck, and even to spend a
great deal of time walking you through a specific topic. However,
what you've asked here would take a six-week course to answer to
the level you will need. Grab some free code. Try it out. Play with
it. Break it. The Flash gods will rescue you. But remember, the
more specific your question, the better answer you will get.
I hope this helps (at least some). -
How do I highlight JTree selection ?
Hi,
How do you highlight the selected node in a JTree from code ?
I am deleting a node and want to highlight the preceeding node. I select it via this code :-
jTree.setSelectionPath( newSelectedPath);
jTree.scrollPathToVisible( newSelectedPath);
jTree.repaint();
But that does not highlight the node.
Many thanks in advance,
AaronWith the Move tool selected, this seems to be the only way to enlarge a selection.
What I'd want to do in Joshua's situation though is to draw a marquee around the clips I want to select. The inability to hold down shift or control and draw a second marquee to add more clips to a selection seems like a flaw! Is there a key combination or do I have to always select individual clips (or groups) after the initial selection? -
Af:tree - how do I highlight the selected tree node?
af:tree
I checked the generated CSS file. I found that when a tree node is selected, the related CSS attribute is:
.xj:link{
font-family:Arial,Helvetica,Geneva,sans-serif;
font-size:10pt;
font-weight:normal;
color:#663300
I created a customized CSS attribute, but then all of the links have the customized CSS attributes.
How do I just highlight the selected tree node link?
Thanks,
--Toddtry doing the onclick javascript method
you have to place it on the node element and id must be made dynamic
for this use 'this.id'
by which the current id of the node is passed
and by capturing the id name in a var
use the same for invoking its selected property and make it true
like this
var currentid = this.id;
this.form.currentid.selected = true; -
Win 7, 64 bit
RH 9 (latest patch)
HtmlHelp (CHM) output
I have many TOC pages that are identical.
For example, in our software some toolbar icons are repeated on different screens. In the built CHM help, if I click on a later identical page reference in our TOC, the TOC automatically jumps focus to the first entry. It doesn't stay on the selected entry.
This causes confusion as all of a sudden the user is in an entirely different context. How can I get it to highlight the selected item and not jump to the first reference?Hi Jared
Note that this issue is generically related to any help system and isn't a "RoboHelp specific thing". When multiple points in a Table of Contents reference the same page, how is the system supposed to determine exactly which TOC node is the correct one?
The way past this is to create multiple distinct nodes from the TOC to the topic.
One way involves never creating an actual link from the TOC to the topic. Instead, create as many distinct topics as you need in the TOC and have them redirect to the desired topic. The bottom line is that the correct page is presented and the correct TOC node is highlighted.
Another way involves a similar approach. Create distinct topics that simply present an inline frame (IFRAME) that has the single "real" topic.
Yet another way involves another variation. Create a Snippet that is essentially the single entire topic. Then create distinct topics that only contain the snippet.
Hope this helps... Rick
Helpful and Handy Links
RoboHelp Wish Form/Bug Reporting Form
Begin learning RoboHelp HTML 7, 8 or 9 within the day!
Adobe Certified RoboHelp HTML Training
SorcerStone Blog
RoboHelp eBooks -
iphoto says it is running low on disc space. i should have plenty. not sure how to check my space or increase my space
In the finder select your hard drive and get info
LN
Maybe you are looking for
-
Issue in form and cancel button
Hi, I have created one customized form, on that form i have created one cancel button for cancelling the record. when i click on cancel button it is not going from form , but when i close the form and open again then wont seen. i have to cancel the r
-
Architecture question, global VDI deployment
I have an architecture question regarding the use of VDI in a global organization. We have a pilot VDI Core w/remote mysql setup with 2 hypervisor hosts. We want to bring up 2 more Hypervisor hosts (and VDI Secondaries) in another geographic location
-
Jdbc bean errorpage - select - update
i got a problem getting the errorhandling from a bean- i would like to open an errorpage from the bean when the executeupdate function fails - maybe due to an allready existing value if i move thedb access into a normal jsp i can declare a <%@page er
-
I just subscribed to imatch while logged in to iTunes on a mac computer that belongs to someone else. (I was logged in to MY iTunes) my iPhone will not turn on the MATCH function, saying I am no subscribed. I've powered off and on. can anyone help?
-
Hii All , I wanted to ask you one question regarding the BW projects.what is a complete BW Project?Can I have one example for BW Project and documenetation for it.so that i could get a clear picture for it . Awaiting your Reply , Thanks & Regards , M