Field Cutting Off Numbers

I am having trouble with a field cutting off most of a number when 0.00 is present. The field is named FL025, and pulls information from an outside source. It is right-justified with a 10 digit character limit. It is formatted as a number. This exact same field on other forms works perfectly. I cannot figure out why it keeps cutting off most part of the number on this one. It isn't the field size, no matter how big I make the field, it still cuts off the numbers and half a zero is all that shows, or perhaps it's a parenthesis. I'm not sure. See clip below.

We are trying to help you find the problem. There maybe some issue with the format you selected. The suggested change is for testing and observation only. This is part of the debugging process. You could also use JavaScript to examine the field, but I do not think you can do that.
Normally the parenthesis do not display for zero unless the value is a negative number smaller than the amount the field is formatted to display and it is possible to enter a digit with more than 10 digits especially for decimal values.
An image does not provide much information. Many computer programs have data in a different format than what is displayed.
Can you post a link to a sample form with the data?
If the data supplied is formatted with currency symbols and a thousand separator the 'Number:" format will not display it properly. The number format only accepts the numeric digits, a leading sign, and a decimal point. The decimal [point might also need to be the "." and not ",". If it is a "," there maybe a script in the other forms that make the correction when the outside source is quired.
What version of Acrobat are you using? Database access has been removed for Acrobat forms but remains for LiveCycle forms.
Is the form being populated by a direct data connection or through some other software?
Have you tried talking to your companies IT support?

Similar Messages

  • Data and Information Menu Fields Cut Off (Photoshop CC)

    Since I've updated to Photoshop CC, something has changed in the way the information and data fields display in menus and windows to where I can't see them fully or can't see what I'm entering into them. See the image below for reference.
    This is happening to Photoshop CC (both standard and 64-bit version) and somehow has applied this to my CS6 versions of Photoshop. I've updated my other programs to CC (Illustration and InDesign) and don't have this issue. They are working fine.
    I've done the following to correct the issue, but have not been able to resolve the issue:
    - shut down and restart computer
    - change image resolution for my monitor
    My last resort will be to uninstall/reinstall the Photoshop CC app, but was checking to see if anyone knew what is causing this.
    Thanks for any help you can offer.

    Do you have some other kind of theme or program (window blinds for instance) that modifies windows
    or perhaps an third party desktop manager?
    Is that windows 7?

  • Varchar(Max) field cutting off data after 8000 characters SQL Server 2008

    Hi,
    We have a scenario on which we are preparing the SQL query dynamically by string concatenat and then at the end EXECUTING the query using EXECUTE statement but observed that the VARCHAR(MAX) data type is not storing more then
    8000 character.
    Here is the code snip.How i am using and where the variable is not storing more them 8000 character
    We have a table "tblUserAssignedResourcesData" where we are storing "FilterType" and "FiletrValue" and then preparing the string like this:
    DECLARE @sqlQuery_UR VARCHAR(MAX)   
    SET @sqlQuery_UR=''
    DECLARE @agentsColumns_UR VARCHAR(MAX)             
    SELECT @agentsColumns_UR = ISNULL(@agentsColumns_UR,'') +''''+ FilterValue + ''''+',' FROM @tblUserAssignedResourcesData Where FilterType = 1             
    SELECT @agentsColumns_UR = LEFT(@agentsColumns_UR,LEN(@agentsColumns_UR)-1)             
    SET @sqlQuery_UR=@sqlQuery_UR+'[UserAgent] in('+ @agentsColumns_UR +')'
    --Upto this all the Agents are storing properly then adding mobility user
    DECLARE @mobilityColumns_UR VARCHAR(MAX)            
    SELECT @mobilityColumns_UR = ISNULL(@mobilityColumns_UR,'') +''''+ FilterValue + ''''+',' FROM @tblUserAssignedResourcesData Where FilterType = 3               
    SELECT @mobilityColumns_UR = LEFT(@mobilityColumns_UR,LEN(@mobilityColumns_UR)-1)
    SET @sqlQuery_UR=@sqlQuery_UR +' or '+'[MobilExtensionID] in('+@mobilityColumns_UR+')' 
    print '@sqlQuery_UR ->' + @sqlQuery_UR
    --Print statement should print all the Agents and Mobility values but it is not printing and hence my SQL query is faling to execute
    Anyhelp will be appriciable
    Thanks,
    Bijay

    Whats the value of @mobilityColumns_UR  before the below statement? This would give you
    some idea.
    --Upto this all the Agents are storing properly then adding mobility user
    DECLARE @mobilityColumns_UR VARCHAR(MAX)             
    SELECT @mobilityColumns_UR = ISNULL(@mobilityColumns_UR,'') +''''+ FilterValue + ''''+',' FROM @tblUserAssignedResourcesData Where FilterType = 3               
    SELECT @mobilityColumns_UR = LEFT(@mobilityColumns_UR,LEN(@mobilityColumns_UR)-1)
    print '@mobilityColumns_UR  ->'
    + @mobilityColumns_UR 

  • Adobe Pro X and Bates/Page Numbering Cuts off 1/3 of Page - Please Help

    Hello!
    We have been using both the bates and page numbering features in Adobe Pro X on Windows 7 with various .pdf files.  However, when we scan files using Adobe Pro 6 on XP in combination with a Visioneer/Xerox Documate 632 scanner, and when adding bates or page numbers to these files, the image on the page shifts and cuts off one-third of the image.  (We use Adobe Pro 6 and XP with this scanner because Pro 6 is not compitable with Windows 7 and Pro X requires too many mouse clicks when compared to Pro 6; thus saving time in the field.  We like the page and bates numbering feature in Pro X because it shrinks the document to avoid overwriting texts and graphics.
    Do you have any suggestions on how to resolve this issue aside from using Pro X with the time spent using the additional mouse clicks?
    Thank you in advance!
    LB1090

    Hi Suzbat,
    If you try to print any other document from any other application. Did you check, are you facing the same issue or not?
    Have you tried to install latest drivers of the printer.
    Regards,
    Ajlan Huda.

  • Appleworks Database cut off data on right side of field?

    Help!! I am working with Appleworks 6.2.9 on a G4 PowerBook running OS 10.3.4. I have created a database that prints a 5-6 sentence summary of each of my lessons. When I print this layout, it cuts off the right hand side of the field. The last 2 letter on each line are missing. The layout looks fine on the computer. It is not the end of the page. It prints other things to the right of the field. It just cuts off the text in a particular field.

    Hello
    Have you tried to replace the font as written in my late post ?
    You may also try to check the checkbox:
    AppleWorks > Preferences > General > Text > Fractional Characters Widths
    This may have an impact on the way characters are displayed.
    Remember, since the delivery of Tiger, some details are odd in the way AppleWorks items are displaye because internal treatment is always based on Quickdraw rendering but it is really done with Quartz. It seems that this may give odd results for strings's lengths.
    Differences are quite invisible with many fonts but are visible with some ones.
    Yvan KOENIG (from FRANCE mercredi 23 novembre 2005 14:59:58)

  • Footnote numbers cut off

    I'm having an issue in Pages 5.1 whereby my footnote numbers in the main body of text will get cut off if a) they exceed one character, and b) they fall on the edge of the right margin of the document.
    Example:
    Part-way through my document I have a footnote 12 at the bottom of the page, and in the main text Pages inserted a superscript 12 to correspond. However, it falls on the right margin of the document, so only the 1 is visible. This happens several times throughout. The issue remains if I try exporting to PDF or Word.
    For academic writing this is a serious issue as it means footnotes do not correspond with their in-text references; half of my notes simply have a '1' referring to a very different number.
    I have tried playing with margins, indentation, and nothing seems to work. If anyone has experienced the same problem, advice would be greatly appreciated.

    Issue solved, in case anyone has the same problem and comes across this thread.
    As I realised, issue of cutting off only happens when you 'justify' text alignment. If you want to keep your text alignment justified but not cut footnote numbers off:
    1. First select 'Show Layout' from top 'View' menu bar. Makes what I'm about to explain a lot clearer.
    2. Set the RIGHT document margin (as found under righthand toolbar Setup > Document > Document margins) to half a centimetre LESS than what you want the margin to be. (For example: I want 2cm margins around my whole document, so I set to 1.5cm.)
    3. Now, go up to the ruler at the top of the document (will need to make sure 'Show Ruler' is enabled) and move the far RIGHT blue margin slider half a centimentre IN towards the centre of the document.
    This effectively sets your document margins larger than your text margins, giving you buffer space for your footnote numbers.
    Haven't tried printing yet but converting to PDF works great. Hope this helps someone!

  • I'm using Big date theme but the numbers on the date is cut off on top.  I'm on iphoto 11 and OS 10.8.2.  anyone else having this issue??

    I'm using Big date theme but the numbers on the date is cut off on top.  I'm on iphoto 11 and OS 10.8.2.  anyone else having this issue??

    OK try the following: make a temporary, backup copy (if you don't already have a backup copy) of the library and try the following:
    1 - delete the iPhoto preference file, com.apple.iPhoto.plist, that resides in your
         User/Home/Library/ Preferences folder.
    2 - delete iPhoto's cache file, Cache.db, that is located in your
    User/Home/Library/Caches/com.apple.iPhoto folder (Snow Leopard and Earlier).
    or with Mt. Lion from the User/Library/Containers/com.apple.iPhoto/
    Data/Library/Caches/com.apple.iPhoto folder
    3 - launch iPhoto and try again.
    NOTE: If you're moved your library from its default location in your Home/Pictures folder you will have to point iPhoto to its new location when you next open iPhoto by holding down the Option key when launching iPhoto.  You'll also have to reset the iPhoto's various preferences.
    NOTE 2:  In Lion and Mountain Lion the Library folder is now invisible. To make it permanently visible enter the following in the Terminal application window: chflags nohidden ~/Library and hit the Enter button - 10.7: Un-hide the User Library folder.

  • Long Response fields when downloaded as a detailed view PDF of a single response are cut off

    When a field in a form runs more than one line, the field is converted into a single line scrolling box when exported as a PDF for a single detailed view.  It is readable by scrolling, but is cut off when printing it out, making hard copies useless.
    Is their some formatting option I am missing? Can a field be expanded vertically?

    Is the field a "multi-line" text field (its the second icon on the Add Item toolbar in the Design tab)?
    If it is you can just make the field bigger by dragging the lower right corner.
    Randy

  • Export file (rtf and doc) has a cut off field

    Hi,
    I am using CR10/VB6/Oracle10.2
    CrystalViewer shows the report preview fine then click the envelope icon to export file
    (rtf or doc).
    When I open the exported file (.rtf or .doc), there are some fields in the file is cut off .
    Half of line of record is cut off horizontally.
    This problem does not happen always. I don't know it depends on the record or not.
    Does anyone have a same problem?
    Thank you

    Hi Sachiko
    CR X is not tested with Oracle 10.2. This issue may occur since some of the dlls may not be supported. Hence you can try out the following:
    1. Apply the latest Service Pack and check if you get the same issue.
    2. Try using another Viewer and check if the issue still persists
    3. Try upgrading CR X to CR XI R2 since CR XI R2 is tested with Oracle 10.2
    Regards
    Purva Naik

  • IMessages to an iPhone occasionally appears with words cut off from end

    When sending texts from iMessages to an iPhone, the text occasionally appears on their iPhone with a couple words cut off from the end.  It appears fine in the iMessages display/history.   Here's a few things I've noticed:
    - It's repeatable.  For example, the following message always causes the issue:  "man, why are you here?  Two are in testing places".  On the iPhone it appears as "man, why are you here?  Two are in testing".
    - It's a problem with iMessages.  If I send the exact same text from the iPhone, it goes through just fine.  The message has to originate from MacOS iMessages.  (I'm using the latest Mountain Lion and all updates as of 12/21/12)
    - The full message is actually being successfully transferred to the phone;  it just does not display correctly.  There are two pieces of evidence for this.  If on the iPhone, the user copies the truncated message and pastes it somewhere else, the full message is pasted!  Moreover,  on the top level the messages app (where you see the last message from all the recent people you texted with), the full message displays.
    - It can happen with both short and longer messages.   Here's another longer message I noticed got cut off: "That's funny that you though I was joking when I said I was debugging.  Why is that so weird?"
    - It has something to do with the length of the message or how it is being wrapped.  I can create modifications of those texts with the same length, and they will cut off. (That said, some modifications will not cause the problem, so it's more than just length.  Maybe it has something to do with how it wraps the words?)  Usually adding a few words to the message will allow it to go through.
    - It always cuts off at a space.  In other words, it will not truncate something in the middle of a word.
    - I have only seen it cut off one or two words before.
    Apple really needs to make this a high priority fix.  Unreliable messaging of this sort is a deal-breaker for iMessages, IMO.  My guess is that they haven't had more reports for this because people simply don't notice unless the last word or two totally ruins the meaning of a text and the other person points it out. 
    Can people try to recreate this on their machines?  If so, please do so and file a bug report (http://www.apple.com/feedback/macosx.html).  All you have to do is get on your iMessage app and text one of those two messages to your phone.  If it appears truncated on your phone, you've confirmed it.  You're welcome to use any of my post in any bug report.

    Hi,
    some entries had    (tabs probably)
    I had seen these in Quicklook at the point where the Message appeared to show double spaces after a Full Stop or Question Mark.
    You are right that it have not dawned on me that I had not seen them between words.
    It was TextEdit as well (Not sure why I said QuickLook)
    29723AE1-6D8B-4932-8353-875164302786man, why are you here?¬†¬†Two are in testing placesn  streamtypedÅË Ñ @ÑÑÑ NSMutableAttributedStringÑÑ NSAttributedStringÑÑ NSObjectÖíÑÑÑ NSMutableString ÑÑ NSString ïÑ +3man, why are you here?¬†¬†Two are in testing placesÜÑ iI 1íÑÑÑ
    Part of this means the iMessages sent out.
    The "repeat" is the sync back from the the ID  the iPhone is using.
    I am presuming the leading numbers are the iMessage identifier that iMessages uses to tell whether it has been Synced
    Messages on the Mac is trying to enclose this in Coloured Balloon (or other style) and lists a Font and it's colour
    NSDictionaryïÑ i íÑòò __kIMBoldAttributeNameÜíÑÑÑ NSNumberÑÑ NSValueïÑ *ÑÑ cü ÜíÑòò __kIMFontSizeAttributeNameÜíÑùûÑÑ q† ÜíÑòò __kIMFontFamilyAttributeNameÜíÑòò Arial BlackÜíÑòò&__kIMBaseWritingDirectionAttributeNameÜíÑùû
    The sync from the iOS device lists
    ¢†ˇÜíÑòò(__kIMMessageForegroundColorAttributeNameÜíÑòò #000000ÜíÑòò(__kIMMessageBackgroundColorAttributeNameÜíÑòò #2ba92dÜíÑòò __kIMMessagePartAttributeNameÜíÑùû¢†ÜÜÜ
    ( A less complicated "Balloon")
    It is unlikely to be the Tab key as this changes Fields in Messages  (From Text Entry spot, to Search spot, to the "To" spot.)
    8:43 PM      Tuesday; December 25, 2012
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.2)
     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

  • Why does text box info get cut off in certificate

    I am using Captivate 7.  When a student enters his name and pharmacy license number in the field is is ok, but when it is reproduced in the certificate (and the name also in the "Hello NAME welcome to the program") it cuts off the name if it is too long and won't print all of the license info if there is more than one license (it prints some of the second) .... it's like cutting it off becuase there are too many letters or numbers.
    I have the correct field for the certificate, for instance $$cpQuizInfoStudentName$$  and $$v_custom4$$  .... it pulls the info in from the field, but cuts it off.
    Any ideas?   HELP.   I am pulling what little hair is left on my head out!
    Thanks.
    Larry

    Hi,
    It sounds like you have authored a drop-down field that looks something like this in the Design view:
    As you know, the fillable form cannot display this multi-line choice label.
    Unfortunately, there's no way to correct this issue other than reducing the amount of text in the choice label or somehow creating enough space in the form to accommodate the text on a single line. For example:
    - reduce the amount of space allocated for the label text
    - reduce the text size of the drop-down field
      - increase the form width, then increase the width of the drop-down control
    I will log a bug against the authoring application for this issue. The current behavior is misleading.
    Thanks for the feedback.
    Brian

  • Folder Titles are cut off.

    Hi Guys,
    I need some advice on why my album folders are not complete but only cut off. Long Album titles are reduced.

    Hi Garth,
    If the *Keep iTunes Music folder organised* feature is enabled iTunes will rename files and folders that are within the iTunes Music folder. If you add files to the library or make changes to tags the files will be automatically renamed to reflect this. The general layout is:
    <Artist>\<Album>\[<Disc No.>-]<Track No.> <Track Name>.<Ext>
    If *Part of a Compilation* is true then a value of Compilations will be used instead of <Artist> above. Likewise, if the *Album Artist* field is set this will be used to set the <Artist> value which will make a difference if there are guest artists credited on the album or have a Various Artists album not marked as a compilation. The <Disc No.> is only prepended to the filename if there is more than one disc in the collection. All characters which are invalid within filesnames are replaced with an underscore. File & folder names are truncated to 40 characters inclusive of extention. If two or more files would have the same filename, the second filename is (where neccesary) shortened by a couple of charaters and given a trailing index of 1, the next 2 and so on. (Earlier versions of iTunes would replace the existing file with the new one of the same name potentially destroying data - although long since fixed this is another reason for my preference.)
    Whether disc & track numbers are included in the filenames used to be optional within the iTunes preferences and, if desired, can still be disabled via a suitable hack.
    If you disable the *Keep iTunes Music folder organised* option these rules will still be used for any music that you download from the store or rip from CDs. Likewise if you have the option *Copy files to iTunes Music folder when adding to library* enabled and import files from outside the iTunes Music folder, the new copies will be created with the same naming conventions. What will be different is that if you make a change in iTunes this will not be reflected by updating the filename. If however you name files according to your own conventions and then add them to the library, iTunes will not rename them. Unlike Windows Media Player, iTunes will lose track of any files you manually rename so if you do go down this road you then have the extra effort of removing and reimporting files that you choose to modify.
    I should make it clear that manually organising my music folders is a personal preference and not one I necessarily recommend to others - it's a lot more effort for no real gain. For a long while I had an iRiver H140 which I synchronised with my music folders. To make the iRiver easier to use I created a folder structure which separated out some sections of my library from others e.g. Comedy, Classical, Soundtracks etc. I also set my own rules for invalid character replacement and for compilations appended the artist to the track name. Although I no longer use the iRiver I prefer to keep this structure.
    I used to keep the bulk of my library in the Windows "My Music" folder and only let iTunes manage the podcasts however the last time I did a full rebuild of the library I put everything inside the iTunes Music in order to take advantage of the ability to relocate a self-contained set of iTunes library folders. I know I should really commit to iTunes and stop worrying about exactly how my data is orgainsed but there it is... we can't change our nature.
    tt2

  • How do I resize this JPanel withou cutting off content?

    I need to make this JPanel smaller vertically. Every time I do it cuts off the bottom of the graph. How can I make it shorter without losing content?
    TIA
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Graph extends JFrame implements ActionListener {
         JButton button;
         int []bar = new int[4];
         float []flote = {1395,1296,1402,1522};
         String []valuesInput = {"1395","1296","1402","1522"};
         String str = "", title="Title goes here";
         String []barLabels = {"pp01, Oct. 2003","pp02, Oct. 2003","pp01, Nov. 2003","pp02, Nov. 2003"};
         String []percent = {"","","",""};
         JLabel []JLab = new JLabel[4];
         JTextField titletxt;
         JTextField []Text = new JTextField[5];
         JTextField []labeltxt = new JTextField[5];
         boolean pieChart;
         public Graph() {
              Container c = getContentPane();
              JPanel panel = new JPanel(){
                     public void paintComponent(Graphics g) {
                        Graphics2D g2 = (Graphics2D)g;
                        g2.setColor(new Color(223,222,224));
                        g2.fillRect(0,0,550,400);
                        g2.setColor(Color.orange);
                        if(pieChart) {
                             g2.fillArc(30, 130, 220, 220, 90, -bar[0]);
                             g2.fillRect(270, 170, 30, 20);
                        else g2.fillRect(30, 150, bar[0], 30);
                        g2.setColor(Color.green);
                        if(pieChart) {
                             g2.fillArc(30, 130, 220, 220, 90-bar[0], -bar[1]);
                             g2.fillRect(270, 210, 30, 20);
                        else g2.fillRect(30, 190, bar[1], 30);
                        g2.setColor(Color.red);
                        if(pieChart) {
                             g2.fillArc(30, 130, 220, 220, 90-(bar[0]+bar[1]), -bar[2]);
                             g2.fillRect(270, 250, 30, 20);
                        else g2.fillRect(30, 230, bar[2], 30);
                        g2.setColor(Color.blue);
                        if(pieChart) {
                             g2.fillArc(30, 130, 220, 220, 90-(bar[0]+bar[1]+bar[2]), -bar[3]);
                             g2.fillRect(270, 290, 30, 20);
                        else g2.fillRect(30, 270, bar[3], 30);
                        g2.setColor(Color.black);
                        g2.setFont(new Font("Arial", Font.BOLD, 18));
                        if(pieChart) g2.drawString(title, 220, 142);
                        else g2.drawString(title, 50, 132);
                        g2.setFont(new Font("Arial", Font.PLAIN,16));
                        int temp=0;
                        if(pieChart) temp = 185;
                        else temp = 172;
                        for(int j=0; j <4; j++) {
                        if(pieChart) g2.drawString("$"+valuesInput[j]+" "+barLabels[j]+percent[j], 305, temp);//XXXXXXXXXXXXXXX
                        else g2.drawString("$"+valuesInput[j]+" "+barLabels[j]+percent[j], bar[j]+40, temp);
                        temp += 40;
                        if(!pieChart){
                             g2.drawLine(30, 130, 30, 300);
                             g2.drawLine(30, 300, 430, 300);
                             //g2.drawLine(210, 345, 210, 350);
                             //g2.drawLine(390, 345, 390, 350);
                             g2.setFont(new Font("Arial", Font.PLAIN,12));
                        super.paintComponent(g2);
              panel.setOpaque(false);
              panel.setLayout(new FlowLayout() );
              button = new JButton("Bar Graph");
              button.addActionListener(this);
              for (int k=0; k<4; k++){
                   str = Integer.toString(k+1);
              panel.add(button);
              c.add(panel);
         public void actionPerformed(ActionEvent e) {
              String command = e.getActionCommand();
              if(command.equals("Bar Graph")){
                   button.setText("Pie Chart");
                   pieChart=false;
                   try {
                        int temp =0;
                        java.text.DecimalFormat df = new java.text.DecimalFormat("#0.#");
                        for (int j=0; j<4; j++){
                             //flote[j] = Float.parseFloat(Text[j].getText());//XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
                             temp += (int)((flote[j]) +0.5);
                        for (int k=0; k<4; k++){
                        bar[k] = (int)(((flote[k]/temp) * 360)+0.5);
                             //barLabels[k] = labeltxt[k].getText();XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
                             flote[k] = (flote[k]/temp) *100;
                             percent[k] = ": "+df.format(flote[k])+"%";
                   catch(Exception message){
                        title = "Oops! Complete all fields, enter numbers only";
              if(command.equals("Pie Chart")){
                   button.setText("Bar Graph");
                   pieChart=true;
              repaint();
         public static void main(String[] args) {
         Graph frame = new Graph();
         frame.setSize(550,400);
         //frame.setLocation(200, 200);
         frame.setResizable(false);
         frame.setDefaultCloseOperation( EXIT_ON_CLOSE );
         frame.setVisible(true);

    Try with this (it really works!):
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Graph extends JFrame implements ActionListener {   
        int width;
        int height;
         JButton button;
         int []bar = new int[4];
         float []flote = {1395,1296,1402,1522};
         String []valuesInput = {"1395","1296","1402","1522"};
         String str = "", title="Title goes here";
         String []barLabels = {"pp01, Oct. 2003","pp02, Oct. 2003","pp01, Nov. 2003","pp02, Nov. 2003"};
         String []percent = {"","","",""};
         JLabel []JLab = new JLabel[4];
         JTextField titletxt;
         JTextField []Text = new JTextField[5];
         JTextField []labeltxt = new JTextField[5];
         boolean pieChart;
         public Graph() {
              Container c = getContentPane();
              JPanel panel = new JPanel(){
                     public void paintComponent(Graphics g) {
                         width = getWidth();
                         height = getHeight();
                        Graphics2D g2 = (Graphics2D)g;
                        //g2.scale(.95,.95);
                        g2.setColor(new Color(223,222,224));
                        g2.fillRect(0,0,width,height);
                        g2.setColor(Color.orange);
                        if(pieChart) {
                             g2.fillArc(getW(30), getH(130), getW(220), getH(220), 90, -bar[0]);
                             g2.fillRect(getW(270), getH(170), getW(30), getH(20));
                        else g2.fillRect(getW(30), getH(150), getW(bar[0]), getH(30));
                        g2.setColor(Color.green);
                        if(pieChart) {
                             g2.fillArc(getW(30), getH(130), getW(220), getH(220), 90-bar[0], -bar[1]);
                             g2.fillRect(getW(270), getH(210), getW(30), getH(20));
                        else g2.fillRect(getW(30), getH(190), getW(bar[1]), getH(30));
                        g2.setColor(Color.red);
                        if(pieChart) {
                             g2.fillArc(getW(30), getH(130), getW(220), getH(220), 90-(bar[0]+bar[1]), -bar[2]);
                             g2.fillRect(getW(270), getH(250), getW(30), getH(20));
                        else g2.fillRect(getW(30), getH(230), getW(bar[2]), getH(30));
                        g2.setColor(Color.blue);
                        if(pieChart) {
                             g2.fillArc(getW(30), getH(130), getW(220), getH(220), 90-(bar[0]+bar[1]+bar[2]), -bar[3]);
                             g2.fillRect(getW(270), getH(290), getW(30), getH(20));
                        else g2.fillRect(getW(30), getH(270), getW(bar[3]), getH(30));
                        g2.setColor(Color.black);
                        g2.setFont(new Font("Arial", Font.BOLD, 18));
                        if(pieChart) g2.drawString(title, getW(220), getH(142));
                        else g2.drawString(title, getW(50), getH(132));
                        g2.setFont(new Font("Arial", Font.PLAIN,16));
                        int temp=0;
                        if(pieChart) temp = 185;
                        else temp = 172;
                        for(int j=0; j <4; j++) {
                        if(pieChart) g2.drawString("$"+valuesInput[j]+" "+barLabels[j]+percent[j], getW(305), getH(temp));//XXXXXXXXXXXXXXX
                        else g2.drawString("$"+valuesInput[j]+" "+barLabels[j]+percent[j], getW(bar[j]+40), getH(temp));
                        temp += 40;
                        if(!pieChart){
                             g2.drawLine(getW(30), getH(130), getW(30), getH(300));
                             g2.drawLine(getW(30), getH(300), getW(430), getH(300));
                             //g2.drawLine(210, 345, 210, 350);
                             //g2.drawLine(390, 345, 390, 350);
                             g2.setFont(new Font("Arial", Font.PLAIN,12));
                        super.paintComponent(g2);
              panel.setOpaque(false);
              panel.setLayout(new FlowLayout() );
              button = new JButton("Bar Graph");
              button.addActionListener(this);
              for (int k=0; k<4; k++){
                   str = Integer.toString(k+1);               
              panel.add(button);
              c.add(panel);
         private int getW(int dx) {
             return (dx * width) / 550;
         private int getH(int dy) {
             return (dy * height) / 400;
         public void actionPerformed(ActionEvent e) {
              String command = e.getActionCommand();
              if(command.equals("Bar Graph")){
                   button.setText("Pie Chart");
                   pieChart=false;
                   try {
                        int temp =0;
                        java.text.DecimalFormat df = new java.text.DecimalFormat("#0.#");
                        for (int j=0; j<4; j++){
                             //flote[j] = Float.parseFloat(Text[j].getText());//XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
                             temp += (int)((flote[j]) +0.5);
                        for (int k=0; k<4; k++){
                        bar[k] = (int)(((flote[k]/temp) * 360)+0.5);
                             //barLabels[k] = labeltxt[k].getText();XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
                             flote[k] = (flote[k]/temp) *100;
                             percent[k] = ": "+df.format(flote[k])+"%";
                   catch(Exception message){
                        title = "Oops! Complete all fields, enter numbers only";
              if(command.equals("Pie Chart")){
                   button.setText("Bar Graph");
                   pieChart=true;
              repaint();
        public static void main(String[] args) {
            Graph frame = new Graph();
            frame.setSize(550,400);
            //frame.setLocation(200, 200);
            frame.setResizable(true);
            frame.setDefaultCloseOperation( EXIT_ON_CLOSE );
            frame.setVisible(true);

  • Text in Dynamic Textfield gets cut off

    Hi
    I have a dynamic text field which is just one line of text.
    For some reason letters like g or p that go below the regular
    line of text get cut off.
    I have made the field bigger, and also played around with the
    _height Property but it doesn't make a difference.
    I have imported the font into the Library. When I embed it
    the font doesn't cut off but looks very different. And if I change
    the field to a static field it doesn't cut off either, but the font
    looks a little different as well.
    Any ideas?

    Why should I start a new thread if this one was never resolved and I am still having the same problem?
    ANYWAY,
    I was able to fix this by finding an answer on a different forum.
    Simply increase the text leading using the text format option, like so:
    var format:TextFormat = new TextFormat();
    format.leading = 2;
    field_txt.defaultTextFormat=format;

  • Phone line and Internet cut off overnight

    Please can this be looked into immediately.
    Our phone line and internet have both been cut off at 03:00am this morning,
    I obviously cannot phone you guys to sort this so posting on here is my only resort.
    The hub is still showing a blue light and the phone says 'check phone line'
    But neither are actually working,
    I need ASAP with this.

    Welcome to this forum.
    This is a customer to customer forum only,
    This is where customers help each other get the most out of BT products & services.
    Anything you post here does not go to BT. Although the forum is moderated by BT, not all posts are read.
    If you need direct help from BT or have an urgent problem please use this linkContact Us.
    This is a public forum which can be viewed worldwide, so please do not post any personal information, especially phone numbers, account numbers, fault numbers, address information or email addresses, as this could be used to impersonate you.
    Thanks
    You can ring 0800 800 150 to report faults.
    Also visit https://www.bt.com/consumerFaultTracking/public/faults/tracking.do?pageId=31
    There are some useful help pages here, for BT Broadband customers only, on my personal website.
    BT Broadband customers - help with broadband, WiFi, networking, e-mail and phones.

Maybe you are looking for

  • How to pass parameters to function in  where clause....

    I have a select statement like this SELECT XX_AIR_TICKET_EMP_BAL(:P2) from dual is it possible to pass to variable p2 from where clause like SELECT XX_AIR_TICKET_EMP_BAL(:P2) from dual where :p2 = :p1 user can enter only in p1 so that p2 should get p

  • Godaddy mail issues

    Hi, So I have been using GoDaddy email (IMAP) with Mail.app for quite sometime, and it has always had issues compared to let's say a Gmail account: 1.  Syncing is horribly slow and everytime I go to a folder other than Inbox I must wait minutes while

  • Variable length in substring

    i am trying unsuccessfully to write a udf, as suddenly the fixed length field i was using a substring on has changed to a variable length field... i need to pass the field into a UDF and then pass out the last two characters for one field... and the

  • Data guard failover - timing

    Hi, My standby database is running 2 hours behind the primary - to avoid logical corruption problems. If I do a switchover, how do I make my database roll forward to 1) -30 minutes: so rolling forward 2) - 3 hours: so using flashback to go further ba

  • Mass changing for accrual object assignments part of the field profit_ctr

    Hi Experts, Does any one know about mass changing for accrual object assignments part of the field profit_ctr (profit center). How can we do this? Best Regarts.