Problem in displaying text inside the item label - JFREECHART

Hi All,
I dont know whether this is the right place or not to post the queries related to jfreechart here .
I am facing a problem in displaying the text inside the item label in jfreeChart. I am trying to print the text in 2 lines one below the other at the top of each bar in waterfall chart.
Please find the code below in next post. The problem i am facing is it is neglecting the new line character . If any one knows how to display the text one below the other please help me out .
Thanks in advance .
Regards,
Diw

i am facing the problem in pasting the complete code as its exceeds the message text limitiation, please find the link below for the code .
http://www.java-forums.org/java-2d/12087-problem-displaying-text-inside-item-label-jfreechart.html#post36648
Early response will be appreciated . Thanks in advance
Regards,
Diw
Edited by: Diw on Sep 30, 2008 11:15 AM
Edited by: Diw on Sep 30, 2008 11:16 AM

Similar Messages

  • App. Express -- Change font size in the item label.

    I would like to size the item label so I did this and it did not work
    in the label I put <span style="font-size:12px;">ITEM 1</span> and
    <span style="font-weight:bold;">ITEM 1</span>
    What wrong?

    Hello,
    The basic “trick” here is to duplicate the proper label template (you can of course change the original label template, but that’s less advisable) in order to add an ID to the text/link part.
    In my example, the template is base on the “Optional Label with Help” template, and the “Before Label” field contains the following:
    <label for="#CURRENT_ITEM_NAME#" tabindex="999"><a class="t2OptionalwithHelp" id="L_#CURRENT_ITEM_NAME#" href="javascript:popupFieldHelp('#CURRENT_ITEM_ID#','&SESSION.')" tabindex="999">In order to maintain ID uniqueness, the new ID just adds “L_” to the item name.
    Now I have direct access to the text/link, and I can manipulate it using JavaScript. In the example, I added the following to the region footer:
    <script type="text/javascript">
    $x('L_P160_ITEM2').style.fontSize = '20px';
    $x('L_P160_ITEM3').style.fontSize = '30px';
    $x('L_P160_ITEM3').style.color = 'green';
    </script>Regards,
    Arie.
    Hi Carl,
    As usual I was busy typing and didn’t see your reply. I agree that a specific example would be the best and easiest way to help.
    Message was edited by:
    ageller1

  • Problem in Displaying text Variable

    Hi All,
    I have problem in Displaying text Variable in the column header.
    My requirement is as follows.
    Column Level:
    0Calmonth/Year
    Key figures
    Keyfigure1 - Current Month  - Text Variable1
    Keyfigure2 - Previous Month - Text Variable2
    Keyfigure3 - Previous Month - Same as Text Variable2 - Display same month
    So based on each 0Calmonth/year these three keygirues should display in Header section like.
    Selection screen
    0Calmonth/Year - 03.2005 - 06.2005
    Result should be for each month.
    0Calmonth/Year
    03.2005                                04.2005                              05.2005
    03.2005 | 02.2005 | 02.20005  04.2005 | 03.2005 | 03.2005 05.2005 | 04.2005 | 04.2005.
    I have created two text variable with Customer exit.But not able to show exact months in the header section.
    For first three columns months are coming exactly, but from fourth columns it should display next month, but it is not coming.
    I have tried to code, but not successfull.
    Please help me how to go about this.
    Will assign full points.
    Regards,
    Vijay

    hi
    Check here........
    Re: Customer Exist for "From Current Date To Month End"
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/25d98cf6-0d01-0010-0e9b-edcd4597335a
    Cal month
    it might helpful for you
    assign points if helpful

  • Text inside the portlet is cutting off

    I have a process portlets and the text inside the portlet is cutting off. For example, instead of displaying the name of the process "Certificate of good standing" I get "Certificate of Goo..." How can I make the text wrap or show the full project name. I try placing the portlet in a full page, but it's still dose not fix it. Anyone know where it can be change?

    Here is the solution that I got from puspendu
    And it worked:
    From your question , I am assuming you are using the ALIP version of the BPM. The portlets UI are designed to only display that many characters for the application name and display the full name as html title field.
    If you really want to change you can go to the application.jsff file under ptjsp folder and change to display the applicaiton.name instead of applicaiton.shortname.
    ----------------

  • May I know how to change the color of texts inside the indicator box?

    Can anyone tell me how to change the color of texts inside the indicator box? I have tried to use property node but not really know how it functions.
    In fact, I am writing a program for which the number inside indicator on front panel will show red color if the measured value can't reach the requirement. I am using LabView 6.1 Professional
    Thank You for your attention!!!!!!

    Simply use a property node with "NumText.TextColor" and wire the correct color depending on your test result.
    The attached simple example (LV 6.1) lets you change it from the front panel. In your case, you would use your test output instead of a FP switch, of course. Message Edited by altenbach on 05-25-2005 09:05 PM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    TextColor.vi ‏18 KB

  • When i change the value of a combo box using a property node it displays the value not the item label

    I am using a combo box as a select list for text serial commands.  I have items like "engineering", "GUI", and "Scan" for the commands "MDE", "MDN", and MDS respectively which i have input as the corresponding value in the combo box.  so for example the label "engineering" has the value "MDE" in the combo box items list.  when the Vi starts it needs to read the current value MDE, MDN, or MDS and then i want it to display on the front panel the item text corresponding to that command value.
    To do this i have tried to read the serial command, ie MDS and then wire that to a "value" property of a property node of the combo-box, but instead of displaying the corresponding item label, "Scan", it displays the value "MDS" on the front panel instead.  i want the front panel to use the label text when choosing and displaying but the block diagram to use the serial commands.  Can this be done with a combo box?  I'm trying to use a combo box so i can keep it all text and avoid having to build a case statement to convert enums or rings from a numerical value to the text command.
    The correct text value is wired to the value property and it does exist in the combo-box.  I have unchecked "values match items" and selected to not allow undefined values.

    Don't use the value property node.  Use the Text.Text property node.  When creating the property node, select Text, then in the next pop-up box, select Text.
    - tbob
    Inventor of the WORM Global

  • Smartform - problem in displaying text in a page

    Hi experts,
         I am developing an invoice printing in smartforms.Here i am facing one problem.
    i am displaying line items in a table in the footer window.In that table footer i am displaying some text (text contains 8 lines).
          Here if the number of line items are below 3 the text in the footer of the table printing correctly in the 2nd page.
         But if the number of line items are above 3 the text in the footer of the table in footer window is not printing correctly (4 lines in the text is printing in 2nd page remaining 4 lines are not moving to 3rd page).
    Regards,
    Navaneeth.

    Hi
    Generally we use MAIN WINDOW for printing the line itesm data which is not constant.
    Depending on lines it moves to next page.
    You are saying that you are using footer window. It seems that you have taken the height of that window as 3 Lines
    where you wants to print the lines if it is more than 3 ? naturally it goes to next page.
    So you increase the footer window height to a max of the line items, or reduce font.but even if it is not a constant data naturally it goes to next page.
    You have to use the footer window for printing some constant data in the footer like Signature, and address etc.
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Help using right-click to display text in the console/call a pop-up menu

    Hi folks,
    I hope someone can help me with this problem because, to be honest, I cannot see where I'm going wrong!
    Basically, I'm trying to create a routine to display a bit of text in the console (and, if I can get this to work, call a pop-up menu) if a user clicks on an image panel (which I've already created and works fine). My code for this is as follows:
    // --- Rest of program here
    this.addMouseListener(new MouseAdapter()
    public void mouseClicked(MouseEvent e)
    // This bit works fine
    if (e.getClickCount()>=2)
    // Display a dialog box if the user double clicks on the panel
    else if (e.isPopupTrigger())
    System.out.println("Right mouse button clicked")
    // Rest of program in hereThe problem is that, despite my best efforts, "Right mouse button clicked" does not display in the console if the right mouse button is clicked, and I cannot figure out why. I can, however, get it to work PARTIALLY if I use e.isControlDown(), but this only works (I guess) if the user is working on a Mac but isn't using an external mouse. Not ideal.
    I'm developing on a Mac (10.4.8) using Eclipse (rather than a PC), but this surely cannot be the problem?

    Do you start this application in a console window?
    If yes then isPopupTrigger() is never true - presumably mouseClicked gets called.
    If no then please note that java does not 'pop' a console window when System.out is called. System.out represents an existing output connection. If you want to pop some sort of console then you need to add code to do that.

  • Problem with displaying text in flash player

    I have flash player 10.2.152.26 and opera 11.01  installed.
    The problem is that text in flash is diplayed in an awful way like this:
    http://img651.imageshack.us/img651/6918/alljo.png
    And when i choose "settings" the window appears, but it doesn't react when I click on it.
    Can anyone help, please?

    Thanks for answering
    So you have IE8 and the hardware acceleration was able to be UNchecked and FP(Flash Player) is working properly with IE.
    In IE flash works fine with any settings.
    When I unchecked "Hardware acceleration" checbox in IE it also became unchecked in opera, but nothing changed in opera's behavior.
    When you don't use the Aero it's displayed correctly but the settings do not work. What settings are you referring to?
    It's about flash settings in Opera
    With aero: http://img443.imageshack.us/i/settingsh.png/
    Without aero: http://img816.imageshack.us/i/settingswoaero.png/
    In both cases the settings dialog is displayed like in the screenshots above, but when I click on checkbox/tabs/'close' button in it nothing happens. I can't change any settings or close it (dialog disappers only after reloading page)
    Just to sum up everything mentioned above:
    - In IE flash works fine regardless of any settings
    - In Opera text is displayed wrong when using windows aero, and without aero theme it's displayed correct
    - I didn't manage to make settings dialog work in Opera
    - When I change some flash settings in IE, they are also changed in Opera
    Now Flash Player works thru the browser, do you have perhaps have an addon that is conflicting? What Anti-Virus do you have Installed? Any addons of that?
    I have 7 extensions installed in Opera, I've disabled all of them, but nothing changed.
    I use Kaspersky Internet Security 2011, disabling it also gives nothing.

  • How to extract the 'display text' of the URLs?

    Hi,
    I want to extract the 'display text' of a link inside an html page? I am using HTML Toolkit class and the getAttribute method...How can i do that since the text is out of 'Attribute'. How to get this text?
    Thanx in advance

    You should try passing the input stream to a Scanner or a BufferedReader and that way you should be able to read in lines of text.
    HttpURLConnection a = null;
              URL b;
              Scanner in = null;
              try {
                   b = new URL("http://www.google.com");
                   a = (HttpURLConnection) b.openConnection();
                   in = new Scanner(a.getInputStream());
                   while(in.hasNext())
                        System.out.println(in.nextLine());
              } catch (Exception e) {
                   e.printStackTrace();
              }Edited: Something like the above.

  • Problems with displaying text from gtk+-2.0 with Cairo

    I've got a 64-bit app that uses gtk+-2.0 (2.8.17 with Cairo). I had to build my own libraries since the gtk+-2.0 libraries Solaris 10 ships with is 32-bit only (and does not contain Cairo support). The app is statically linked so that our customers don't have to do any more than just install the app.
    I've got a customer who's using a Sun Ray 2fs to run our app from a Sun Ray server. The problem is that none of the text in the UI is readable (including the menubar). He sent a screenshot and I can tell it's rendering the glyphs, just not correctly. The best way of describing the text rendering problem is to take a bitmap of antialised text drawn with a black pen color. Now remove all non solid black pixels. You only see pieces of the glyphs (typically, just the vertical and horizontal parts).
    We don't have a Sun Ray client to test with but for testing purposes, I installed our app on freshly built Solaris 10 (5/09) and Open Solaris systems with no modifications to the virgin systems. I could run our app on both Solaris systems and display the app on a remote X display just fine. I asked the customer to try a real X display and he ran X-Win32 on a Windows XP guest using VirtualBox on the Sun Ray server and our app appeared just fine on his Sun Ray client. I told him if our app displays just fine on a real X display, then the problem must be with the Sun Ray server.
    Has anyone encountered this problem? I'm going to try building the latest gtk+-2.0 libraries but I'm not convinced it's going to do any good. I don't think it's a Fontconfig configuration problem because our app worked out of the box on freshly installed systems (unless perhaps Sun has made changes to /etc/fonts/fonts.conf since the version on his system versus ours).
    PS. We actually need the Cairo graphics support. It just happens that the version of Pango that's in 2.8 (and all versions of gtk+-2.0 since) also uses it for text rendering in the widgets.

    Garrett Cobarr wrote:
    > I have been attempting to import text from Illustrator
    CS2 into Flash 8. I
    > would like to retain the layers if possible.
    >
    > I am having many different problems as I have
    experiemented at the AI side.
    > One is having the text come in with the outline offset
    and no longer alligned.
    > When I drag and drop, the outline completly dissappers.
    The text when it does
    > come in is converted to a png and longer has the layers
    seperated.
    >
    > I am also getting a message in the report window, on
    some of my tries, that it
    > is an improper PDF.
    >
    > The bottom line question is: What is the recommended
    method of importing text
    > from AI CS 2?
    You have to remember that both programs are totally different
    animals and simply
    some of the option used by you in AI won't be working or
    can't be translated into
    flash's environment. You will never get editable content,
    just an image.
    Export to SWF from AI and import that SWF to flash. Should be
    as close as possible
    to original file tho I can't assure your layers will
    maintain.
    Best Regards
    Urami
    !!!!!!! Merry Christmas !!!!!!!
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Uprgrad to ios7 calender won't display text entered. the appointment entered is there becauwse it alerts me to appointments entered

    Calender won't display text entered for appointments.
    The appointments are there as the phone alerts me as requested. Also the appointments are synced with icloud and Outlook on my computer.
    Any appointments entered in computer do not show on phone but are there.

    I've managed to fix this!
    In case it's helpful to anyone encountering this problem, here's what I did.
    I went into the preferences (through the Calendar app, not the System Preferences - didn't want to remove the entire account info, in case I encountered problems getting my email to link again), clicked on the Account tab and removed the Exchange account (by clicking the "-" (minus) sign below the listing of accounts).  I then added an account (clicking the "+" sign) and re-entered the information.  When asked if I wanted to add these settings for Mail and Contacts, I unclicked those options (bc they're already installed and work fine).  Once I completed the information, I closed the settings window, and hit ⌘+R to refresh and all the Exchange appointments appeared.

  • How to display values inside the Pie chart?

    Hi Expert,
    How to display the values inside the Pie chart, instead of Mouse over values. Can u pls help me to do this one.
    Is it possible can we use mentioned below kind of pie charts in Xcelsius 2008.
    Thanks & Regards,
    Tamil
    Edited by: Rajesh Kumar Thoppe on Dec 13, 2010 10:41 AM

    Hi A G,
    Thank You for quick response!!!
    in this Text tab I am able to see below check box only
    1) Chart Title
    2) Sub Title
    3) Legend
    4) Mouse-Over
    Kindly advise me if i am wrong and let me know how to achieve this.
    Note: We have Xcelsius 2008 environment
    Thanks & Regards,
    Tamil
    Edited by: Rajesh Kumar Thoppe on Dec 13, 2010 1:58 PM

  • Displaying Text in the Filter charectaristics  in the portal

    Hi Everybody,
        I got a problem in the portal.
    When i am selecting Filter values in portal, Some Filte Char´s just showing Keys, but not Text. But some of them are showing text too. So, I need to display text instead of Keys.
       I tried to change Infoobject properties In Business Explorer Tab with Text. And also i did in the Business Explorer. Even I am not able to see text in the Filter Char´s. Is there any other way to diplay Text in Filter Char´s.
    Please reply to me as soon as possible.
    Thanks,
    Suri.

    Hi Suri,
    I don't have an 04s system right now, but check in help:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/80/1a644ce07211d2acb80000e829fbfe/content.htm
    The option I suggested is shown in the same place. See Structure-Specific Properties of the InfoObject in the above link...

  • Wraping text on an item label

    Would someone explain how to get the text to wrap on an Item Label. Thanx, Charlie

    Hello,
    A better way is to edit your label template to have this style attribute
    style="text-align:right;"
    At the end of the day all APEX outputs is HTML so youcan do pretty much anything you can do in any other HTML page with css javascript etc.
    Carl

Maybe you are looking for

  • Problem with deploytool

    I'm using IPlanet 6 SP3 and am using the deploytool to deploy my application. The application deploys without errors, but one of my jar files that lives under WEB-INF/lib does not get fully unpacked. I have some dtd files which live in the JAR with t

  • Trying to uninstall Kaspersky 2010 Int. Sec.; screen blanks, tower starts beeping; can't turn off.

    Cannot uninstall Kasp. Int. Sec. 2010.  Clicked first uninstall button, screen went blank, then tower started beeping--froze up.  Cannot turn off computer; have to unplug.  Next day booted up, computer had to 'check file system on C:   Three steps to

  • PR and PO through MRP run

    hi, What are all settings to generate Purchase Requisitions through MRP run? Also, if, i wanna automate creation of Purchase order from Purchase Requisition (not manually). how to achieve this? thanks..

  • Using an external monitor with FCP Studio v. 1.0

    I cannot get my external monitor to display my timeline editing window. I have made the right connections, with firewire from Mac to Sony HDV tapedeck, and with HDMI cable from tapedeck to LCD monitor, but the screen remains blank. The external video

  • How do I clear out cookies?

    Just wondering How I clear out cookies. My computer seems to be running slightly slower and I've never learned how to do this on my MacBook Air. THANKS FOR ANY INFO!