Text field highlight problem after caret position is set

Hi,
What I am trying to do is: set caret position and then highlight the text after it. The problem is: if I set caret position first, and highlight the rest of the text, the caret position is then set at the end of the entire text; if I highlight text first, and set caret position, then the text is not highlighted.
I am wondering how I can achieve this. Thanks.
The simple test program is below:
import java.awt.FlowLayout;
import javax.swing.JFrame;
import javax.swing.JTextField;
public class TestTextFieldHighlight {
     public static void main(String[] args) {
         JFrame f = new JFrame("Text Field Examples");
         f.getContentPane().setLayout(new FlowLayout());
         JTextField tf = new JTextField("SampleTextField", 20);
         tf.setEditable(true);
         f.getContentPane().add(tf);
         tf.setCaretPosition( 5 );
        tf.setSelectionStart( 6 );
        tf.setSelectionEnd( tf.getText().length() );
        //tf.setCaretPosition( 5 );
         f.pack();
         f.setVisible(true);
}

      //tf.setCaretPosition( 5 );
      tf.setCaretPosition( tf.getDocument().getLength() );
      tf.moveCaretPosition(6);
      //tf.setSelectionStart( 6 );
      //tf.setSelectionEnd( tf.getText().length() );

Similar Messages

  • Unable to define Radio Button Text field & unable to change column position

    Hi,
    While designing a screen in Screen Painter, I am unable to define Radio Button Text field as this option is not there in Graphical Element. And also I want to specify the starting position of column of that element different from the default value, but I am unable to define that because the field is non-editable.
    Can any one please help me out.
    Regards,
    Koushik

    Hi,
    Please find below the sample program from ABAP docu :
    PROGRAM demo_dynpro_input_output.
    DATA: input  TYPE i,
          output TYPE i,
          radio1(1) TYPE c, radio2(1) TYPE c, radio3(1) TYPE c,
          box1(1) TYPE c, box2(1) TYPE c, box3(1) TYPE c, exit(1) TYPE c.
    CALL SCREEN 100.
    MODULE init_screen_100 output.
      CLEAR input.
      radio1 = 'X'.
      CLEAR: radio2, radio3.
    ENDMODULE.
    MODULE user_command_0100 input.
      output = input.
      box1 = radio1.
      box2 = radio2.
      box3 = radio3.
      IF exit NE space.
        LEAVE PROGRAM.
      ENDIF.
    ENDMODULE.
    Here radio1(1) TYPE c is defined within the program but in the element list there are RADIO1 element exist. One is actual radio button and the other is Radio Button Text.
    I am not able to create that radio button text using same object name.
    Please suggest.
    Regards,
    Koushik

  • ALV Filter : Not working for a text field - Strange problem

    Dear All,
    I have a Z-program where the ALV filter is not working on a particular text field.
    The output on that text field is as below :
    ABCD
    JKLM
    YYZZ
    ABCD
    JKLM
    ABCD
    JKLM
    YYZZ
    YYZZ
    When we try to filter on YYZZ, it gives blank list. But for other options given abobe it works fine.
    I know it is because of the negative sign , but how can we over come this problem ?
    Thanks in advance,
    Sandip.

    Hi Sandip,
    Use 'LOWERCASE' in the fieldcatalog.
    For the particular text field when you are appending the Fieldcatalog structure to the Fieldcatalog Table
    ( Suppose LS_FIELDCAT)
    Then check the LOWERCASE field.
    (LS_FIELDCAT-LOWERCASE = 'X' )
    This will serve the purpose.
    Regards,
    Sourav

  • Make all text fields read only after signing form

    Hello,
    I have a live cycle form which needs to have all of the text fields set as read only after signing.
    The java script has been placed in the post sign event of a digital signature field.
    for(var i=0;i<this.numFields;i++) {
    var cNm = this.getNthFieldName(i);
    if (cNm.type = "text") this.getField(cNm).readonly = true;
    After signing the form the following console error is shown:
    this.getNthFieldName is not a function
    Can anyone please advise how to revise the script so that when the form is signed all of the text fields become ready only?
    Any assistance will be most appreciated.
    Thank you.

    You don't need any JavaScript to do this.
    In Designer you can setup the signature field in that way, that all fields will be locked after signing.
    Look here:
    http://forums.adobe.com/message/3121870?tstart=2

  • Loading images into text field - links problem

    Hello,
    I use AS3 and I load external text from XML to the text field created manually. External text includes hyperlinks and <img> tags. The problem is if I load more than 1 image this way , my links no longer work. They work if I load only 1 image...
    Text field is multiline, wraps the text, got embedded font and autoSize is set to "left"...
    I could not find any solution to this, is there any?!
    Thanks for any thoughts.

    // XML
    <?xml version="1.0" encoding="utf-8"?>
    <content>
    <text><![CDATA[<font color="#ffffff" size="25"><b>Title</b></font>
    <br />
    <a href="www.google.com" target="_blank">Nulla tincidunt</a> commodo <b>fermentum. Suspendisse</b> venenatis suscipit vehicula. Phasellus eu est non tellus fringilla mattis id in magna. Nullam suscipit fermentum ipsum, at semper ante auctor viverra. Morbi gravida tristique aliquam. Mauris facilisis urna et arcu rhoncus ac tempor velit consectetur. Vestibulum lacus justo, rutrum vitae ultrices nec, porta quis orci. Proin pellentesque mauris quis eros semper vulputate. Etiam sed magna et dolor dapibus sodales.
    <br />
    <img src="content/image.jpg">
    <br />Vivamus sit amet metus orci, facilisis dignissim arcu. Suspendisse fringilla varius mauris, in gravida purus cursus non. Integer lacinia faucibus turpis, nec tempus leo porttitor quis. Cras id posuere elit.
    <br />
    In eros purus, commodo eu fermentum id, blandit ut ligula. Curabitur arcu dolor, laoreet convallis fermentum eu, ullamcorper id est. <a href="www.google.com" target="_blank">Etiam varius viverra dui eu placerat</a>.
    <br />
    <img src="content/image.jpg">
    <br /><a href="www.google.com" target="_blank">Nulla tincidunt</a> commodo fermentum. Suspendisse venenatis suscipit vehicula. Phasellus eu est non tellus fringilla mattis id in magna.]]>
    </text>
    </content>
    // AS
    var myXML:XML;
    // inside "Event.COMPLETE" function
    myXML = new XML(xmlLoader.data);
    myText.htmlText = myXML.text.*;

  • How to autopopulate a text field with unique data from multiple data sets

    Hi,
    I'm a laboratory manager in charge of a hospital project which will be using pdf forms to send and receive data from our end users across the city. I need help with the last part of our pdf form, specifically with a js that will do a bit of text-field autopopulation magic. This, unfortunately, is a beyond what I have taught myself about pdf js functionality.a
    The problem:
    I need to provide my end users with a text field containing a set of data [A, B, C, D, E, F ...] and the total items in this set [tot#]. The end user needs this information as part of the implementation of this particular laboratory machine.
    The particulars
    When the end user asks for an experiment to be run, we must specify some pieces of data to help them interpret the results. These are constructed as panels which contain discrete data elements.
    For example - One experiment may use two panels, Panel#1 and Panel #2. Panel #1 includes the items A, B, D, E, Panel #2 includes the items A, B, C, F, G.
    Thus, the panels may share some of the same items, but, I only want the unique members to be displayed in the text field. If I make a drop down box or checkboxes with the panels, I want to  be able to select the panels that we ran and (in this example) have the text field display only the unique items among all the panels that were used:
    textfield outpute = A, B, C, D, E, F, G - 7 total.
    Any assistance from the pdf community would be very much appreciated.
    Thanks!

    Thanks for that help.
    I should have made it more apparent that I'm very new to scripting and I'm
    not a programmer by trade. I have a few questions before modifying the code
    you kindly provided.
    1) Where should I embed this script? Within the 'selection change' area of
    my listbox?
    2) Can I replace the term 'arr' with the names of the various items in my
    listbox or should I put 'arr#' as the output value for each term?
    3) Will this script find and display the unique values when a user selects
    multiple items in my listbox?
    4) How does the script know where to output the unique members of the
    combined set?
    I appreciate your patience with me.
    ck

  • Text field highlighting Issue in oracle forms 11g after migrating from 10g

    We have migrated the oracle forms from 10g to 11g.
    On 10g oracle form when I click on the text item then text item value gets hilighted in blue color but after converting same form(without making any code changes) into 11g version form when I click on then text item then value is NOT hilighted.
    Could please help me why it's behaving different? Are there any configuration changes required at the application server side?
    Thanks

    christian,
    We have forms 11.1.1.2.0.
    In oracle forms “text item value is highlighted When user clicks on text item” is controlled by form level property “KEEP CURSOR POSITION”.
    This property is not working with JAVA SUN plug-in in forms version 11.1.1.2.0.
    This issue has been fixed under Patch Set 2 (11.1.1.3.0). Please see below meta link.
    https://support.oracle.com:443/CSP/ui/flash.html#tab=KBHome(page=KBHome&id=()),(page=KBNavigator&id=(bmDocDsrc=KB&bmDocType=BULLETIN&bmDocID=1099499.1&from=BOOKMARK&bmDocTitle=Fixed%20Bugs%20List%20-%20Patch%20Set%202%20(11.1.1.3.0)%20for%20Oracle%20Fusion%20Middleware%2011g&viewingMode=1143))
    Thanks,
    Satish N

  • WRVS4400N -- authentication problem after modifying UPnP router setting

    After I enable or disable UPnP on the WRVS440N, save, and then navigate to any settings tab, I am prompted to re-authenticate with the router.  I am then unable to authenticate to the router using the router's username/password credentials, however, I am able to enter admin/admin to access the router.  If I reboot the router, the problem is fixed.  Have others encountered this problem?    Thanks.  (Firmware version V1.1.03).

    Good advice.  Thanks  I can recreate the problem.  I reset the router and the problem was initially resolved.  However, when  I started to reapply port-forward settings, among others…and then I enabled 'Dual-Stack IP,' the router rebooted, and the original problem remerged.  Subsequent to the reboot of the router, I enabled/disabled UPnP and had to reauthenticate to the router with userid=admin, password=admin, even though I had already updated that user list entry with my new credentials.
    I suppose that if this problem went undetected by the person configuring the router, anybody on the subnet, or potentially someone probing for this exposure from the Internet, could access the router.  I had configured the remote-management option on the default port of 8080, and I was able to https in over that port from the Internet-wan side of the router, and authenticate using admin/admin until I rebooted the router.

  • Audio problem after burned DVD on set top player only?

    My burned DVD's play great on any computer PC or MAC but on client's (and mine) set top DVD player the first 3 seconds of the 30-min program don't play any audio???
    Client's set top DVD player is brand new and has HDMI out puts, my player is old, 3 years maybe but both players do the exact same thing...the DVD's we're trying to play on the DVD players are all built and burnt from Mac using DVD SP. So the menus all work, even the audio perfectly, but when you choose the program it won't play the audio for 3 sec, then it kicks in, though the video plays perfectly from beginning. I've got 1 sec of Black at the head of program, then it fades up to first shot. I've got that same black slug on both audio tracks for 1 sec as well...tried with and without the black in the audio tracks, no change. Now on a 4 year old Panasonic EM-50 something DVD recorder/player the DVD's did work.
    Thoughts?
    K

    Hi tomwros
    Welcome to apple discussions. Sorry to hear you are having problems navigating a burned disc. In most cases on apple discussions it's the result of the media and not of the hardware / software.
    Please tell us which brands you have tried. Include speed of the media itself and if it's plus or minus media. Also when you used Roxio Toast, what speed did you burn at within Toast?
    SDMacuser

  • Cost booking problem after TECO status was set

    Dear All,
    Can any one tell me reason why cost is booked to the TECO project, now what i have to do? pl help me to solve the issue.
    Regards
    Karunakaran

    Hi,
    I think system behaviour is correct. Although the project is technically complete, it should allow cost posting such as pending invoices before project closure.
    If at all you want to block the cost booking then you can very well make use of user statuses and block the business transactions.
    Regards

  • How to auto capitalize after a period in text field

    Is there a way to make a text field auto capitalize after a period if the user has forgotten. I am currently using LiveCycle Designer ES4

    Try putting the following in the exit event of your text field:
    this.rawValue=this.rawValue.replace(/(^\w{1}|\.\s*\w{1})/gi, function(a){return a.toUpperCase();});
    Kyle

  • Changing text  field (need more positions) of variant ZUK01 in FF67

    I am using a variant called ZUK01 in FF67. In that variant I have a Line item text field, but with not enough positions.
    Is it possible to change the field properties so I can change the positions of the field?
    I want to use the variant but need to feel in more text then I have positions.
    Is it possible to change it? So yes where can I find it?

    Hi,
    You could go to OT43 tcode (screen variant maintenance for manual bank statement); double click on your variant and note down your Field name (for text); then click on "Technical names" and note down the table and field for that field name. Then, from SE11; you can find out how many characters that field (data element) allows. Then, you can talk to ABAP team member for the possibilities: to enhance that data element or use another field for your purpose.
    Mani

  • Clicking in text field crashes Safari

    The website www.kissinthepost.co.uk has a feature that allows end users to customise greetings cards; images and text can be added.
    If one adds a text field to the card that they are trying to customise then clicks twice in said text field Safari crashes.  This is the only browser that this happens in.
    The browser version is 8.0 (10600.1.25), the OS is OS X Yosemite
    The crash log is below, does anyone have any suggestions?
    Process: com.apple.WebKit.WebContent [400]
    Path: /System/Library/Frameworks/WebKit.framework/Versions/A/XPCServices/com.apple.We bKit.WebContent.xpc/Contents/MacOS/com.apple.WebKit.WebContent
    Identifier: com.apple.WebKit.WebContent
    Version: 10600 (10600.1.25)
    Build Info: WebKit2-7600001025000000~1
    Code Type: X86-64 (Native)
    Parent Process: ??? [1]
    Responsible: Safari [200]
    User ID: 501
    Date/Time: 2014-11-03 14:23:35.311 +0000
    OS Version: Mac OS X 10.10 (14A389)
    Report Version: 11
    Anonymous UUID: A2E96D2F-CCFC-42A3-6790-F58139DD6CB3
    Sleep/Wake UUID: B3621997-3437-4A01-AB9E-2D1E3A4DB43F
    Time Awake Since Boot: 4300 seconds
    Time Since Wake: 210 seconds
    Crashed Thread: 0 Dispatch queue: com.apple.main-thread
    Exception Type: EXC_BAD_ACCESS (SIGSEGV)
    Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000014
    VM Regions Near 0x14:
    -->
    __TEXT 0000000106d39000-0000000106d3a000 [ 4K] r-x/rwx SM=COW /System/Library/Frameworks/WebKit.framework/Versions/A/XPCServices/com.apple.We bKit.WebContent.xpc/Contents/MacOS/com.apple.WebKit.WebContent
    Application Specific Information:
    Bundle controller class:
    BrowserBundleController
    Process Model:
    Multiple Web Processes
    Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
    0 com.apple.WebCore 0x00007fff82f9aa1f WebCore::Element::isFocusable() const + 239
    1 com.apple.WebCore 0x00007fff83040f86 WebCore::HTMLFormControlElement::isFocusable() const + 86
    2 com.apple.WebCore 0x00007fff8302168c WebCore::FrameSelection::setFocusedElementIfNeeded() + 268
    3 com.apple.WebCore 0x00007fff833799c5 WebCore::FrameSelection::setSelectionWithoutUpdatingAppearance(WebCore::Visible Selection const&, unsigned int, WebCore::FrameSelection::CursorAlignOnScroll, WebCore::TextGranularity) + 1685
    4 com.apple.WebCore 0x00007fff82e6fa18 WebCore::FrameSelection::setSelection(WebCore::VisibleSelection const&, unsigned int, WebCore::FrameSelection::CursorAlignOnScroll, WebCore::TextGranularity) + 24
    5 com.apple.WebCore 0x00007fff83378287 WebCore::FrameSelection::moveWithoutValidationTo(WebCore::Position const&, WebCore::Position const&, bool, bool) + 103
    6 com.apple.WebCore 0x00007fff83063ff7 WebCore::HTMLTextFormControlElement::setSelectionRange(int, int, WebCore::TextFieldSelectionDirection) + 631
    7 com.apple.WebCore 0x00007fff83662977 WebCore::setJSHTMLTextAreaElementSelectionStart(JSC::ExecState*, JSC::JSObject*, long long, long long) + 375
    8 com.apple.JavaScriptCore 0x00007fff8d2f1d27 JSC::JSObject::put(JSC::JSCell*, JSC::ExecState*, JSC::PropertyName, JSC::JSValue, JSC::PutPropertySlot&) + 1319
    9 com.apple.JavaScriptCore 0x00007fff8d4cf0c0 llint_slow_path_put_by_id + 576
    10 com.apple.JavaScriptCore 0x00007fff8d6d211d llint_entry + 10839
    11 com.apple.JavaScriptCore 0x00007fff8d6d4f33 llint_entry + 22637
    12 com.apple.JavaScriptCore 0x00007fff8d6d4f33 llint_entry + 22637
    13 ??? 0x000030bdabc066cc 0 + 53591188465356
    14 com.apple.JavaScriptCore 0x00007fff8d6d4f33 llint_entry + 22637
    15 com.apple.JavaScriptCore 0x00007fff8d6d4f33 llint_entry + 22637
    16 com.apple.JavaScriptCore 0x00007fff8d6cf4a1 callToJavaScript + 311
    17 com.apple.JavaScriptCore 0x00007fff8d654823 JSC::JITCode::execute(JSC::VM*, JSC::ProtoCallFrame*) + 35
    18 com.apple.JavaScriptCore 0x00007fff8d317e5e JSC::Interpreter::executeCall(JSC::ExecState*, JSC::JSObject*, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) + 462
    19 com.apple.JavaScriptCore 0x00007fff8d317c7e JSC::call(JSC::ExecState*, JSC::JSValue, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) + 62
    20 com.apple.JavaScriptCore 0x00007fff8d46649a JSC::boundFunctionCall(JSC::ExecState*) + 586
    21 com.apple.JavaScriptCore 0x00007fff8d6cf63f callToNativeFunction + 317
    22 com.apple.JavaScriptCore 0x00007fff8d317ea4 JSC::Interpreter::executeCall(JSC::ExecState*, JSC::JSObject*, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) + 532
    23 com.apple.JavaScriptCore 0x00007fff8d4ee4cf JSC::call(JSC::ExecState*, JSC::JSValue, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&, JSC::JSValue*) + 63
    24 com.apple.WebCore 0x00007fff82f1d968 WebCore::JSEventListener::handleEvent(WebCore::ScriptExecutionContext*, WebCore::Event*) + 952
    25 com.apple.WebCore 0x00007fff82f1d424 WebCore::EventTarget::fireEventListeners(WebCore::Event*, WebCore::EventTargetData*, ***::Vector<WebCore::RegisteredEventListener, 1ul, ***::CrashOnOverflow>&) + 692
    26 com.apple.WebCore 0x00007fff82df1f67 WebCore::EventTarget::fireEventListeners(WebCore::Event*) + 167
    27 com.apple.WebCore 0x00007fff83315e6e WebCore::MouseOrFocusEventContext::handleLocalEvents(WebCore::Event&) const + 190
    28 com.apple.WebCore 0x00007fff8331636f WebCore::EventDispatcher::dispatchEvent(WebCore::Node*, ***::PassRefPtr<WebCore::Event>) + 959
    29 com.apple.WebCore 0x00007fff82df1d7d WebCore::Node::dispatchEvent(***::PassRefPtr<WebCore::Event>) + 29
    30 com.apple.WebCore 0x00007fff8330d30b WebCore::Element::dispatchMouseEvent(WebCore::PlatformMouseEvent const&, ***::AtomicString const&, int, WebCore::Element*) + 267
    31 com.apple.WebCore 0x00007fff82f94df7 WebCore::EventHandler::dispatchMouseEvent(***::AtomicString const&, WebCore::Node*, bool, int, WebCore::PlatformMouseEvent const&, bool) + 119
    32 com.apple.WebCore 0x00007fff82f99ecf WebCore::EventHandler::handleMousePressEvent(WebCore::PlatformMouseEvent const&) + 1567
    33 com.apple.WebKit 0x00007fff89dd9e44 WebKit::handleMouseEvent(WebKit::WebMouseEvent const&, WebKit::WebPage*, bool) + 210
    34 com.apple.WebKit 0x00007fff89dd9d38 WebKit::WebPage::mouseEvent(WebKit::WebMouseEvent const&) + 202
    35 com.apple.WebKit 0x00007fff89f607d6 void IPC::handleMessage<Messages::WebPage::MouseEvent, WebKit::WebPage, void (WebKit::WebPage::*)(WebKit::WebMouseEvent const&)>(IPC::MessageDecoder&, WebKit::WebPage*, void (WebKit::WebPage::*)(WebKit::WebMouseEvent const&)) + 84
    36 com.apple.WebKit 0x00007fff89f5dc62 WebKit::WebPage::didReceiveWebPageMessage(IPC::Connection*, IPC::MessageDecoder&) + 1414
    37 com.apple.WebKit 0x00007fff89e9f6c2 IPC::MessageReceiverMap::dispatchMessage(IPC::Connection*, IPC::MessageDecoder&) + 120
    38 com.apple.WebKit 0x00007fff89f91e04 WebKit::WebProcess::didReceiveMessage(IPC::Connection*, IPC::MessageDecoder&) + 28
    39 com.apple.WebKit 0x00007fff89e5316a IPC::Connection::dispatchMessage(std::__1::unique_ptr<IPC::MessageDecoder, std::__1::default_delete<IPC::MessageDecoder> >) + 94
    40 com.apple.WebKit 0x00007fff89e552e2 IPC::Connection::dispatchOneMessage() + 114
    41 com.apple.JavaScriptCore 0x00007fff8d776357 ***::RunLoop::performWork() + 423
    42 com.apple.JavaScriptCore 0x00007fff8d776a22 ***::RunLoop::performWork(void*) + 34
    43 com.apple.CoreFoundation 0x00007fff8ea7a661 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
    44 com.apple.CoreFoundation 0x00007fff8ea6c7ed __CFRunLoopDoSources0 + 269
    45 com.apple.CoreFoundation 0x00007fff8ea6be1f __CFRunLoopRun + 927
    46 com.apple.CoreFoundation 0x00007fff8ea6b838 CFRunLoopRunSpecific + 296
    47 com.apple.HIToolbox 0x00007fff8ffd443f RunCurrentEventLoopInMode + 235
    48 com.apple.HIToolbox 0x00007fff8ffd41ba ReceiveNextEventCommon + 431
    49 com.apple.HIToolbox 0x00007fff8ffd3ffb _BlockUntilNextEventMatchingListInModeWithFilter + 71
    50 com.apple.AppKit 0x00007fff87251821 _DPSNextEvent + 964
    51 com.apple.AppKit 0x00007fff87250fd0 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 194
    52 com.apple.AppKit 0x00007fff87244f73 -[NSApplication run] + 594
    53 com.apple.AppKit 0x00007fff87230424 NSApplicationMain + 1832
    54 libxpc.dylib 0x00007fff8ff1eef2 _xpc_objc_main + 793
    55 libxpc.dylib 0x00007fff8ff20a9d xpc_main + 490
    56 com.apple.WebKit.WebContent 0x0000000106d39b40 0x106d39000 + 2880
    57 libdyld.dylib 0x00007fff8a9765c9 start + 1
    Thread 1:: Dispatch queue: com.apple.libdispatch-manager
    0 libsystem_kernel.dylib 0x00007fff8ee1822e kevent64 + 10
    1 libdispatch.dylib 0x00007fff8965fa6a _dispatch_mgr_thread + 52
    Thread 2:
    0 libsystem_kernel.dylib 0x00007fff8ee1252e mach_msg_trap + 10
    1 libsystem_kernel.dylib 0x00007fff8ee1169f mach_msg + 55
    2 com.apple.CoreFoundation 0x00007fff8ea6cb14 __CFRunLoopServiceMachPort + 212
    3 com.apple.CoreFoundation 0x00007fff8ea6bfdb __CFRunLoopRun + 1371
    4 com.apple.CoreFoundation 0x00007fff8ea6b838 CFRunLoopRunSpecific + 296
    5 com.apple.AppKit 0x00007fff873b48f7 _NSEventThread + 137
    6 libsystem_pthread.dylib 0x00007fff8683c2fc _pthread_body + 131
    7 libsystem_pthread.dylib 0x00007fff8683c279 _pthread_start + 176
    8 libsystem_pthread.dylib 0x00007fff8683a4b1 thread_start + 13
    Thread 3:: WebCore: Scrolling
    0 libsystem_kernel.dylib 0x00007fff8ee1252e mach_msg_trap + 10
    1 libsystem_kernel.dylib 0x00007fff8ee1169f mach_msg + 55
    2 com.apple.CoreFoundation 0x00007fff8ea6cb14 __CFRunLoopServiceMachPort + 212
    3 com.apple.CoreFoundation 0x00007fff8ea6bfdb __CFRunLoopRun + 1371
    4 com.apple.CoreFoundation 0x00007fff8ea6b838 CFRunLoopRunSpecific + 296
    5 com.apple.CoreFoundation 0x00007fff8eb21ed1 CFRunLoopRun + 97
    6 com.apple.WebCore 0x00007fff82e4e654 WebCore::ScrollingThread::initializeRunLoop() + 244
    7 com.apple.JavaScriptCore 0x00007fff8d2c1a9f ***::wtfThreadEntryPoint(void*) + 15
    8 libsystem_pthread.dylib 0x00007fff8683c2fc _pthread_body + 131
    9 libsystem_pthread.dylib 0x00007fff8683c279 _pthread_start + 176
    10 libsystem_pthread.dylib 0x00007fff8683a4b1 thread_start + 13
    Thread 4:: JavaScriptCore::BlockFree
    0 libsystem_kernel.dylib 0x00007fff8ee17132 __psynch_cvwait + 10
    1 libc++.1.dylib 0x00007fff867bad2e std::__1::condition_variable::__do_timed_wait(std::__1::unique_lock<std::__1::m utex>&, std::__1::chrono::time_point<std::__1::chrono::system_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >) + 126
    2 com.apple.JavaScriptCore 0x00007fff8d4dd3fa JSC::BlockAllocator::waitForDuration(std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000l> >) + 170
    3 com.apple.JavaScriptCore 0x00007fff8d2cc244 JSC::BlockAllocator::blockFreeingThreadMain() + 84
    4 com.apple.JavaScriptCore 0x00007fff8d2c1a9f ***::wtfThreadEntryPoint(void*) + 15
    5 libsystem_pthread.dylib 0x00007fff8683c2fc _pthread_body + 131
    6 libsystem_pthread.dylib 0x00007fff8683c279 _pthread_start + 176
    7 libsystem_pthread.dylib 0x00007fff8683a4b1 thread_start + 13
    Thread 5:: JavaScriptCore::Marking
    0 libsystem_kernel.dylib 0x00007fff8ee17132 __psynch_cvwait + 10
    1 libc++.1.dylib 0x00007fff867bac95 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 47
    2 com.apple.JavaScriptCore 0x00007fff8d2cc86b JSC::GCThread::waitForNextPhase() + 171
    3 com.apple.JavaScriptCore 0x00007fff8d2cc6c8 JSC::GCThread::gcThreadMain() + 88
    4 com.apple.JavaScriptCore 0x00007fff8d2c1a9f ***::wtfThreadEntryPoint(void*) + 15
    5 libsystem_pthread.dylib 0x00007fff8683c2fc _pthread_body + 131
    6 libsystem_pthread.dylib 0x00007fff8683c279 _pthread_start + 176
    7 libsystem_pthread.dylib 0x00007fff8683a4b1 thread_start + 13
    Thread 6:: JavaScriptCore::Marking
    0 libsystem_kernel.dylib 0x00007fff8ee17132 __psynch_cvwait + 10
    1 libc++.1.dylib 0x00007fff867bac95 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 47
    2 com.apple.JavaScriptCore 0x00007fff8d2cc86b JSC::GCThread::waitForNextPhase() + 171
    3 com.apple.JavaScriptCore 0x00007fff8d2cc6c8 JSC::GCThread::gcThreadMain() + 88
    4 com.apple.JavaScriptCore 0x00007fff8d2c1a9f ***::wtfThreadEntryPoint(void*) + 15
    5 libsystem_pthread.dylib 0x00007fff8683c2fc _pthread_body + 131
    6 libsystem_pthread.dylib 0x00007fff8683c279 _pthread_start + 176
    7 libsystem_pthread.dylib 0x00007fff8683a4b1 thread_start + 13
    Thread 7:: JavaScriptCore::Marking
    0 libsystem_kernel.dylib 0x00007fff8ee17132 __psynch_cvwait + 10
    1 libc++.1.dylib 0x00007fff867bac95 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 47
    2 com.apple.JavaScriptCore 0x00007fff8d2cc86b JSC::GCThread::waitForNextPhase() + 171
    3 com.apple.JavaScriptCore 0x00007fff8d2cc6c8 JSC::GCThread::gcThreadMain() + 88
    4 com.apple.JavaScriptCore 0x00007fff8d2c1a9f ***::wtfThreadEntryPoint(void*) + 15
    5 libsystem_pthread.dylib 0x00007fff8683c2fc _pthread_body + 131
    6 libsystem_pthread.dylib 0x00007fff8683c279 _pthread_start + 176
    7 libsystem_pthread.dylib 0x00007fff8683a4b1 thread_start + 13
    Thread 8:: JavaScriptCore::Marking
    0 libsystem_kernel.dylib 0x00007fff8ee17132 __psynch_cvwait + 10
    1 libc++.1.dylib 0x00007fff867bac95 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 47
    2 com.apple.JavaScriptCore 0x00007fff8d2cc86b JSC::GCThread::waitForNextPhase() + 171
    3 com.apple.JavaScriptCore 0x00007fff8d2cc6c8 JSC::GCThread::gcThreadMain() + 88
    4 com.apple.JavaScriptCore 0x00007fff8d2c1a9f ***::wtfThreadEntryPoint(void*) + 15
    5 libsystem_pthread.dylib 0x00007fff8683c2fc _pthread_body + 131
    6 libsystem_pthread.dylib 0x00007fff8683c279 _pthread_start + 176
    7 libsystem_pthread.dylib 0x00007fff8683a4b1 thread_start + 13
    Thread 9:: JavaScriptCore::Marking
    0 libsystem_kernel.dylib 0x00007fff8ee17132 __psynch_cvwait + 10
    1 libc++.1.dylib 0x00007fff867bac95 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 47
    2 com.apple.JavaScriptCore 0x00007fff8d2cc86b JSC::GCThread::waitForNextPhase() + 171
    3 com.apple.JavaScriptCore 0x00007fff8d2cc6c8 JSC::GCThread::gcThreadMain() + 88
    4 com.apple.JavaScriptCore 0x00007fff8d2c1a9f ***::wtfThreadEntryPoint(void*) + 15
    5 libsystem_pthread.dylib 0x00007fff8683c2fc _pthread_body + 131
    6 libsystem_pthread.dylib 0x00007fff8683c279 _pthread_start + 176
    7 libsystem_pthread.dylib 0x00007fff8683a4b1 thread_start + 13
    Thread 10:: JavaScriptCore::Marking
    0 libsystem_kernel.dylib 0x00007fff8ee17132 __psynch_cvwait + 10
    1 libc++.1.dylib 0x00007fff867bac95 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 47
    2 com.apple.JavaScriptCore 0x00007fff8d2cc86b JSC::GCThread::waitForNextPhase() + 171
    3 com.apple.JavaScriptCore 0x00007fff8d2cc6c8 JSC::GCThread::gcThreadMain() + 88
    4 com.apple.JavaScriptCore 0x00007fff8d2c1a9f ***::wtfThreadEntryPoint(void*) + 15
    5 libsystem_pthread.dylib 0x00007fff8683c2fc _pthread_body + 131
    6 libsystem_pthread.dylib 0x00007fff8683c279 _pthread_start + 176
    7 libsystem_pthread.dylib 0x00007fff8683a4b1 thread_start + 13
    Thread 11:: DFG Worklist Worker Thread
    0 libsystem_kernel.dylib 0x00007fff8ee17132 __psynch_cvwait + 10
    1 com.apple.JavaScriptCore 0x00007fff8d5c3f1b JSC::DFG::Worklist::runThread(JSC::DFG::ThreadData*) + 219
    2 com.apple.JavaScriptCore 0x00007fff8d2c1a9f ***::wtfThreadEntryPoint(void*) + 15
    3 libsystem_pthread.dylib 0x00007fff8683c2fc _pthread_body + 131
    4 libsystem_pthread.dylib 0x00007fff8683c279 _pthread_start + 176
    5 libsystem_pthread.dylib 0x00007fff8683a4b1 thread_start + 13
    Thread 12:
    0 libsystem_kernel.dylib 0x00007fff8ee17946 __workq_kernreturn + 10
    1 libsystem_pthread.dylib 0x00007fff8683a4a1 start_wqthread + 13
    Thread 13:
    0 libsystem_kernel.dylib 0x00007fff8ee17946 __workq_kernreturn + 10
    1 libsystem_pthread.dylib 0x00007fff8683a4a1 start_wqthread + 13
    Thread 14:
    0 libsystem_kernel.dylib 0x00007fff8ee17946 __workq_kernreturn + 10
    1 libsystem_pthread.dylib 0x00007fff8683a4a1 start_wqthread + 13
    Thread 15:
    0 libsystem_kernel.dylib 0x00007fff8ee17946 __workq_kernreturn + 10
    1 libsystem_pthread.dylib 0x00007fff8683a4a1 start_wqthread + 13
    Thread 16:: CVDisplayLink
    0 libsystem_kernel.dylib 0x00007fff8ee17132 __psynch_cvwait + 10
    1 com.apple.CoreVideo 0x00007fff89c94ff8 CVDisplayLink::waitUntil(unsigned long long) + 240
    2 com.apple.CoreVideo 0x00007fff89c944b3 CVDisplayLink::runIOThread() + 511
    3 com.apple.CoreVideo 0x00007fff89c9429b startIOThread(void*) + 147
    4 libsystem_pthread.dylib 0x00007fff8683c2fc _pthread_body + 131
    5 libsystem_pthread.dylib 0x00007fff8683c279 _pthread_start + 176
    6 libsystem_pthread.dylib 0x00007fff8683a4b1 thread_start + 13
    Thread 0 crashed with X86 Thread State (64-bit):
    rax: 0x000000010b9d7700 rbx: 0x0000000000000000 rcx: 0x0000000000000800 rdx: 0x0000000000202902
    rdi: 0x000000010d3e52a0 rsi: 0x000000010fd92f00 rbp: 0x00007fff58ec37a0 rsp: 0x00007fff58ec3790
    r8: 0x0000000000000000 r9: 0x0000000000000000 r10: 0x0000000116dec780 r11: 0x0000000000000000
    r12: 0x0000000000000000 r13: 0x0000000110285798 r14: 0x000000010b991dc0 r15: 0x000000010d3e52a0
    rip: 0x00007fff82f9aa1f rfl: 0x0000000000010246 cr2: 0x0000000000000014
    Logical CPU: 4
    Error Code: 0x00000004
    Trap Number: 14
    Binary Images:
    0x106d39000 - 0x106d39ffb com.apple.WebKit.WebContent (10600 - 10600.1.25) <0052B6B6-528C-376E-AF59-16E17BB206E3> /System/Library/Frameworks/WebKit.framework/Versions/A/XPCServices/com.apple.We bKit.WebContent.xpc/Contents/MacOS/com.apple.WebKit.WebContent
    0x106d43000 - 0x106d43fff WebProcessShim.dylib (7600.1.25) <98D0302B-2534-38AA-915E-3B367C1908AC> /System/Library/Frameworks/WebKit.framework/WebProcess.app/Contents/MacOS/WebPr ocessShim.dylib
    0x10ba7a000 - 0x10ba7affb com.apple.datadetectors.plugins.phone (6.0 - 396.1) <B19E8E8D-18AC-392F-AC01-E6B8A7FF45E8> /System/Library/PrivateFrameworks/DataDetectorsCore.framework/PlugIns/PhoneNumb ers.plugin/PhoneNumbers
    0x10c54c000 - 0x10c552ff7 com.apple.SymptomReporter (1.0 - 1) <3191E395-6284-3C5F-BDA2-BB061CF00B51> /System/Library/PrivateFrameworks/Symptoms.framework/Frameworks/SymptomReporter .framework/SymptomReporter
    0x10c92b000 - 0x10c92cfff ATSHI.dylib (375) <D97F7F10-54A1-3148-9D0C-D420298F5053> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ATS.framework/Versions/A/Resources/ATSHI.dylib
    0x10d3f9000 - 0x10d40bfff com.apple.webcontentfilter.framework (5.1 - 5.1) <9A7E8B12-BDB4-3FB1-9283-48BDF586B624> /System/Library/PrivateFrameworks/WebContentAnalysis.framework/WebContentAnalys is
    0x10d421000 - 0x10d4d4ff7 com.apple.NetworkExtension (1.0 - 1) <30A5B116-F7A3-3523-85C8-D457CAB6BB8A> /System/Library/Frameworks/NetworkExtension.framework/NetworkExtension
    0x10da08000 - 0x10da15fff libGPUSupport.dylib (11.0.7) <2DCF62FB-CC3A-35F9-A3A0-3D7251EA347F> /System/Library/PrivateFrameworks/GPUSupport.framework/Versions/A/Libraries/lib GPUSupport.dylib
    0x123400000000 - 0x123400353ff7 com.apple.driver.AppleIntelHD3000GraphicsGLDriver (10.0.19 - 10.0.0) <4FB6C276-D81A-3DEA-A5EA-0FB3C534D47B> /System/Library/Extensions/AppleIntelHD3000GraphicsGLDriver.bundle/Contents/Mac OS/AppleIntelHD3000GraphicsGLDriver
    0x123480000000 - 0x12348029afff com.apple.AMDRadeonX3000GLDriver (1.28.29 - 1.2.8) <80C2C15B-DE39-3CD9-AA0E-14ADBA3ED930> /System/Library/Extensions/AMDRadeonX3000GLDriver.bundle/Contents/MacOS/AMDRade onX3000GLDriver
    0x7fff62d1e000 - 0x7fff62d54837 dyld (353.2.1) <4696A982-1500-34EC-9777-1EF7A03E2659> /usr/lib/dyld
    0x7fff80cc3000 - 0x7fff80cc6fff com.apple.help (1.3.3 - 46) <CA4541F4-CEF5-355C-8F1F-EA65DC1B400F> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framewor k/Versions/A/Help
    0x7fff80cc7000 - 0x7fff80d07ff7 com.apple.CloudDocs (1.0 - 280.1) <21D7E10A-99EF-34BE-82D7-29A6F1761DE5> /System/Library/PrivateFrameworks/CloudDocs.framework/Versions/A/CloudDocs

    I must seem a bit weird being the only one to reply to my posts, but I found what is occuring, is that when I do the mouse click the InputVerifier for that JTextField is firing. This is causing a problem, because this input verifier pops up a dialog saying please enter correct values ... and then highlights the entire text field. Problem is if the input is currently invalid I can't use the mouse.
    Any ideas?
    Tom

  • To limit number of characters in a text field...

    I did a little research. My goal is to limit the number of characters in the textfield by 50.
    If the results of my research are correct, I have to create a JFormattedTextField, then use a MaskFormatter with a mask of 50 asteriks. Is that correct? Any other suggestions?
    Thanks in advance.

    I've got a problem using a JFormattedTextField.
    Each time the the text field gains focus, the caret does no move to the end of the text. It appears at the start of it. plus, any text i typed will overwrite the character already typed in, as if you've pressed the INSERT button during typing in a text editor.
    What caused that and how do I resolve it?
    Thanks a lot for the help ;)

  • Search and Replace values in the text field before values are stored to DB

    Hi,
    In my application there is a question - text area and answer - text field. Problem is, some answers are stored with the single quotes to the DB and I have a problem while retrieving it from the DB. I need to replace the 1 single quotes with 2 single quotes. The values are stored to the DB when the submit button is clicked.
    So I am using the following javascript code:
    italics
    <script type="text/javascript">
    function test()
    var str="&P2_S1.";
    document.write(escape(str));
    </script>
    italics
    I need to call this javascript function, when the submit button is clicked but BEFORE the values are stored to the DB. How can i get this done?
    Please let me know.

    Hi,
    Thanks for the reply.
    Yeah I planned to drop the Javascript idea.
    Now, I am using the PL/SQL code. This is what I am planning to do.
    When the user enters any word like this, Test's, this single quote should be replaced by some special character, #@@#, - what is the PL/SQL code for this?
    Right now my PL/SQL code is:
    begin
    update test set S1=:P2_S1 where name=:APP_USER;
    end;
    so the replacing part should come somewhere before the update statement.... how can I do it?
    from the DB when the values are retrieved, I use the following code:
    select REPLACE(s1,'''','') from test where NAME=:APP_USER; // this works fine.
    Please help me with the replace of the single quote before the update process...

Maybe you are looking for

  • After upgrading to Lion should I have tatty grey screen on opening with boxes for password user?

    After upgrading to Lion on Wednesday last I now have a tatty grey screen on booting-up with the two boxes for user name and password.Gone is the old blue screen. Does anyone else have a grey opening screen? Also this evening on booting the grey scree

  • Web service - is it possible to send a file consuming a web service ?

    Hello expert, I need to send a file via web service. I think that i have to expose my web service, but my question is: is it possible send or receive a file only consuming one or more web service ? tks.

  • Why are hp trackpads on the left side of the computer?

    i have a dv5000 (made in 2006). the trackpad is centered, equal distance from the left and right sides of the computer. all older models i have found had their trackpads centered. i was thinking of a new laptop. but on your website, all the models i'

  • My old Canon zr200 and my new macbook pro 13

    I have just moved to my macbook pro 12 from a macbook 13. I just got the adaptor to connect my canon zr200 mini dv via firewire. The camera and footage will show up, but will not import. Not manually or on auto. Upgrading laptops also upgraded Leopar

  • SBO Installation error message.

    Hi all, Sorry but this is not an SDK specific question! I am trying to install SBO 6.5 on a Windows XP laptop for demo purposes (first time install) - it is giving me an error message saying "could not create database" during the install. I came acro