How to make a real ENTER ??

hi,
i got problems using java and word..
if I use a /n in the code, it makes a shift+enter in word
how to make a real enter ??
thanxx

First you need to open the door :)

Similar Messages

  • How to make labview real time understand sequence context

    Does anyone know how to make Labview RT to understand teststand sequence context? My sequence context is defined as "TS.SequenceContext" as the screenshot in the attachment.
    If we need to point a VI for this Sequence Context then which VI from teststand to use? and do we need to add this VI to the Labview Projectr Explorer in RT System to build the project?
    I'm using Labview 2009 and teststand 4.2.1.
    Thank you very much
    Solved!
    Go to Solution.
    Attachments:
    LVRT_TS.SequenceContext error.doc ‏132 KB

    LabVIEW RT does not support ActiveX which is required for TestStand.

  • How to make Jspinner real enabled?

    Hi,
    I need to set a jspinner non-editable, that is the jspinner can change value thought directly input value or use buttons.
    The setEnabled method can not archived this aim, how can i real enable the jspinner?

    I want to make one of the table column renderer to be Jspinner, then I write a cellEditor to do that. Inside of the cellEditor, I make wirte jspinner.setenabled(false), that just make the jspinner become to gray, the jspinner also can work as normal.
    Follow is my celleditor:
    import java.awt.*;
    import javax.swing.event.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.table.TableCellEditor;
    public class cell3 extends AbstractCellEditor implements TableCellEditor {
         private SpinnerNumberModel model = new SpinnerNumberModel(0, 0, 1000, 1);
         private JSpinner component = new JSpinner(model);
         private JTable table2;
         private int row2, column2;
         public Component getTableCellEditorComponent(JTable table, Object value,
                   boolean isSelected, int row, int column) {
              table2 = table;
              row2 = row;
              column2 = column;
              if(table.getValueAt(row, column - 2)==null||((String)table.getValueAt(row, column - 2)).equals("")){
                   component.setEnabled(false);
              else {
                   component.setEnabled(true);
              if(table.getValueAt(row, column)== null)
                   component.setValue(0);
              else component.setValue(table.getValueAt(row,column));
              component.addChangeListener(new ChangeListener(){
                   public void stateChanged(ChangeEvent e){
                        if(table2.getValueAt(row2, column2-1)!=null){
                        double v = Double.parseDouble(table2.getValueAt(row2, column2-1).toString());
                        double value = v * Integer.parseInt(component.getValue().toString());
                        table2.setValueAt(Integer.parseInt(component.getValue().toString()), row2, column2);
                        table2.setValueAt((float)value, row2, column2+1);
              return component;
         public Object getCellEditorValue() {
              return component.getValue();
    }If not clear yet, u can ask me some questions . Thanks!

  • How to make time "real time"?

    Hello folks,
    im a newbie at JAVA and I was wondering if someone can help me with a problem.
    Im trying to add time to website using the following:
    Label lblTime = new Label("Time",Label.CENTER);
         int intHour = calCurrent.get(Calendar.HOUR);
         int intMinute = calCurrent.get(Calendar.MINUTE);
         int intSeconds = calCurrent.get(Calendar.SECOND);
    lblTime.setText(intHour + ":" + intMinute + ":" + intSeconds);
    It sets the time, but only the time when the applet loads. Is there any way to make it so the time changes in real time?
    dm0ca

    A thread/Timer & timer task.
    Timer bobTheTimer = new Timer();
    bobTheTimer.schedule( new TimerTask() {
         public void run() {
            lblTime.setText(intHour + ":" + intMinute + ":" + intSeconds);
       }, 1000, 1000 ) ;                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to make permission to enter Only Digits in String Context Attribute?

    1. It is necessary to allow entry into InputField only digits.
    2. The number of digits is limited to 5.
    There is a context attribute "Code" of type string.
    I have a code:
    ISimpleTypeModifiable attributeType = wdContext.nodeCreateParams (). GetNodeInfo (). GetAttribute ( "Code"). GetModifiableSimpleType ();
    attributeType.setMaxLength (5);
    But I do not know how to allow entry only digits.
    I would be grateful for your help!

    Hi Vitaly
    The problem is you cannot apply a format pattern to String based simple type.
    The restriction can be overcame if you make the attribute Calculated. Then in setter-method you can perform the string parsing according to your 5-digits rule. For the purpose you can use Java class MessageFormat.
    If the input string coming to the setter does not follow to the 5-digits rule, report the corresponding error message using method:
    wdComponentAPI.getMessageManager().raiseInvalidContextAttributeMessage(...);
    Hope this will help you.
    BR, Siarhei

  • How to make Safari automatically enter ebay Password

    How do I get Safari to automatically put in my Ebay password. I am the only one who uses the computer and I would like to not have to enter it each day.

    HI,
    From your Safari menu bar click Safari / Preferences then select the Autofill tab.
    Select: User names and passwords.
    Go to the eBay site. Login with your user name and password. Click Yes when prompted.
    That will store that data to a new keychain for you in Keychain Access (Applications / Utilities)
    When you revisit eBay, you shouldn't have to enter your username and password.
    If you forget your eBay password, just open the Keychain Access (Applications / Utilities) Select Passwords on the left. Double click the eBay keychain. Click Show Password
    Carolyn

  • How to make the date to be entered as dd-mon-rrrr  using form personalizati

    Hi friends,
    how to make the date entered to be dd-mon-rrrr format.....
    the date should be entered only in this format...or esle it should not accept the date
    how to do this with form personalization.....
    thanks

    1) Instead of personalization, set ICX: Date format mask profile appropriately using sysadmin responsibility at the appropriate level.
    2) If you have to use this new format just for one form, then use personalization to set the profile option in the when-new-form-instance. But unsetting it will be a problem.
    I recommend option 1 above.
    Hope this answers your question,
    Sandeep Gandhi

  • How to make html file on server side from the data entered in text area

    Hi!
    I want to know how to make .html file on server side. Like if i enter the data in text area ( or like we normaly see when we write mail that editor) and we can use html tages in it and when user submit form all the data in that field will be saved on server side as an html formate. Is it possible to do so??? or any ruff idea how to design it???

    Erm ...
    Whats the problem with that?!
    Ok, here the code ...
    String myparameter = request.getParameter("paramname");
    String htmltemplate = "<html>\n"
                         +"<head><title>demo</title></head>\n";
                         +"<body>@parametertag@</body>\n";
                         +"<html>";
    String htmlpage = htmltemplate.replaceAll("@parametertag@",myparameter);
    File yourHTMLfile = new File("wheredoyouwannagotoday.html");
    FileOutputStream fos = new FileOutputStream(yourHTMLfile);
    fos.write(htmlpage.getBytes());
    fos.close();You're done.
    Happy Coding! :-) &copy;

  • In Flex,how to make lost focus of textinput on enter click?

    Hi
    In Flex,how to make lost focus of textinput on enter click of keyboard ?
    Thanks,
    Sunil

    Hi vibhuti,
         I  got your point but it will not helpful to me.
        But I found solution ,When user clicks enter key make stage.focus = null  so it will lost focus on text input and make focus in my current Alert Box.
    Thanks,
    Sunil

  • How to make the exchange of data between 2 while loop in real time

    hello
    I have 2 while loop
    the 1st while loop includes the data acquisition program
    the 2nd while loop includes the control program
    my question is how to make the exchange of data between 2 while loop in real time
    I tried with the local variable and direct wiring between the 2 while loop
    it does not work (there is a delay)
    Solved!
    Go to Solution.

    Bilalus,
    Queues are only good to transfer data if your application isn't deterministic. Since you are using Real Time, I am assuming that your application requires determinism. If you are using Timed Loops and you use queues to transfer data between your loops, you are losing determinism. In this case, you need to use the RT FIFO functions. 
    Warm Regards,
    William Fernandez
    Applications Engineering
    National Instruments

  • Trying to enter hotel password and 1st letter is always upper case and password is lower case.  Can't figure out how to make 1st letter lower case

    I am trying to enter a hotel password for internet access.  The password is all lower case, but the 1st letter I type is always upper case and I can't figure out how to make it lower case.  Help?

    The digital keyboard on the iPad uses an "Up Arrow" as a symbol to represent its shift key(s). If it's highlighted, then the next letter typed will be upper-case. Just tap on the Arrow symbol and it should be unhighlighted. Now if you type any letter, it will be lower-case.

  • How to make buttons enabled after the data is entered in JTextField?

    I got a JTextField. I want to test the entered data in JTextField is eight length. If the data is of length eight then i want to enable two buttons. How to make it enable? I am getting the length eight, but the buttons are not enable. What listeners I have to use.
    Can anybody help me out.
    Thanks for your help in advanced.

    Create a class that extends KeyAdapter. Add a field that is an array of buttons. Override the keyTyped(KeyEvent e) method to use getSource() to access the text area, check the length of the text, and if > 8, go through the array and enable the buttons in the array. Then, when you create the text area, create an instance of your listener, passing it an array of the two buttons you want to enable, and then use addKeyListener(yourKeyListener) to add your key listener to the text area.
    Doug

  • How to make real-time report per subscriber ( SCE2020)

    From the link below Cisco SCA BB SNMP Real Time Monitoring User Guide, 3.1
    http://www.cisco.com/en/US/products/ps6135/products_user_guide_chapter09186a008084ddc8.html
    it only make report on the global bandwitdh does anyone have i 3rd party software or good document on how to do snmp real-time report per subscriber?
    Thanks in Advance.

    SCE platform supports a limited set of variables that may be configured via SNMP (read-write variables). Setting a variable via SNMP (as via the CLI) takes effect immediately and affects only the running-configuration. To make this configuration stored for next reboots (startup-configuration) the user must specify it explicitly via CLI or via SNMP using the Cisco enterprise MIB objects.
    For the further details for the SCE follow the below url which will help you:
    http://www.cisco.com/en/US/products/ps6134/prod_configuration_guide09186a008078b43a.html

  • How to make ENTER key in internet explorer run the  BIP report?

    In BI publisher 11g, users wanted that after entering the values for the parameter, they hit the ENTER key ( on the keyboard)  and the report should run .
    In Mozilla firefox, when I hit ENTER key on the keyboard report runs fine... but in Internet explorer, it does not ( infact in internet explorer TAB key works)
    How to make ENTER key in internet explorer run the report?
    Thanks
    Ashish

    Perform the following steps and tell us if it  resolve this issue:
    1. In Internet Explorer, click Tools, and then click Internet Options.
    2. Click the Security tab.
    3. There are four security zones listed:
    * Internet
    * Local intranet
    * Trusted sites
    * Restricted sites
    Click the zone being used by P6, which is noted at the bottom right hand corner of the browser window when the P6 URL is being accessed.
    4. Under Security level for this zone, click Custom Level.
    5. Under Downloads, under Automatic prompting for file downloads, click Enable, and then click OK two times.
    6. The browser will need to be restarted for the change to take effect.
    Refer to the following Microsoft Knowledge base article for additional file download and active x controls which should also be enabled: http://support.microsoft.com/kb/883255

  • How to make an icon image using Photoshop

    I found out how to do this recently so I decided that I wanted to make a tut for those who don't know how to make an icon image. This icon image is for the libraries tab on your computer. Under the libararies tab there is Music, Pictures, Documents, and Photos
    First you will need the ICO (Icon image format) Format extension for photoshop which can be downloaded here:
    http://www.telegraphics.com.au/svn/icoformat/trunk/dist/README.html
    The download link and tutorial on how to install it is all in the link above.
    Once you have that all set you can now launch photoshop to create your icon image. Once you have launched it, create a new document with the size as in the image below.
    [IMG]http://i1297.photobucket.com/albums/ag25/dusty951512/256x256_zpsbf3dcf8e.png~original[/IMG]
    Create the image you want. I used a simple one by using the custom shape tool by pressing "U" on your keyboard and with the
    basic blending options.
    [IMG]http://i1297.photobucket.com/albums/ag25/dusty951512/IconImage_zpsd788c709.png~original[/IMG]
    The reason why the image is pixelated is because it is an icon image. Since the image is only 256x256 pixels when you zoom in on it that will get you the pixely result. The reason why I zoomed  in is so you can see it. But don't worry this is no the end result. Just continue reading and you will see.
    So once you have created the icon go ahead and press
    file>save as>(under format choose the ICO)>and choose the name that you want to name it. And save it in your C: drive. You will see why to save it in your C: drive in a sec.
    [IMG]http://i1297.photobucket.com/albums/ag25/dusty951512/SampleicoPic_zpsd252bfba.png~original[/IMG]
    So now that you have created the icon and saved it now you can create the new library.
    [IMG]http://i1297.photobucket.com/albums/ag25/dusty951512/NewLibrary_zps8ca703b2.png~original[/IMG]
    Name the library whatever you want I named it "Sample" for tutorial purposes. Notice how it gives you a default boring icon image for your library.
    [IMG]http://i1297.photobucket.com/albums/ag25/dusty951512/Sample1_zpsb5472840.png~original[/IMG]
    So now once you have created and named your library now it is time to get the icon image into place.
    Go to computer/c: Drive/users/YOU/ And now once you have reached this area you will need to access a hidden folder named "appdata" to do so press "Alt" then a menu bar will show. Click
    tools>folder options>and view. Find the option to view hidden folders then press apply then ok. Now we shall continue so AppData>Roaming>Microsoft>Windows>Libraries
    Now you should see all the libraries including the one you just created.
    [IMG]http://i1297.photobucket.com/albums/ag25/dusty951512/showhiddenfolder_zpsad4a3c94.png~orig inal[/IMG]
    [IMG]http://i1297.photobucket.com/albums/ag25/dusty951512/Libraries_zpsf6243bc0.png~original[/IMG]
    Once you have reached your destination then open a new text document with notepad and drag the library you just created in notepad. The result should look like this:
    [IMG]http://i1297.photobucket.com/albums/ag25/dusty951512/Notepad_zps251a86f0.png~original[/IMG]
    once you have reached this point click at the end of the second to last line down then press enter and enter in this information
    <iconReference>c:\"NAME OF ICO FILE YOU CREATED IN PS".ico</iconReference>
    Example:
    [IMG]http://i1297.photobucket.com/albums/ag25/dusty951512/iconreference_zps1c1a3eca.png~origina l[/IMG]
    Once you have entered that information go to file>save and the icon image should appear on the library you created.
    [IMG]http://i1297.photobucket.com/albums/ag25/dusty951512/Finished_zps267f893a.png~original[/IMG]
    Now you are officially finished. Go and spread the news and joy. Bye for now
    -Dusty951512

    It is Windows only because all those screen shots are exclusively Windows, the file structure and paths do not resemble those of the Mac in the least.  As a Mac user, there's nothing I could take from your tutorial.  Sorry, 
    No drives named with letters like C: on the Mac, for instance.  No backward slashes either, ever.  No such paths either.  No "Notepad" on the Mac, we use TextEdit; but such a text editor is not remotely needed on the Mac to make and/or edit icons.  Etc.
    Those folders are not even called "Libraries" on the Mac…  Nothing resembling your tutorial at all.
    The icons in the Finder's Sidebar are not customizable at all in recent version of OS X.
    =  =  =
    You can edit any post of yours only until someone replies to it.  At this time your post is not editable by you any longer.

Maybe you are looking for

  • Mac Running Slow/Cursor Disappears

    As a recent convert, I am not sure what should be running and what should not. I copied the below from my last log in and am hoping someone can take a look and tell me if something is running that shouldn't be running. I know this is not a short list

  • Urgent: Regarding Vendor payment report

    Hi, I making a report in which i have to display the vendor payment is done or not? Curently i am using the 4 tables of Financial :- BSAK,BSIS,BSIK AND BSAS which gives the status of vendor whether it is paid or not .  1 thing i observed that data co

  • SP3 doesn't recognize my BT mouse or keyboard

    I recently updated to Boot Camp 2.1 and installed XP SP3. When I rebooted into SP3 for the first time neither my BT mouse or keybaord worked and I had to use the trackpad to get around. I have a Logitech MX900 mouse and the older style Apple keyboard

  • PSA Source System Update Utility

    Hi,   We recently upgraded our Sand box system to EPH1 SPS5. The PSA Deletion Process type now includes a 'Source System' field. Since our system was refreshed from Production prior to upgrade, the Source System Field in the PSA Deletion Process Type

  • MacBook Not Working

    The other day I was on the internet when I lost the connection. i decided to restart my mac. Now I can login to my mac but when it brings up my background picture nothing else shows up except for a little magnifying glass at the top right corner of t