Pda right justify number WM5.0 and LV PDA 8.0

Hi :
I'm trying to Right-justify a number indicator (U32) on my PDA application but I'm having hard time achieveing this ... I have tried what this thread suggests and it doesn't work ... I'm using WM 5.0 and LV 8.0 so that might have something to do with it.  Any suggestions or solutions?  I've thought of converting the display to a string and pad the left side with spaces, but I would rather not do that ... thanks in advance.
Greycat

This was reported to R&D (# 3XEBK4G8) and was fixed in LabVIEW 8.2 PDA. Here is a link to the current evaluation software download for LabVIEW.
Thanks!
Travis H.
LabVIEW R&D
National Instruments

Similar Messages

  • Right-justify number columns in BC4J

    I have several JSP pages that I am using BC4J tags in. I want to right justify all dollar columns. In addition, I want some columns to have a default width regardless of the data in them. For instance, even if a column has 'Test' in it, I want it to have a display width of 50.
    How can I accomplish these two things?
    Thanks,
    Brett

    Sounds like you might want to add properties to the attributes in your VO. If you set up some properties to hold values for alignment and width for each column, you can just interogate these values when you render the JSP and writre them into the HTML.
    Matt

  • Left- and right-justifying with dot leaders in JLabel and JButton

    Hi,
    I am developing checklists using JLabel and JButton components and want to finish up with the text in each component looking something like the following (each line is a separate button/label):
    ACTION No1............................RESPONSE No1
    ACTION No2............................RESPONSE No2
    ACTION No3............................RESPONSE No3
    The idea is to have the �Action� text left-justified and the �Response� text right-justified with dot-leaders as shown.
    Each text line will be put into its own fixed length label or button.
    I plan to construct a string from text blocks �ACTION No1� and �RESPONSE No1� and add the calculated, exact no of dots in between to fill the space.
    The text font can be fixed (e.g. Courier) or proportional (e.g. Arial).
    My question is how to calculate the number of dots to add to fill the space for different fonts and font sizes.
    I think that using FontMetrics could provide some help but am not sure how this would work.
    Can anyone help.
    Many tks
    John

    Hi,
    I've developed your suggested code further to enable selected JLabels to be toggled visible(true/false) by pressing a JButton.
    I'd like however that when a label is made invisible that the rest of the labels/buttons move up to fill the space left by the now invisible label and vice versa.
    How do I do this, can you enlighten me on a solution?
    Modified code included below. Not very elegant but serves to illustrate the point in question and only makes the label invisible.
    Many tks
    John
    package componentwierd;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class ComponentWierd extends JFrame implements ComponentListener, ActionListener {
        boolean isVisible = true;
        JLabel label2 = new JLabel();
        public ComponentWierd() {
            getContentPane().setLayout( new GridLayout(0, 1) );
            // Using my original suggestion
            JLabel label = new JLabel();
            label.setLayout(new BorderLayout());
            label.add(createWierdComponent());
            getContentPane().add(label);
            JButton button = new JButton();
            button.setLayout(new BorderLayout());
            button.add(createWierdComponent());
            button.addActionListener(this);
            getContentPane().add(button);
            // Using Font Metrics
            // JLabel label2 = new JLabel("Label2 West...Label2 East");
            label2.setText("Label2 West...Label2 East");
            label2.addComponentListener( this );
            getContentPane().add(label2);
            JButton button2 = new JButton("Button2 West...Button2 East");
            System.out.println(button2.getIconTextGap());
            button2.addComponentListener( this );
            button2.setVisible(true);
            getContentPane().add(button2);
        public void actionPerformed(ActionEvent e) {
            if (isVisible == true) {
                isVisible = false;
                label2.setVisible(false);
            } else if (isVisible == false) {
                isVisible = true;
                label2.setVisible(true);
        private JComponent createWierdComponent() {
            JPanel panel = new JPanel(new BorderLayout());
            panel.setOpaque( false );
            panel.add(new JLabel("Label WEST"), BorderLayout.WEST);
            panel.add(new JLabel("..............................................."));
            panel.add(new JLabel("Label EAST"), BorderLayout.EAST);
            return panel;
        public void componentResized(ComponentEvent e) {
            if (e.getComponent() instanceof JLabel) {
                JLabel component = (JLabel)e.getComponent();
                String text = component.getText();
                String fitText = fitText(component, text);
                component.setText( fitText );
            if (e.getComponent() instanceof JButton) {
                JButton component = (JButton)e.getComponent();
                String text = component.getText();
                String fitText = fitText(component, text);
                component.setText( fitText );
        private String fitText(JComponent component, String text) {
            // Calculate the total width for painting the text
            // (Not sure why I need the -8)
            Insets insets = component.getInsets();
            int availableWidth = getWidth() - insets.left - insets.right - 8;
            // Calculate the minimum width our text will take
            String start = text.substring(0, text.indexOf("."));
            String middle = "...";
            String end = text.substring(text.lastIndexOf(".") + 1);
            FontMetrics fm = getFontMetrics( component.getFont() );
            int startWidth = fm.stringWidth( start );
            int middleWidth = fm.stringWidth( middle );
            int endWidth = fm.stringWidth( end );
            int minimumWidth = startWidth + middleWidth + endWidth;
            // Add dots to fill out the extra space
            StringBuffer buffer = new StringBuffer(start);
            buffer.append(middle);
            if (minimumWidth < availableWidth) {
                String dot = ".";
                int dotWidth = fm.stringWidth( dot );
                int dots = (availableWidth - minimumWidth) / dotWidth;
                for (int i = 0; i < dots; i++) {
                    buffer.append( dot );
            buffer.append(end);
            String result = buffer.toString();
            return result;
        public void componentHidden(ComponentEvent e) {}
        public void componentMoved(ComponentEvent e) {}
        public void componentShown(ComponentEvent e) {}
        public static void main(String[] args) {
            ComponentWierd frame = new ComponentWierd();
            frame.setDefaultCloseOperation( EXIT_ON_CLOSE );
            frame.setSize(200, 200);
            frame.setLocationRelativeTo( null );
            frame.setVisible(true);
    }

  • Left and right justifiation in alv grid

    I m using alv grid to display a tbale.I have to justify one perticular cell depending on value.So i have to first check the value of that field in itab and then justify right or left accordingly.
    Therefore , i cnt use just field of field catalog as im not goin to justify whole column.
    I tried to save justified value in itab  and then display in alv but alv doesnt display white space charaters in start and end.
    Could you help me with this topic.
    regards

    hii,
    i think this is not possible.

  • Using Right-justified and left zero-filled condition in message mapping of

    Hi,
    My Interface is outbound Interface.
    Suppose source field named 'MobNumber' is mapped with Target field named 'MobileNumber'.Condition is AS IS(Right-justified and left zero-filled).
    How should i do this mapping?
    Thanks,
    Sanghamitra

    Hi Sanghamitra,
         Similar question ahs been answered earlier in this thread
    Re: Message Mapping using Left justified, right blank/space filled
    just replace the filler variable by zero in my post
    One small request, if you think your questions are being answered correctly and properly, please kindly, if possible, close down the threads. This way forum members/users  who later look up for solutions to similar problem, they know for sure that the problem was finally solved, with the solutions provided in the thread.   
    regards
    Anupam
    Edited by: anupamsap on Aug 3, 2011 11:27 AM

  • Tab delimited and Right justified fields

    Hi
    My requirement is to produce an output file where the line items consists of 5 fields of variable lengths and all of them are tab delimited and right justified at the same time
    for eg.
    ABC       123456ghtje  4567.45678   67.45678  pqr
    where all the values in the first field 'ABC' and 2nd field '123456ghtje' are right justified and are tab delimited and asme is the case for '4567.45678' , '67.45678' and 'pqr'
    they are all separated from each other by a tab but are not fixed lengths
    How can i achieve that ? i am using File Receiver Adapter ??
    Can it be done without Adapter Module ?
    Thanks
    Dev
    Edited by: sd on Feb 22, 2010 2:25 PM
    Edited by: sd on Feb 22, 2010 2:26 PM

    > they are all separated from each other by a tab but are not fixed lengths
    When thay are not fixed length fields, why do you have to worry about left or right justification? In delimetted files, you would only have the delimitter between the fields. You do not need to fill spaces for justifying them.
    VJ

  • Right justify and zero fill a FormattedTextField

    Hi,
    I am tyring to right justify and zero fill a JFormattedTextField.
    So if the user types in "123" it will get set to "0123". Any ideas? I didn't see anything in the MaskFormatter class that can accompish this...

    Hello Stroh,
        NumberFormat nf = NumberFormat.getNumberInstance();
        nf.setGroupingUsed(false);
        nf.setMinimumIntegerDigits(5);
        nf.setMaximumIntegerDigits(5);
        NumberFormatter nft = new NumberFormatter(nf);
        nft.setAllowsInvalid(false);
        nft.setOverwriteMode(true);
        tf = new JFormattedTextField(nft);
        tf.setHorizontalAlignment(SwingConstants.RIGHT);
    //    tf.setBounds(100,50,100,20);
        tf.setText("00000");Actually I would prefer to stop any further input after 5 digits have
    been entered. But presently I don't know how achieve this without using a document. I f you have an idea,please let me know.
    Regards
    Joerg

  • How to get search help results in RIGHT-JUSTIFIED column

    I am writing a search help with search help exit. Therefore, I use a table lets say tabA. I don't need all fields of tabA but need some further fields which I fill during exit.
    tabA does not have currency or number fields.
    I need a currency field and use a char20 field of tabA instead. filling of this field and showing results is o.k., but of-course it is shown left-justified.
    I did not find any fields of shlp-fielddescr which sounds like left/centered/right-alignment. Another try was to fill char20 field with leading '_' signs - that looked terrible and was not right-justified either, because of not fixed-size font.
    Let's resume: there is no number or currency field which I can use. The shown results appear in a column of not fixed-size font.
    Any other idea?

    Hi, I have the same problem. Did you get to resolve it? . Thanks

  • My "Messages" are all right justified.  How do I get them left justified?

    My "Messages" are all right justified.  How do I get them left justified?

    Hi,
    To be clear and for other readers,  Messages has dropped the number of Styles to three.
    Compact and Boxes are styles that have you and the Chatee on the left and the messages themselves are left justified.
    Balloons is the default (Speech bubble stylee), as mentioned, and your part of the chat or conversation is on the right but is also Right Justified.
    Part chat example
    9:31 PM      Friday; May 31, 2013
      iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.3)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • RIGHT JUSTIFY ISSUES

    Ok,
    So I am having a very frustrating issue....
    I am creating a Marketing for some instore signage.
    I am right justifying all of my text, each line of type is a different size, one of the lines is a number, the number is NOT aligning all the way right. I have tried different numbers and a different font (still same issue). I have also tried using the 'story' pallet, but it moves all the text in the text box, not just the one line I need to nudge to the right. I have also tried making a space to the Right of the number the negatively tracking it (this works when I LEFT justify things but NOT right justify).
    *I am making over 500 signs so I need something that is consistent and easy (not a hard way to work around it.. like creating an extra character with no fill and negatively tracking it.. that works, but will not be a good thing for over 500 signs)
    *my ultimate goal is to make these signs into paragraph styles so they are consistent.
    PLEASE HELP..

    I agree with Michael with the space assigned by the font designer is for optical spacing. This is normal for any well thought out font design as the character's axis is so important for TOS balance. The above blurb doesn't help you at least you're on the right track with Paragraph Styles;
    This example is for sans serif type, I would make sure each line ended with a paragraph return and all lines have a Right Indent spacing value.
    Create different paragraph styles with different Right Indent values for your different lines of text as you'll find flush/R characters with round bowls will hang outside your optical alignment compared with lower case y's for example.
    eg. your paragraph style for numbers and characters with F/R stems can have a Right Indent of .16 in.
    your line that end with round bowl characters can have a Right Indent of .175 and so on

  • Right Justify Numbered List

    In a very simple table, within Pages Layout - I want to list 10 numbered items and have the numbers be right justified. not the entire text, just the numbers. I do not find a way to do that. Thanks for any help.

    fruhulda wrote:
    I think OP is talking about a Table in Layout mode. If you have both text and number in the same cell you need to use tab BUT in a table you have to hold down the Alt key when using the Tab key, otherwise you only move to the next cell. In the Inspector you can change it to a right adjusted tab.
    Is that working for you?
    Here on my machine, if I put a decimal tab stop in the cell's ruler,
    the number aligns correctly when I insert a tab (alt + tab)
    but it returns to the left side when I leave the cell.
    It seems that the feature was designed for the old tables (those in iWork 1 and 2) but fails with the tables using the Numbers structure.
    Only the alignment buttons give a correct behavior (but the decimal characters are aligned only if the number of decimals is fixed and if the font used is a monospaced one. Boring, isn't it ?
    Yvan KOENIG (from FRANCE dimanche 14 juin 2009 19:06:04)

  • How to change number of retries and delay before retrying after software install failure

    I deploy a software to client, but the installation is fail, so it will retry. but How to change the number of retries and delay before retrying after software install failure?
    I find "Retry Settings" in "Software Distribution Component Properties". But I think it work for Distribution, not the installation. am I right?

    First, are you referring to packages or applications because the behavior is different.
    Also, why do you want it to retry a failure? It failed for a reason so you need to fix the cause of the failure first. If it failed the first, it will likely fail the next time for the same reason. In general, ConfigMgr will only retry on transient type
    errors.
    Jason | http://blog.configmgrftw.com

  • FW: Caret Location Right Justified for LI when using HTMLEditorKit

    It appears that when using the HTMLEditorKit and inserting any sort of list
    item (ordered list or unordered list) into a view (while in edit mode), the
    caret is initially *---------| right justified with respect to the bullet
    image. If the identical html is loaded all at once however the caret is *-|
    left justified with respect to the bullet image. Is this a bug in
    HTMLEditorKit?

    Sure it is. In this special case IBM's JDK does a better job (at least under Linux).
    Generally I'm totally disappointed by the whole HTML package. I've been trying to implement a really primitive WYSIWIG-HTML-editor which understands <p>, <ul>, <h1> <b>, <i> and <a href>. It is a nightmare!
    - Dynamically modifying the document's structure (e.g., by making a <li> out of a <p>) works more or less, but you have absolutely no control over caret movement, and different JDK's make it differently!
    - The HTMLDocument inserts crude "extra-tags" (e.g., those <p-implied>'s. You never know exactly the structure of your document, and after a long debugging session you notice that the HTMLDocument was bluntly inserting yet another artificial element you did not specify. No docs at all what's going on.
    - It is nearly unbelievable how complicated so simple things like
    are internally modelled.
    - Frankly spoken: The whole document model sucks. Has to be harmonized with XML, DOM, JDOM, and all those nice new technologies where Java does a good job (unless you need a GUI...)
    If anybody has an idea to make it properly -> pls let me know
    thx
    Karl

  • How to Right Justify text on Ipod

    My ipod has been through some wear and tear, long story short, the screen is "cracked" so to speak down the middle and from the middle of the screen to the left side i cannot see anything. I'm trying to figure out how to right justify all of the text so that i can actually use my ipod and search songs

    You can't change the layout of any part of the iPod OS. Sorry. You might want to consider getting the screen replaced. There are lots of third party repair outfits that charge less than Apple to so the job.

  • Cursor not right-justifying in Oracle Forms 11.1.1.6.0

    Hi All,
    A user notice during testing that 'cursor not right-justifying' in a field on a form. There were not such problem in the old forms enviroment 10.1.2.0.2 and clients running JInitiator 1.3.1.22. The new forms enviroment is Oracle weblogic 10.3.6, Oracle forms and report 11.1.1.6.0, using forms demo pack cursorpos.jar and demo90.jar, have try the 11g demo pack but still the same problem, any ideas?
    Thanks
    Ola

    A user notice during testing that 'cursor not right-justifying' in a field on a form.What exactly do you mean by "cursor not right-justifying"?
    You will find noticable differences between the way the Oracle Jinitiiator and Oracle (Sun) Java work. Remember, the Jinitiator was based on the Sun JRE/JDK 1.3 and Forms 11g will be using either Java 1.6.0 or 1.7.0.
    Craig...

Maybe you are looking for

  • How do i put a video in my presentation when there is an error code coming up?

    I am trying to place a movie in my presentation but there is a error code coming up saying cant find server

  • Can't drag desktop icons & other problems

    Hi.. I cannot drag my desktop icons nor items from a folder to DT. When this happened, I lost printing from my Lexmark E120N, my memory chips were listed as 68k and 28 k when they are 1 gig & 2 gig. That seems to have cleared up. I also cannot copy a

  • Trouble updating record w/ attached file.

    Hi, Posted in the SQL forum but no response. Hopefully someone here will have an idea. My application has a file upload feature so a file can be attached to every record saved with this INSERT on Submit:<br><br> if (:P3_Filebrowser is not null) then<

  • Customizing the work protect mode

    Hi, I have a problem in customizing the sap providing work protect mode. When I activate the work protect mode, a pop up is coming up and the default radio button selected is to open the unsaved data in a new window. Can you please let me know can we

  • How do I log-in for Adobe CreatePDF Desktop Printer?

    I just downloaded and installed the Adobe CreatePDF Desktop Printer but cannot print. Where do I have to type in my log-in details to use it?