Catch TAB and jump to new position in JTextField!!!

Hi,
first of all i wanna say Hi to everyboy, 'cause this is my first post in this forum. and here comes my question:
I have a JTextfield and if the TAB-Button will be used there, the cursor should jump to a new position. So in detail, it SHOULDN'T do the normal TAB stuff (insert some blanks). Only the cursor should jump to a new position.
What I did: (workaround)
I used a KeyFieldsListener(extends KeyAdapter) which catches the TAB, copies the text before and after the blanks (which comes from the TAB). The PROBLEM is, this is to slow. The user can see what the TAB is doing.
For any suggestions I would be grateful !!!
Regards,
Robin
My Code:
if ((key == KeyEvent.VK_TAB)){
     // now position of caret (after TAB)
     int offset = HitlistFrame.searchText.getCaretPosition();
     String tempText = HitlistFrame.searchText.getText().substring(0, offset-1) +  HitlistFrame.searchText.getText().substring(offset);
     // copy text before TABING into TextField
     HitlistFrame.searchText.setText(tempText);
     // search for next blank
     while ((offset < HitlistFrame.searchText.getText().length()) &&
               (HitlistFrame.searchText.getText().charAt(offset) != ' '))
          offset++;
     // set cursor to position of next blank
     HitlistFrame.searchText.setCaretPosition(offset);
}

The long and short of it that the code simply assumes theat the layers don't exceed the comp size or leave the comp. Depending on where you apply the code, that may not be true. You would have to add extra stuff to make it more safe and things like specific shape layer modifications or the anchor point coordinates on shape layers being based on the middle of the layer, thus regularly producing negative values, would further complicate the matter. The code is simply too simplistic to cover such scenarios and the internal calculations in your case probably produce these aforementioned negative vlaues that the Puppet effect can't handle since in its world they don't exist. Anyway, without seeing what's actualyl going on, nobody can provide the ultimate solution. I could write an endlessly complex expression and it may still not solve your dilemma. as a start, you might consider pre-composing everything to comps of the same size and using these comps instead of the native AI file. This would also eliminate all the hocuspocus with the layer space transforms and greatly simplify things (and help performance).
Mylenium

Similar Messages

  • Minefield just would not open pages, whatever I tries to type in the addressbar the URL just stayed there and nothing happened. Even if I opened a new tab and put a new url again it did not even start loading the page. This is happening since the last upd

    Minefield just would not open pages, whatever I tries to type in the addressbar the URL just stayed there and nothing happened. Even if I opened a new tab and put a new url again it did not even start loading the page. This is happening since the last updates from today or yesterday. I already removed minefield and installed it again
    == This happened ==
    Every time Firefox opened
    == today ==
    == User Agent ==
    Mozilla/5.0 (Windows; Windows NT 5.2; Win64; x64; rv:2.0b3pre) Gecko/20100728 Minefield/4.0b3pre ( .NET CLR 3.5.30729; .NET4.0E)

    Create a new profile as a test to check if your current profile is causing the problems
    See [[Basic Troubleshooting|#Make_a_new_profile|Basic Troubleshooting: Make a new profile]]
    There may be extensions and plugins installed by default in a new profile, so check that in "Tools > Add-ons > Extensions & Plugins"
    If that new profile works then you can transfer some files from the old profile to that new profile (be careful not to copy corrupted files)
    See http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox
    See also http://kb.mozillazine.org/Browser_will_not_start_up
    You can discuss issues with Namoroka 3.6 and Minefield 4.0 nightly and alpha/beta builds at the MozillaZine Firefox Builds forum.
    That forum is better suited to discuss such issues.
    You need to register on the MozillaZine forum site in order to post at that forum.
    See http://forums.mozillazine.org/viewforum.php?f=23

  • Having arranged some scanned pictures in an album in I-Photo how can I keep them in the order I have chosen when I move the album. They all have the scan date and not the taken date and move to new positions if I move them from one album to another.

    Having arranged some scanned pictures in an album in I-Photo how can I keep them in the order I have chosen when I move the album. They all have the scan date and not the taken date and move to new positions if I move them from one album to another.
    Is there any way to re-number them in the order I have chosen so that they can then be sorted by number? The scans are all from pre-digital images that I wish to move to a photobook and I don't want to have to organise them twice!
    Thanks for any suggestions.

    I was a bit short, Chris, sorry. It is limited, what can be posted, when typing on an iPad.
    Now I am back on my Mac. I meant the following:  Batch Change the date for a large range of photos, that should have a date stepped in increments.
    Select all Photos at once and use the command "Photos > Batch Change".
    Then set the date for the first photo and select an increment, e.g. one minute.
    Now all photos will get a new date assigned, incremented by one minute, in the sequence you have selected. So you will be able to sort them by date.  This way it will be unnecessary to change the titles or filenames.

  • Before 4.0 I could right click on an open tab and start a new tab. Now the option to do so is no longer on the right click menu, and I have to click the plus sign.

    Before 4.0 I could right click on an open tab and start a new tab. Now the option to do so is no longer on the right click menu, and I have to click the plus sign if I want to open a new tab. It is kind of bugging the hell out of me. Is there a way to fix it other than uninstalling and reinstalling the old firefox? Because this is a big part of the way I browse.

    You can also use ctrl-T or File > New tab (if you have the menubar showing). I can't find an extension that will help you bring back the previous behavior but there probably will be one soon.

  • Spry.zip opened up 162 tabs and over 100 new browser windows

    Three times, duplicable, I downloaded the latest spry.zip
    files and had Firefox go into a frenzy with over 160 new tabs and
    100 new windows, each new window with a number of new tabs before I
    managed to shut things down.

    Hi Kammer,
    Can you please tell us what exactly you did that you get this
    very strange behavior? Are you still reproducing this?
    Thank you,
    Diana

  • Left clicking on an igoogle news item, jumps current tab and opens a new duplicate tab?

    Works OK on finance box. i.e., clicking on a stock.
    most other boxes duplicate.
    Now this is happening elsewhere. Is this a add-on conflict?

    '''Firefox Crash'''
    Create a New Profile as a test to check if your current profile is causing the problems.
    -> Basic Troubleshooting: Make a New Profile
    * https://support.mozilla.com/en-US/kb/Basic%20Troubleshooting#w_8-make-a-new-profile
    -> If that New Profile works then you can recover your Bookmarks and Passwords from the Old Profile.
    -> Recovering important data from an old profile
    * https://support.mozilla.com/en-US/kb/Recovering%20important%20data%20from%20an%20old%20profile
    '''Opening Links in New Tab'''
    -> click '''Firefox''' button and click '''Options''' (or Tools Menu -> Options) -> Tabs panel -> place Checkmark on '''Open New Window in a New Tab instead''' -> click OK
    Check and tell if its working.

  • I want the cursor to be in the address bar when creating a new window; it works for new tabs and in a new private window, but not in safe mode.

    I have tried following the advice offered in the few different threads I have found on this but nothing fixes it. I want the cursor to be in the address bar when I open a new window and/or when firefox opens without restoring a previous session. I fixed the issue for new tabs via about:config but this doesn't work for new windows. I tried safe mode and the problem persists. In new private windows the cursor is in the address bar.

    The search box in about:home steals the cursor. Changing your home page to something else will cause the cursor to start in the address bar for new windows.

  • Open in New Tab and Open in New Window have switched places, how to revert?

    I was glad to find as i logged in today that Firefox had a update ready. I was even more excited when i learned that the browser itself has been updated. And while all these new and exciting things make Firefox an amazing choice for a browser, im at my wits end on this little change that is annoying the hell out of me.
    Apparently between 3.6 and the new Firefox, when you right click on a link, you see Open in New Window in the spot where Open in New Tab was. This may not seem like a big deal, but to a person who has been opening windows in tabs since tabbed browsing came out, i absolutely hate having multiple windows open.
    When i right click on a link, its an automatic reflex for me to open it in a new tab, but now i cant. Each time i end up opening a window instead. Is there an easy fix to this little problem that's driving me insane?

    Opening order of Tabs in 4.0.1
    To make TABS open to the right within each browser window in the same order as you opening them:
    What to do:
    Open a second window so you can read these instr.
    Enter "about:config" in URL address bar.
    Get a warning - 'Are you sure / advanced settings...blah, blah. '
    Click YES
    Scroll down the page until you find the described line:
    "browser.tabs.insertRelatedAfterCurrent"
    Find it a ways down, then right click on the line to then TOGGLE the menu pop-up option to "FALSE" DONE !
    It worked immediately, no need to restart.
    My tabs now all open to the right in order of them being opened.
    Nice.
    Thank you 'Platon' from a different Mozilla help site.

  • Link inside tab must open next tab and jump to top of page

    I am trying to open the next tab from  a link within the tabbed panel while ensuring the top of the tab is focused on the screen.
    You can see my tabbed panel at the top of http://yabbox.com/spry.php
    In Panel one, there are links to panel 3 and panel 4.  On some screens you will need to scroll down to see this links and it is this scenario I am working on.
    If you click the link to panel three, the panel will open but as it is smaller, the viewer will be left reading the content below and not the panel itself, which will be very confusing.  This is especially so if you are using a laptop.
    I need to force the link to jump to the to the top of the screen, something like including a named anchor inside the tab itself.
    I am using the following code as found on this forum, but it's not working <a href="javascript:;" onclick="TabbedPanels1.showPanel('3')" scroll(0,0);="">Panel 3</a>
    Can you help?
    Andy

    Hi,
    You need a bookmark for the top of your tabbed panels and then to change the href of you link to reference it
    Try the  following changes
    <div id="TabbedPanels1" class="TabbedPanels" name="TabbedPanels1">
    <p><a href="#TabbedPanels1" onclick="TabbedPanels1.showPanel('3')" scroll(0,0);="">Panel 3</a></p>
    That's how I've solved it on one of my pages
    www.thehmc.co.uk/photo.html
    Regards
    Phil

  • How do i set what opens when I click on the "+" tab and open a new tab?

    I installed some sw for a camcorder and it changed something in FF. Now everytime I open a new tab, I get sent to this page;
    http://www.somoto.com/441/%7B9149BBF6-F330-44B5-8E1C-F9F70DD50517%7D?s_src=newtab
    How do I set it to not go anywhere when I open a new tab

    Not the home page, it is a new tab, but will most likely need cleaning up ''after'' fixing source of problem.
    If you have an extension named "NewStart" uninstall it (question [https://support.mozilla.com/questions/856436 856436]). If you don't you will have to identify the cause of the problem.
    After it is uninstalled check your about config filtering on '''somoto''' note any legitimate items seen there such as your old home page make a note, then delete every item with '''somoto''' (unless listed with a lot of other sites, such as sites to be blocked in the values, see Xircal's replies in [https://support.mozilla.com/en-US/questions/856436 856436])
    Also see pictures with [https://support.mozilla.com/questions/812137 812378]
    Fix your homepage afterwards
    :https://support.mozilla.com/kb/How+to+set+the+home+page
    If you have the Adblock Plus extension create a filter to prevent bringing up that site again create a filter. "||somoto.com/^" (without the quotes)
    :See http://www.mozillazine.com/Adblock
    Probably have no effect on this but do make sure that you have
    :'''Tools > Options > Security'''
    :[x] Warn me when sites try to install add-ons
    :[x] Block reported attack sites
    :[x] Block reported web forgeries
    :'''Exceptions:''' (for add-ons)
    : addons.mozilla.org Allow

  • When on a website and want to go to new website, just want the new website to appear in same space as the previous website. not a new tab and not a new window

    ok, right now if I want to go to a new website from previous I can only get one of two options, either have it appear as a new tab or a new floating window, I want the browser to simply replace the existing webpage with the new one and if I want to go back to previous website I click the back arrow.

    '''Try Firefox Safe Mode''' to see if the problem goes away. [[Troubleshoot Firefox issues using Safe Mode|Firefox Safe Mode]] is a troubleshooting mode that turns off some settings, disables most add-ons (extensions and themes).
    If Firefox is open, you can restart in Firefox Safe Mode from the Help menu:
    *In Firefox 29.0 and above, click the menu button [[Image:New Fx Menu]], click Help [[Image:Help-29]] and select ''Restart with Add-ons Disabled''.
    *In previous Firefox versions, click on the Firefox button at the top left of the Firefox window and click on ''Help'' (or click on ''Help'' in the Menu bar, if you don't have a Firefox button) then click on ''Restart with Add-ons Disabled''.
    If Firefox is not running, you can start Firefox in Safe Mode as follows:
    * On Windows: Hold the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac: Hold the '''option''' key while starting Firefox.
    * On Linux: Quit Firefox, go to your Terminal and run ''firefox -safe-mode'' <br>(you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    When the Firefox Safe Mode window appears, select "Start in Safe Mode".<br>
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]] article to find the cause.
    ''To exit Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    When you figure out what's causing your issues, please let us know. It might help others with the same problem.

  • New name and soon a new position in the forums

    As you may have noticed, we recently changed the name of the Electronics Workbench (Multisim, Ultiboard) board to Circuit Design Suite (Multisim, Ultiboard). There are two main reasons for this change:
    The product branding and the name of the board in the forums were not aligned together. We needed to bring this change and we were looking for the right time to do it. Since version 10.0 of the product the name Circuit Design Suite has been adopted for the Electronics Workbench product line.
    The second reason has to do with the volume of messages that we have received in this board. In the next week or so, we will move this board up to the Most Active Software Boards section, together with LabVIEW, LabWindows/CVI, TestStand and so on. In one year this board has had enough messages as to be included in that top spot. Again, we have to make sure the name is aligned with the product that we ship.
    I would like to thank you all for the professional and invaluable cooperation, input, discussion and feedback that over the past 1 - 2 years have made this board one of the most active ones. It is in the best interest to have an open space for users to discuss matters related to the software they use, as well as to provide constant feedback for the NI team in charge of improving and developing this product line.
    Best regards,
    Nestor
    National Instruments

    Jeff, I politely disagree here.
    My reason is because clicking the "View Result" *SHOULD* provide the same experience as you are advising. At that point, RoboHelp is simply opening the browser and handing things off.
    Gwen, this causes me to ponder the following question. In recent versions of RoboHelp, it's possible to configure more than one Table Of Contents (TOC). Are you certain you have specified the desired TOC in your SSL recipe? That's what I'd be checking.
    Cheers... Rick

  • Tabs disappear and open a new window when editing files in Wordpress

    When editing files in Wordpress built-in code editor, if I highlight and try to copy/paste to another file or even within the same file the tab I am on will often abruptly close and then reopen itself in a whole new window. This is extremely disruptive. I have to close the window that popped open and go back to my browser instance with the open tabs and create a new tab for that page then restore my tabs in their previous order. The have to do it all over again a few minutes later.
    Never had any type of trouble like this with previous versions of Firefox, and nothing else has changed on this PC.

    Hi Nicolas,
    I don't know about a pop-up, but if you are trying to open a page (page 2) in a new window (internet explorer window), then do the following:
    Instead of using a navigate pushbutton, use a hyperlink component.
    In the URL selection option insert the URL (web address) of page 2. You can find the URL by going to SE80, in the repository browser select "BSP Application" and "THE TECHNICAL NAME OF YOUR BPS". Open your BSP and go to the folder "pages with flow logic" and find your "page 2". Double click on your page and then select the "properties" tab and navigate to the bottom where you will see the pages URL.
    Insert this URL address into your hyperlink component back in the Web Interface Builder.
    Leave the Target selection as parent. Make sure your internet explorer enhanced options are set to "not reuse the same window" under the browser options.
    Good luck.
    Rael

  • Hi, I just updated to ff6, when i open a new browser the tab bar is missing....however when i hit Ctrl+T i get the tab bar back with the original tab and the new tab. I have box checked in options "always show the tab bar". Any help greatly appreciated

    Using Windows XP and Firefox 6....tab bar has gone missing but returns when i open a second tab. I used to be able to open a browser which opened my bookmarked homepage and I cold then click the + to the right of this tab and open a new tab.

    hello, please install the search reset addon - it will revert the most common customizations those adware programs do in firefox back to the default: https://addons.mozilla.org/firefox/addon/searchreset/

  • Create Delivery from a Sales Order adding a new position

    Hi experts!
    I need to create a delivery from an existing Sales Order (with just 1 position), and add a new position to this Delivery so it creates with two positions, the one from the SO and the added one.
    I'm using FM RV_DELIVERY_CREATE. Is it possible to do this?
    Thanks!!
    Carles

    Hi Carles,
    I would prefer BAPI_OUTB_DELIVERY_CREATE_SLS. At least the delivery creation will be fine, your second position might be more complicated. But there are exits in the Bapi and you might go for an exit of the delivery creation itself -> then also manual triggered creation of a delivery will be correct.
    BR, Christian

Maybe you are looking for

  • Ancient ADC to mini display adapter

    I would like to connect my (old) 17" flat panel studio display to my Powerbook Pro. Maybe all I need an adapter? The display male connector uses a single cable for all functions (power, USB etc) it is rectangular with rounded ends (.35" x 1.22). Part

  • Image Variants

    I have a Image Variant record created in Image Variants Table in Console. The name of the Variant is "Image Variant for Publication 1". I attached this variant to a <b>Lookup Image field</b> in the main table. The name of the field in the main table

  • Procedure entry point not located on loading

    When I try to load Contribute 3 I get a screen that says The procedure entry point Getprocessimagesfilename w could not be located in dynamic link library psapi.dll The loading process is then aborted.

  • OS X 10.4.11 dropping WPA connection

    Hi All, I'm trying to revive this thread http://discussions.apple.com/thread.jspa?threadID=670521&start=0&tstart=0 because I'm having this same exact problem with 10.4.11. My wireless airport extreme client on my Macbook Pro keeps dropping connection

  • 10.5.2 = Slow new MacBook Pro

    Hello, I recently installed the 10.5.2 update, and the Leopard Graphics Update 1.0, and my new MacBook Pro is more sluggish than before. i just purchased teh system last week, and I can certainly notice a speed difference after these updates. Applica