Relocating/resetting the text cursor position

This is a very beginner question. I don't even know if it can be done in java, but I know it can be done in qbasic, so I hope so.
I want to move the location of the text cursor so it is set back to the initial location. That way, I can update the display, without the dos box scrolling.
As you may have guessed, yes, this is command line at the moment still. I don't know GUI stuff yet, I'm just learning.
In qbasic, what I would do is this: LOCATE 1,1
Can that be done in JAVA2?

Hi! Once a linefeed ("\n") is issued, you cannot go back as you would like. However, you can use a carriage return ("\r") character to achieve that effect, just like in C or C++. Here's a quick code snippet.
public class CmdScroll
   public static void main( String[] cmdArgs )
      for( int i = 0; i < 50; i++ )
         System.out.print( "Counter : " + i + "\r" );
         try
            Thread.sleep( 250 );
         catch( InterruptedException x )
}Don't worry about the try...catch block. That essentially puts the running thread to sleep for 250 ms, so that you can actually observe the counter update.
Hope this helps! Feel free to ask if something's not too clear.
Cheers!

Similar Messages

  • Inserting text into a field at the current cursor position

    Does anyone know how to insert text into a field at the current cursor position? I would like it to work similar to the Syntax Palette in Forms. I cannot figure out how to retrieve the current cursor position in order to manipulate the text.
    Any help would be great.
    Thanks.

    Hi,
    If the button and the textfield are on in the same subform then this code should work in the click event of the button
    (This is JavaScript code so make sure the code is set to JavaScript and Client on the drop downs in the script window)
    (assuming the name of the textfield is TextField1)
    TextField1.rawValue = "some value";
    If they are in different subforms then you have 2 options
    Please note in both these options it is easier if the subforms have names ( I am assuming this to keep samples simple)
    option 1 -
    use the parent object to move up the tree till you are at the same level as that of the subform that contains the textfield
    e.g. 
    (Click Event of the button)
    this.parent.subformname.TextField1.rawValue = "some value";
    option 2 -
    Use the resolve node to make your way down from the top level of the form
    xfa.resolveNode ("form1.subformname.TextField1").rawValue = "some value";
    Hope this helps
    Malcolm
    p.s. I am making assumptions as the image/file you attached did not appear for me.

  • DataTable Exception: Invalid operation for the current cursor position

    I have a JSF application that lists rows from a view in a SQL Server database. I have set up a commandLinks in an extra columns.
    The data is displayed properly, but when I select one of the commandLinks I get the "Invalid operation for the current cursor position" exception.
    Here's the source
    Domain.jsp
    <?xml version="1.0" encoding="UTF-8"?>
    <jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page">
        <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
        <f:view>
            <html lang="en-US" xml:lang="en-US">
                <head>
                    <meta content="no-cache" http-equiv="Cache-Control"/>
                    <meta content="no-cache" http-equiv="Pragma"/>
                    <title>Page1 Title</title>
                    <link href="resources/stylesheet.css" rel="stylesheet" type="text/css"/>
                </head>
                <body style="-rave-layout: grid">
                    <h:form binding="#{Domains.form1}" id="form1">
                        <h:dataTable binding="#{Domains.dataTable1}" headerClass="list-header" id="dataTable1" rowClasses="list-row-even,list-row-odd"
                            value="#{Domains.dataTable1Model}" var="currentRow">
                            <h:column binding="#{Domains.column9}" id="column9">
                                <h:selectBooleanCheckbox binding="#{Domains.checkbox2}" id="checkbox2"/>
                                <f:facet name="header">
                                    <h:outputText binding="#{Domains.outputText9}" id="outputText9" value="Select"/>
                                </f:facet>
                            </h:column>
                            <h:column binding="#{Domains.column10}" id="column10">
                                <f:facet name="header">
                                    <h:outputText binding="#{Domains.outputText4}" id="outputText4" value="Name"/>
                                </f:facet>
                                <h:commandLink action="#{Domains.groupList}" binding="#{Domains.linkAction1}" id="linkAction1">
                                    <h:graphicImage binding="#{Domains.image1}" id="image1" url="resources/images/domain16.gif" value="resources/images/domain16.gif"/>
                                    <h:outputText binding="#{Domains.linkAction1Text}" id="linkAction1Text" value="#{currentRow['name']}"/>
                                </h:commandLink>
                            </h:column>
                            <h:column binding="#{Domains.column3}" id="column3">
                                <h:outputText binding="#{Domains.outputText5}" id="outputText5" value="#{currentRow['description']}"/>
                                <f:facet name="header">
                                    <h:outputText binding="#{Domains.outputText6}" id="outputText6" value="Description"/>
                                </f:facet>
                            </h:column>
                            <h:column binding="#{Domains.column4}" id="column4">
                                <h:selectBooleanCheckbox binding="#{Domains.checkbox1}" id="checkbox1" value="#{Domains.domainviewRowSet.currentRow['enabled']}==1"/>
                                <f:facet name="header">
                                    <h:outputText binding="#{Domains.outputText8}" id="outputText8" value="Enabled"/>
                                </f:facet>
                            </h:column>
                            <h:column binding="#{Domains.column7}" id="column7">
                                <h:outputText binding="#{Domains.outputText13}" id="outputText13" value="#{currentRow['userCount']}"/>
                                <f:facet name="header">
                                    <h:outputText binding="#{Domains.outputText14}" id="outputText14" value="Users"/>
                                </f:facet>
                            </h:column>
                            <h:column binding="#{Domains.column8}" id="column8">
                                <h:outputText binding="#{Domains.outputText15}" id="outputText15" value="#{currentRow['groupCount']}"/>
                                <f:facet name="header">
                                    <h:outputText binding="#{Domains.outputText16}" id="outputText16" value="Groups"/>
                                </f:facet>
                            </h:column>
                            <h:column binding="#{Domains.column5}" id="column5">
                                <f:facet name="header">
                                    <h:outputText binding="#{Domains.outputText17}" id="outputText17" value="Actions"/>
                                </f:facet>
                                <h:commandLink action="#{Domains.editDomain}" binding="#{Domains.linkAction2}" id="linkAction2">
                                    <h:graphicImage binding="#{Domains.image2}" id="image2" title="Edit" value="resources/images/edit.gif"/>
                                </h:commandLink>
                                <h:commandLink binding="#{Domains.linkAction3}" id="linkAction3">
                                    <h:graphicImage binding="#{Domains.image3}" id="image3" title="View" url="resources/images/view.gif" value="resources/images/view.gif"/>
                                </h:commandLink>
                                <h:commandLink binding="#{Domains.linkAction4}" id="linkAction4">
                                    <h:graphicImage binding="#{Domains.image4}" id="image4" title="Delete" value="resources/images/delete.gif"/>
                                </h:commandLink>
                            </h:column>
                        </h:dataTable>
                    </h:form>
                </body>
            </html>
        </f:view>
    </jsp:root>
    Domains.java
    * Page1.java
    * Created on October 28, 2004, 12:45 PM
    * Copyright Gordon.Bell
    package usergroupmgt;
    import javax.faces.*;
    import com.sun.jsfcl.app.*;
    import javax.faces.component.html.*;
    import com.sun.jsfcl.data.*;
    import javax.faces.component.*;
    import com.sun.sql.rowset.*;
    import javax.faces.convert.*;
    public class Domains extends AbstractPageBean {
        // <editor-fold defaultstate="collapsed" desc="Creator-managed Component Definition">
        private int __placeholder;
        private HtmlForm form1 = new HtmlForm();
        public HtmlForm getForm1() {
            return form1;
        public void setForm1(HtmlForm hf) {
            this.form1 = hf;
        private HtmlDataTable dataTable1 = new HtmlDataTable();
        public HtmlDataTable getDataTable1() {
            return dataTable1;
        public void setDataTable1(HtmlDataTable hdt) {
            this.dataTable1 = hdt;
        private JdbcRowSetXImpl domainviewRowSet = new JdbcRowSetXImpl();
        public JdbcRowSetXImpl getDomainviewRowSet() {
            return domainviewRowSet;
        public void setDomainviewRowSet(JdbcRowSetXImpl jrsxi) {
            this.domainviewRowSet = jrsxi;
        private HtmlOutputText outputText4 = new HtmlOutputText();
        public HtmlOutputText getOutputText4() {
            return outputText4;
        public void setOutputText4(HtmlOutputText hot) {
            this.outputText4 = hot;
        private UIColumn column3 = new UIColumn();
        public UIColumn getColumn3() {
            return column3;
        public void setColumn3(UIColumn uic) {
            this.column3 = uic;
        private HtmlOutputText outputText5 = new HtmlOutputText();
        public HtmlOutputText getOutputText5() {
            return outputText5;
        public void setOutputText5(HtmlOutputText hot) {
            this.outputText5 = hot;
        private HtmlOutputText outputText6 = new HtmlOutputText();
        public HtmlOutputText getOutputText6() {
            return outputText6;
        public void setOutputText6(HtmlOutputText hot) {
            this.outputText6 = hot;
        private UIColumn column4 = new UIColumn();
        public UIColumn getColumn4() {
            return column4;
        public void setColumn4(UIColumn uic) {
            this.column4 = uic;
        private HtmlOutputText outputText8 = new HtmlOutputText();
        public HtmlOutputText getOutputText8() {
            return outputText8;
        public void setOutputText8(HtmlOutputText hot) {
            this.outputText8 = hot;
        private UIColumn column7 = new UIColumn();
        public UIColumn getColumn7() {
            return column7;
        public void setColumn7(UIColumn uic) {
            this.column7 = uic;
        private HtmlOutputText outputText13 = new HtmlOutputText();
        public HtmlOutputText getOutputText13() {
            return outputText13;
        public void setOutputText13(HtmlOutputText hot) {
            this.outputText13 = hot;
        private HtmlOutputText outputText14 = new HtmlOutputText();
        public HtmlOutputText getOutputText14() {
            return outputText14;
        public void setOutputText14(HtmlOutputText hot) {
            this.outputText14 = hot;
        private UIColumn column8 = new UIColumn();
        public UIColumn getColumn8() {
            return column8;
        public void setColumn8(UIColumn uic) {
            this.column8 = uic;
        private HtmlOutputText outputText15 = new HtmlOutputText();
        public HtmlOutputText getOutputText15() {
            return outputText15;
        public void setOutputText15(HtmlOutputText hot) {
            this.outputText15 = hot;
        private HtmlOutputText outputText16 = new HtmlOutputText();
        public HtmlOutputText getOutputText16() {
            return outputText16;
        public void setOutputText16(HtmlOutputText hot) {
            this.outputText16 = hot;
        private HtmlSelectBooleanCheckbox checkbox1 = new HtmlSelectBooleanCheckbox();
        public HtmlSelectBooleanCheckbox getCheckbox1() {
            return checkbox1;
        public void setCheckbox1(HtmlSelectBooleanCheckbox hsbc) {
            this.checkbox1 = hsbc;
        private UIColumn column5 = new UIColumn();
        public UIColumn getColumn5() {
            return column5;
        public void setColumn5(UIColumn uic) {
            this.column5 = uic;
        private UIColumn column9 = new UIColumn();
        public UIColumn getColumn9() {
            return column9;
        public void setColumn9(UIColumn uic) {
            this.column9 = uic;
        private HtmlSelectBooleanCheckbox checkbox2 = new HtmlSelectBooleanCheckbox();
        public HtmlSelectBooleanCheckbox getCheckbox2() {
            return checkbox2;
        public void setCheckbox2(HtmlSelectBooleanCheckbox hsbc) {
            this.checkbox2 = hsbc;
        private HtmlOutputText outputText9 = new HtmlOutputText();
        public HtmlOutputText getOutputText9() {
            return outputText9;
        public void setOutputText9(HtmlOutputText hot) {
            this.outputText9 = hot;
        private UIColumn column10 = new UIColumn();
        public UIColumn getColumn10() {
            return column10;
        public void setColumn10(UIColumn uic) {
            this.column10 = uic;
        private RowSetDataModel dataTable1Model = new RowSetDataModel();
        public RowSetDataModel getDataTable1Model() {
            return dataTable1Model;
        public void setDataTable1Model(RowSetDataModel rsdm) {
            this.dataTable1Model = rsdm;
        private BooleanConverter booleanConverter1 = new BooleanConverter();
        public BooleanConverter getBooleanConverter1() {
            return booleanConverter1;
        public void setBooleanConverter1(BooleanConverter bc) {
            this.booleanConverter1 = bc;
        private HtmlCommandLink linkAction1 = new HtmlCommandLink();
        public HtmlCommandLink getLinkAction1() {
            return linkAction1;
        public void setLinkAction1(HtmlCommandLink hcl) {
            this.linkAction1 = hcl;
        private HtmlOutputText linkAction1Text = new HtmlOutputText();
        public HtmlOutputText getLinkAction1Text() {
            return linkAction1Text;
        public void setLinkAction1Text(HtmlOutputText hot) {
            this.linkAction1Text = hot;
        private HtmlGraphicImage image1 = new HtmlGraphicImage();
        public HtmlGraphicImage getImage1() {
            return image1;
        public void setImage1(HtmlGraphicImage hgi) {
            this.image1 = hgi;
        private HtmlCommandLink linkAction2 = new HtmlCommandLink();
        public HtmlCommandLink getLinkAction2() {
            return linkAction2;
        public void setLinkAction2(HtmlCommandLink hcl) {
            this.linkAction2 = hcl;
        private HtmlGraphicImage image2 = new HtmlGraphicImage();
        public HtmlGraphicImage getImage2() {
            return image2;
        public void setImage2(HtmlGraphicImage hgi) {
            this.image2 = hgi;
        private HtmlCommandLink linkAction3 = new HtmlCommandLink();
        public HtmlCommandLink getLinkAction3() {
            return linkAction3;
        public void setLinkAction3(HtmlCommandLink hcl) {
            this.linkAction3 = hcl;
        private HtmlGraphicImage image3 = new HtmlGraphicImage();
        public HtmlGraphicImage getImage3() {
            return image3;
        public void setImage3(HtmlGraphicImage hgi) {
            this.image3 = hgi;
        private HtmlCommandLink linkAction4 = new HtmlCommandLink();
        public HtmlCommandLink getLinkAction4() {
            return linkAction4;
        public void setLinkAction4(HtmlCommandLink hcl) {
            this.linkAction4 = hcl;
        private HtmlGraphicImage image4 = new HtmlGraphicImage();
        private HtmlOutputText outputText17 = new HtmlOutputText();
        public HtmlOutputText getOutputText17() {
            return outputText17;
        public void setOutputText17(HtmlOutputText hot) {
            this.outputText17 = hot;
        public HtmlGraphicImage getImage4() {
            return image4;
        public void setImage4(HtmlGraphicImage hgi) {
            this.image4 = hgi;
        // </editor-fold>
        public Domains() {
            // <editor-fold defaultstate="collapsed" desc="Creator-managed Component Initialization">
            try {
                domainviewRowSet.setDataSourceName("java:comp/env/jdbc/HBird");
                domainviewRowSet.setCommand("SELECT ALL dbo.DomainView.id, dbo.DomainView.name, dbo.DomainView.description, dbo.DomainView.enabled, dbo.DomainView.created, dbo.DomainView.modified, dbo.DomainView.userCount, dbo.DomainView.groupCount  FROM dbo.DomainView");
                dataTable1Model.setDataCacheKey("com.sun.datacache.Domains.domainviewRowSet");
                dataTable1Model.setRowSet(domainviewRowSet);
                dataTable1Model.setSchemaName("");
                dataTable1Model.setTableName("");
            } catch (Exception e) {
                log("Page1 Initialization Failure", e);
                throw e instanceof javax.faces.FacesException ? (FacesException) e : new FacesException(e);
            // </editor-fold>
            // Additional user provided initialization code
    //        try {
    //            domainviewRowSet.execute();
    //            domainviewRowSet.next();
    //        } catch (Exception ex) {
    //            throw new FacesException(ex);
        protected usergroupmgt.ApplicationBean1 getApplicationBean1() {
            return (usergroupmgt.ApplicationBean1)getBean("ApplicationBean1");
        protected usergroupmgt.SessionBean1 getSessionBean1() {
            return (usergroupmgt.SessionBean1)getBean("SessionBean1");
         * Bean cleanup.
        protected void afterRenderResponse() {
            domainviewRowSet.close();
        public String groupList() {
            // User event code here...
            return "groupList";
        public String editDomain() {
            // User event code here...
            return "editDomain";
    }and the exception stack:
    Stack trace:
    com.sun.jsfcl.data.ResultSetPropertyResolver$RowData.getData(Unknown Source)
    com.sun.jsfcl.data.ResultSetPropertyResolver.getValue(Unknown Source)
    com.sun.faces.el.impl.ArraySuffix.evaluate(ArraySuffix.java:167)
    com.sun.faces.el.impl.ComplexValue.evaluate(ComplexValue.java:151)
    com.sun.faces.el.MixedELValueBinding.getValue(MixedELValueBinding.java:80)
    javax.faces.component.UIOutput.getValue(UIOutput.java:147)
    javax.faces.component.UIInput.validate(UIInput.java:639)
    javax.faces.component.UIInput.executeValidate(UIInput.java:838)
    javax.faces.component.UIInput.processValidators(UIInput.java:412)
    javax.faces.component.UIData.iterate(UIData.java:969)
    javax.faces.component.UIData.processValidators(UIData.java:781)
    javax.faces.component.UIForm.processValidators(UIForm.java:170)
    javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:904)
    javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:342)
    com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:78)
    com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
    com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
    javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
    sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:324)
    org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:246)
    java.security.AccessController.doPrivileged(AccessController.java:-2)
    javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
    org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:268)
    org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:236)
    org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
    org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:145)
    java.security.AccessController.doPrivileged(AccessController.java:-2)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:141)
    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
    org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:214)
    org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:168)
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:144)
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:133)
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
    org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:539)
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
    com.sun.enterprise.webservice.EjbWebServiceValve.invoke(EjbWebServiceValve.java:134)
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
    com.sun.enterprise.security.web.SingleSignOn.invoke(SingleSignOn.java:254)
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
    com.sun.enterprise.web.VirtualServerValve.invoke(VirtualServerValve.java:209)
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:114)
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
    com.sun.enterprise.web.VirtualServerMappingValve.invoke(VirtualServerMappingValve.java:166)
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
    org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:936)
    org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:165)
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:683)
    org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:604)
    org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:542)
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:647)
    java.lang.Thread.run(Thread.java:534)Any help is appreciated.

    Hi,
    Looks like some inconsistency in the jsp source:
    in the 2nd link the url property is set. I don't think
    you need to set this.
    I couldn't tell what action you want to occur when you
    click. If you want some action to occur such as
    navigating to another page then you can use Page Navigation. Then you would need an action handler
    for the LinkAction component.
    <h:commandLink action="#{Domains.editDomain}" binding="#{Domains.linkAction2}" id="linkAction2">
    <h:graphicImage binding="#{Domains.image2}" id="image2" title="Edit" value="resources/images/edit.gif"/>
    </h:commandLink>
    <h:commandLink binding="#{Domains.linkAction3}" id="linkAction3">
    <h:graphicImage binding="#{Domains.image3}" id="image3" title="View" url="resources/images/view.gif" value="resources/images/view.gif"/>
    </h:commandLink>
    <h:commandLink binding="#{Domains.linkAction4}" id="linkAction4">
    <h:graphicImage binding="#{Domains.image4}" id="image4" title="Delete" value="resources/images/delete.gif"/>
    </h:commandLink>
    John
    JSC QA

  • How to get the current cursor position in word report?

    I am generating a word report. But I would like to keep the table in one page. However, I did not find the way to do it in labview. Somebody would give me some suggestions? I appreciate a lot.
    One way I think I can do is to find the current cursor position. Since I know the table size so I can figure out if the left space in the current page is enough to hold the table. But I do not know how to locate the curent cursor position in word document in labview programmatically. I appreciate any suggestions on this question.
    Thanks.

    Hi,
    when you insert data in a word document you have to refer to bookmarks rather than cursor position.
    If you are using the Report Generation Toolkit for Office it is explained in the manual chapter 3-1.
    See also the example: Generate Report From Template (Word).vi included in the toolkit.
    If you aren't using the toolkit, you still have to refer to bookmark as reference points to insert and/or fetch data.
    The principle is:
    - First create a document in which you insert bookmarks where you wish and save it as a template
    - In LV open your template document and insert in it your data referring to bookmarks as insertion points
    - At the end save your report with another name, so you still have the template
    I hope I have been clear enough, if not just as
    k!
    Good luck,
    Alberto

  • How to make Firefox (Mac) not go back a page upon pressing the Cmd+Left-Combination which should set the text cursor to the beginning of a line in input fields instead of leaving the page?

    On a Mac, Cmd+Left places the text cursor to the beginning of the line, Cmd+Right to the end of the line.
    FireFox however goes back resp. forward a page in hinstory, which is ''most annoying'', since it very often causes me to accidentally leave a still unsubmitted form and loose all input!
    I did not find any possibility to get rid of these dreadful keybindings.

    Thanks for your response.
    I guess I didn't revert to as far back as the change I had made because when I follow your instructions, no entries are bold.
    Or did you perhaps mean the next time the problem occurs I should look for a bold entry? And then change it back to what it was? (All that I recall from a year ago was that I changed one entry from ''true'' to ''false'', or vice versa.)

  • Cut/paste text in a new TextFrame, and place it on the text original position

    With this script, the pagraphs with style "_DESTACADOS" are cut and paste in a new TextFrame, but place them in to first page. I need place it on the text original position...
    var myDocument = app.activeDocument;
    var myRegExp = ".+";
    app.findGrepPreferences = NothingEnum.nothing;
    app.changeGrepPreferences = NothingEnum.nothing;
    app.findGrepPreferences.appliedParagraphStyle = "_DESTACADOS";
    app.findGrepPreferences.findWhat = myRegExp;
    var myFoundItems = myDocument.findGrep(true);
    if(myFoundItems.length != 0){
          for(var myCounter = 0; myCounter < myFoundItems.length; myCounter ++){
              myFoundItem = myFoundItems[myCounter];
              myX1 = myFoundItem.characters.item(0).horizontalOffset;
              myY1 = myFoundItem.characters.item(0).baseline;
              myX2 = myX1 + 50;
              myY2 = myY1 + 50;
                app.selection = myFoundItem;
                    app.cut();
                myTextFrame = myDocument.textFrames.add();
                myTextFrame.geometricBounds = [myY1, myX1, myY2, myX2];
                app.selection = myTextFrame.insertionPoints[0];
                    app.paste(); // Pega el texto del caso encontrado
                myTextFrame.applyObjectStyle(app.activeDocument.objectStyles.item("_Destacados"), true);           
                myTextFrame.fit(FitOptions.FRAME_TO_CONTENT);
    THANKS...

    Hi Marcos Suárez,
                 If you've xml for the indesign document, u can use the following.
    myElement.placeIntoInlineFrame(["8p","6p1"]);
    I hope this code is useful in ur script.
    #include "glue code.jsx"
    var doc = app.activeDocument;
    var myRuleSet = new Array ( new idd)
              with(doc)
                        var elements = xmlElements;
                        __processRuleSet(elements.item(0), myRuleSet)
    function idd()
        var newstyle=doc.objectStyles.add("ObjectStyle1");
        newstyle.appliedParagraphStyle="Ap3";
        newstyle.strokeColor="None";
        newstyle.fillColor="None";
              this.name = "idd"
              this.xpath = "//title/p2"                    //set this xpath value to the xmltree element which u want to set into frame.
              this.apply = function(myElement, myRuleProcessor)
            var txt=myElement.placeIntoInlineFrame(["8p","6p1"]);
            txt.fit(FitOptions.frameToContent);
            txt.applyObjectStyle(newstyle, true);
      return true;
    This will create a textframe around the selected content which u want to do so...
    For more info, refer XMLElement.placeIntoInlineFrame() in Object Model Viewer....
    With Regards,
    Vel.

  • I am so frustrated.  I put ab object and/or a text box on a page and then cannot select it - the Text cursor (not pointer) is put on the object or text box and nothing happens.  It is so frustrating!  I then open up Everweb and the same thing,

    I put an object and/or a text box on a page and then cannot select it - the Text cursor (not pointer, just the text cursor shows) is put on the object or text box and nothing happens.  It is so frustrating!  I then open up Everweb and the same thing, I create an object and then try and elect it to make it bigger etc and cannot.  I know it must be something system wide as it happens in apps other than Pages.

    I put an object and/or a text box on a page and then cannot select it - the Text cursor (not pointer, just the text cursor shows) is put on the object or text box and nothing happens.  It is so frustrating!  I then open up Everweb and the same thing, I create an object and then try and elect it to make it bigger etc and cannot.  I know it must be something system wide as it happens in apps other than Pages.

  • Changing the Text Cursor for all Text Components

    Hi,
    The users have asked me to change the text cursor i.e, the vertical cursor for all the text components in our application.
    Is there a common way to change it , without having to call the setCaret method for each of the text components ?
    I saw that Cursor class has a Cursor type called TEXT_CURSOR. I'd like to be able to change that cursor.
    Any ideas, suggestions?
    Thanks!

    I was talking about the blinking vertical caret - sorry I got confused between the I-beam cursor and the caret(!).
    I wanted to change the caret color at the very least.
    Although preferably, I would like to make it a bit wider.
    I just found one solution to change the caret color across all the textfields using UIManager -
        Color caretColor = Color.GREEN;
        UIManager.put( "TextField.caretForeground", caretColor);
        UIManager.put( "FormattedTextField.caretForeground", caretColor);
        UIManager.put( "TextArea.caretForeground", caretColor);
        UIManager.put( "PasswordField.caretForeground", caretColor);Thanks

  • Drawing a curved line using the pen tool, dragging the text cursor over the line but will only give me a small area to write in, in-between a circle and a circle with a cross in?

    Drawing a curved line using the pen tool, dragging the text cursor over the line but will only give me a small area to write in, in-between a circle and a circle with a cross in?

    If you change your tool to the "Direct Selection Tool" (A) then you should be able to adjust the area for you to type in...

  • As I'm typing, the text cursor jumndps arou -- jumps around. (See?).

    Hep me...
    I've got a TiBook PB, v10.4.11 combo update. Maxed-out RAM.
    But as I'm typing, alot of times the text cursor will jump to a completely different place & what I was typing winds up getting typed out into the middle of some other word. OK.. just now. The period I typed after the last word in the last sentence. The cursor jumped up to the "Subject" line & put a period after the "(See?)" I wrote.
    Any suggestions from anyone as to what I can do to eliminate this problem?
    TIA....

    'llllllllo, ya'll
    Kevin here, the guy who originated this thread.
    I installed & ran AppleJack. Love it. Does base-level fixin', the best kind.
    I just hope I don't have to use it someday 'cause nothin' shows up...... <knockknock on wood>.
    I am now, BTW, typing along happily WITHOUT the golldarned cursor jumpin' all over the place as it did before (I mean, anywhere on the screen! I cussed...).
    I figgered it out.
    It WAS a software issue. Fortunately. NOT a keyboard, ribbon cable, blabla whathaveyou hardware prob.
    It seeeeeeems that my some of my SideTrack settings were not only conflicting with OSX's Keyboard/Mouse/Trackpad pref, but SideTrack itself needed some tweaking & experimenting with, too. And finally, I got it all right.
    The v I had then & currently have is 1.4.1, which is fine, not a particular prob with that v, but I DLd the newest v1.60 tonight & I am very anxious to get it loaded up, because my 1.4.1 is not activating my PB trackpad's 4 "tap corners" properly at all. Which I think would be very handy to have (My attempted setup: TL:Left mouse button, TR:Rt btn, BR:Mid (wheel) btn, BL:Keystroke: "Enter"). Played around, experimented, just couldn't get the durned thing to work right consistently. And ya, I disabled any possible competing settings in the OSX KB/Mouse pref beforehand...
    So........
    For any of you out there who may be having the same kinds of flaky-cursor actions when typing, click on your SideTrack pref icon first, if you've got SD. Specifically within that pref, go to the "Accuracy" subwindow. There, under "Filtering," I have checkmark-enabled all options except "Ignore trackpad when mouse is present." Basically, the "Filtering" settings all intercept keystrokes, or perhaps monitors keystrokes AND trackpad signals together, and with the settings I have enabled & set some of the variable ones to, my eduguess is that the Filtering settings puts a higher priority of sorts on keyboard inputs vs coincidental accidental trackpad inputs. Which, I've noticed, sometimes gives the appearance of letters, etc. a microsecond, though noticeable, of a delay.
    The odd thing about all this is that I could tap a keyboard key with a single finger from directly above the keyboard -my hand's nowhere near the trackpad- and the cursor would STILL jump all over the screen. But not no mo'.
    Finally....... I can now type without having to constantly keep an eye on where the cursor's at!
    Yaaaa!!!
    I will uninstall my SideTrack 1.4.1 (BTW, if any of you Mac readers haven't done so already, GO GET "AppDelete" < <a class="jive-link-external-small" href="http://">http://appdelete.en.softonic.com/mac >! It is one of those grassroots solutions done at 3am in someone's basement over cold pizza & Mountain Dew that the Apple SW guys & gals shoulda been doing in their sun-filled cubicles (which is how Bill's House got built, BTW!). It runs in the background invisibly, & when you do an ordinary delete of an APP, a small AppDelete window pops up asking you if you want the APP's associated files to be dumped, too. Which is usually a YA, of course, but sometimes not). After I install SideTrack v1.6 < <a class="jive-link-external-small" href="http://">http://www.ragingmenace.com/software/sidetrack/index.html >, I may report back here with a review of how it works.
    solong for now, fellow macyakkers
    And thanks to all those members who offered their suggestions of helping ideas!
    kevinkendall

  • How Do I Reset The Finder Windows Positions?

    Hi,
    I would like to "reset my finder windows positions". Anyone knows how I can do that?
    Thanks.
    Ed

    So I cannot edit the .DS_Store file?
    You can try, as I do not know how good you are at working with binary files.  When I try to edit a .DS_Store on my system I see:
    ^@^@^@^ABud1^@^@p^@^@^@^H^@^@^@p^@^@^@^P^L^@^@h^K^@^@
    lots and lots of ^@ with occasional other characters mixed in.
    So what will it happen if I delete the .DS_Store file? Will my iMac's all Finder Windows be reseted?
    The Finder will forget information about that Folder.  Where it is positioned on the screen, how the files in the folder are arranged, etc...
    If you are concerned, create an experimental folder, put some junk files in the folder (stuff you can delete later).  Arrange things in the experimental folder, play with the size of the experimental folder.
    Now delete the .DS_Store for that file.  See what happens in a safe experimental way.  If you like the results, apply the same to folders you want to reset.
    "for each Folder", what do you mean?
    If you want to reset more than 1 folder, you would repeat the .DS_Store for each folder that you are interested in resetting.

  • How to Reset the Default Menu Positions in DreamWeaver CS4 ?

    Can anyone tell me how to reset or restore the Default Menu Positions in DreamWeaver CS4 ?
    Thanks for any help!
    Joe

    Well.. I sure appreciate the help... but, unfortunately that did not restore the initial settings..
    Any other ideas?

  • The text cursor disappeared

    As the headline says, my text cursor has disappeared. How do I get it back? (This is my first mac so I barley know anything at all)

    Hi ArtlieST,
    Welcome to the Support Communities!
    If your cursor is missing in Pages, I would suggest switching to a different application and then back to the Pages app.  If the cursor is still missing, save your document, quit the Pages app, and then relaunch it again.
    OS X Yosemite: Window basics
    Quickly switch between apps
    Quickly switch to the previous app: Press Command (⌘)-Tab.
    Scroll through all open apps: Press Command (⌘)-Tab, continue to hold the Command key, then press the Tab key repeatedly. When you get to the app you want, stop and release the keys.
    Resume work without switching apps: Press Esc (Escape) or the period key.
    Below are some resources to help you get started on your new Mac:
    OS X Yosemite: Apps included with your Mac
    OS X Yosemite: Give your desktop a custom look
    OS X Yosemite: Ways to view items in Finder windows
    OS X Yosemite: Customize the Finder toolbar and sidebar
    OS X Yosemite: Folder basics
    OS X Yosemite: Quit apps
    OS X Yosemite: Ways to quickly see and open items
    I hope this information helps ...
    - Judy

  • Interactive report - Problem in coming back to the same cursor position

    Hi,
    I have an interactive report. In the first list of the output, a set of data will be displayed. In that first list, if I double click on a field, it goes to a Custom Screen. There, I have to enter some data and save and come back to the first list of the output. This is what my report does.
    I have no issues when the output in the first list is one page. But, when I have the output for more than one page I have a problem. I am going to the 2nd or 3rd page of the output. From there I double click on the field and it goes to the Custom screen. After saving the data in the screen, when I click BACK button, it displays the report from the first page again instead of displaying the output in the 3rd page where I double clicked.
    My requirement is, when I come BACK from the screen to the list, the cursor should stay in the same page where I double clicked earlier. It shouldn't go to the first page of the list again.
    To my knowledge, we have to use a statement in the code after displaying the output.
    Could someone tell me how to do this..?
    Thanks in advance.
    Best Regards,
    Paddu.

    Have a look at the ABAP command "scroll list"... you will need to hold onto the values of sy-lsind, sy-cpage, and sy-staro prior to the call to your popup, and then after you come "BACK" from this, you will need to re-write your report followed by something like:
    scroll list index gs_rpt-lsind   "gs_rpt used to hold the previous SY- values
      to page gs_rpt-cpage
         line gs_rpt-staro.
    Jonathan

  • When I click in a text box, the text cursor does not show?

    Especially in Google search box- I can't even press enter to make it search, I have to minimize the window and maximize it to show the cursor. Any way to fix this?

    Perform the suggestions mentioned in the following articles:
    * [https://support.mozilla.com/en-US/kb/Template:clearCookiesCache/ Clear Cookies & Cache]
    * [[Troubleshooting extensions and themes]]
    * Update All your Firefox Plugins -> https://www.mozilla.org/en-US/plugincheck/
    ** '''When Downloading Plugins Update setup files, Remove Checkmark from Downloading other Optional Softwares with your Plugins (e.g. Toolbars, McAfee, Google Chrome, etc.)'''
    Check and tell if its working.

Maybe you are looking for