How to Make a Line of Best Fit/Best Fit Line/Trendline in iWork Numbers '09

I'm not sure if this is well-known or has been answered elsewhere already, but multiple Google searches have not shown this solution on how to create a line of best fit in Numbers '09 (there is another method that involves drawing a line yourself, but this is much easier and more accurate).
I stumbled across this trying the above self-draw technique and got so excited I wanted to post the technique. So here is what you do:
1) Type out your X and Y data
2) Select the data and select Charts, then select the Scatter Plot
3) Open up Inspector and select the Chart tab
4) Select the "Series" tab below the picture of the Scatter Plot and the "Chart Colors..." button
5) At the bottom of the Inspector window, open the "Advanced" arrow
6) Select the "Trendline" tab and select the "Linear" trendline from the drop-down bar
That's it! You can even select the options to show the line equation or the R-squared value!
Here is a picture of the selected options and what your graph should look like (check that nice R-squared value!).
http://i.imgur.com/AvfPv.png
I hope this helps and hope it moves up to the top of the Google search page for this feature.

Hi Asclepius37,
Why not just search "trend" or "trendline" in the Numbers '09 User Guide?
That would take you to page 149 of the guide and the article "Showing Trendlines in Charts," which lists a set of instructions very similar to those in your post.
The Numbers '09 User Guide and the iWork Formulas and Functions User Guide are searchable pdf files, and may both be downloaded through kinks in the Help menu in Numbers. Both are excellent resources to have on hand.
Regards,
Barry
PS: Searching "best fit" will return zero results, but "best" or "best-fit" will get you to the same article.
B

Similar Messages

  • How to make the vendor column have figure in GRIR line item with RE document type?

    Dear Experts,
         Could you tell me how to make the vendor column have figure in GRIR line item whose document type is RE?
         Thanks!
    Xinling Zhang

    Hi ,
    You are using FAGLL03 .
    FAGLL03 report vendor code is blank
    vendor number in new FAGLL03 tcode (offsetting account information)
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/30b96fed-eb5d-2e10-1792-f3ff9f65df8a?QuickLink=index&…
    Also check OSS note
    Note 112312 - Line item: Display of offsetting a/c information
    Note 1034354 - FAGLL03: Display of offsetting account information
    Many Thanks

  • How to make the GL account discription possible in FAGLL03 line item display?

    Dear Experts,
        Could you tell me how to make the GL account discription possible in FAGLL03 line item display?
        I checked the layout, there is no account discription.
        How should I do?
    Thanks!
    Xinling Zhang

    Hi
    One you execute FAGLL03, go to Settings>Layout>Current Header Rows
    You can add some predefine characteristics here.
    I am not sure why the hyperlink is not working at your end. But you can search the SDN for special fields in FAGLL03 and you can get lot of posts for this document.
    Regards
    Sanil Bhandari

  • How to make code in dreamweaver flow to the next line?

    The line lengths of my code are really really long. How do I make it automatically flow to the next line without causing it to actually be a new line? Just for viewing purposes. I don't like having to scroll all the way to the end of the line of code to add a close tag.

    Hi
    Right-click on the area next to the 'box' that has the page title, and select 'coding' to enable the coding toolbar, (appears on the l/h side of the code window) then select the word wrap icon, see image -
    PZ

  • How to make a border around a frame with variable line weights?

    I want to draw lines in Muse. I understand that it can only be done with the help of rectangles. In a free Muse Theme that I have downloaded I have found a quite nice line, that I have saved as graphic style. When  I read the properties I find the following definition: 'border weight (bottom: 1 left: 0 right: 0 top: 0).' It gives you the possibility to have only one line at the bottom. I very much would like to know how you can apply these variable settings to a border. I looked everywhere but can't find a way to do it. Any help would be greatly appreciated.

    Hi Dimitri,
    Select the rectangle you wish to use from your Muse page.
    Click on the blue 'Stroke' and a box will pop up where you can set the border styles for all four borders individually.

  • How to make Oracle program executed through windows XP command line.

    I know this thread may not be appropriate to be posted here. However, I couldn't find place to post this question. However, the question is related to Oracle program execution. So I post here for help.
    I creted a windows XP shell program to execute a few oracle program to refresh data on database. All oracle programs work very well. But the windows shell program is not working properly. I seek your input to solve this problem. Here is the basic windows shell script:
    set oracle_sid=mydb
    set MyDir=C:\refresh
    sqlplus -s username_1/password_1@mydb @%MyDir%\updt_table.sql
    exit
    sqlldr username_2/password_2@mydb control=C:\refresh\control_file_1.ctl
    sqlldr username_2/password_2@mydb control=C:\refresh\control_file_2.ctl
    sqlldr username_2/password_2@mydb control=C:\refresh\control_file_3.ctl
    sqlldr username_2/password_2@mydb control=C:\refresh\control_file_4.ctl
    sqlldr username_2/password_2@mydb control=C:\refresh\control_file_5.ctl
    set oracle_sid=mydb
    set MyDir=C:\refresh
    sqlplus -s username_2/password_2@mydb @%MyDir%\refresh_table.sql
    exit
    The problem is: The first sqlplus is to connect to username_1. after windows shell execute and finish updt_table.sql as well as exit from that db schema, it suppose to go to next sql loader command line to login as username_2 to start sql loader control file to load data. The actual situation is: command line hang on at first "exit" and didn't login username_2 to do sql loader work. Please advise me where the problem is and how to fix it. Thanks for your kind help.

    krystian:
    I have tried this before I post for help. If I moved "exit" after updt_table.sql, the shell only finish the first part of command to update one table. Then windows shell hang on there and do nothing. It didn't go to login as username_2 to execute sql loader control files. This is where the problem is. How to force the windwos shell log into as username_2 to do next step? Thanks again.

  • How to make a tree with more information in one line

    Hi
    I have seached this forum, and haven't find any information that I can use.
    I need a tree structure with following informations:
    arbpl
    _____aufnr________material_____ text
    _______extra informations
      |_____aufnr________material_____ text
      ....................................................... |_______extra informations
    My problem is that I can't get more than one information each line.
    Can anybody give me some input, and better good advice/examples hot to do.
    My code looks like this:
    *& Report  my report
    REPORT  myreport.
    type-pools : stree.
    data : wa_node type snodetext.
    data : node_table like wa_node occurs 0 with header line.
    TABLES: caufv, caufvd, IOOPER, marc, mara, resb, jest, tj02t.
    data: BEGIN OF gt_status_tab occurs 0,
          aufnr like caufv-aufnr,
          stat like jest-stat,
          txt04 like tj02t-txt04,
          end of gt_status_tab.
    data: g_objnr like jest-objnr.
    data: BEGIN OF gt_sele_tab OCCURS 0,
          werks like caufv-werks,
          fevor like marc-fevor,
          arbpl like IOOPER-arbpl,
          aufnr like caufv-aufnr,
          aufplA like caufv-aufpl,
          matnr like caufvd-matnr,
          gstrp like CAUFV-GSTRP,
          GLTRP LIKE CAUFV-GLTRP,
          rmatnr like resb-matnr,
          bdmng like resb-bdmng,
          GAMNG like caufv-GAMNG,
          aufpl like resb-aufpl,
          auart like caufv-auart,
          matkl like mara-matkl,
          istat like tj02t-istat,
         inact  like jest-inact,
    END OF gt_sele_tab.
    select-options:
    s_werks for CAUFV-werks,
    s_arbpl for iooper-arbpl,
    s_fevor for marc-fevor,
    s_aufnr for caufv-aufnr,
    s_sttxt for CAUFVD-STTXT,
    s_auart for caufv-auart,
    s_matnr for caufvd-matnr,
    s_matkl for mara-matkl,
    s_rmatnr for resb-matnr,
    s_gstrp for caufv-gstrp,
    s_gltrp for caufv-gltrp.
    start-of-SELECTION.
      SELECT  a~werks
              a~fevor
              a~aufnr
              a~PLNBEZ
              a~gstrp
              a~gltrp
              a~aufpl
              b~matnr
              b~bdmng
              a~gamng
              b~aufpl
              a~auart
              d~matkl
        into "CORRESPONDING FIELDS OF TABLE gt_sele_tab
        (gt_sele_tab-werks,
        gt_sele_tab-fevor,
        gt_sele_tab-aufnr,
         gt_sele_tab-matnr,
         gt_sele_tab-gstrp,
         gt_sele_tab-gltrp,
         gt_sele_tab-aufplA,
        gt_sele_tab-rmatnr,
        gt_sele_tab-bdmng,
        gt_sele_tab-GAMNG,
        gt_sele_tab-aufpl,
        gt_sele_tab-auart,
        gt_sele_tab-matkl)
         FROM  CAUFV as a
        join resb as b
        on b~rsnum = a~rsnum
        and b~rspos = b~rspos
        join afvc as C
        on c~aufpl = b~aufpl
        and c~aplzl = b~aplzl
        join mara as d
        on d~matnr = b~matnr
             WHERE  a~AUFNR  in s_aufnr
             AND    a~AUART  in s_auart
             AND    a~GLTRP  in s_gltrp
             AND    a~GSTRP  in s_gstrp
             AND    a~FEVOR  in s_fevor.
        append gt_sele_tab.
      ENDSELECT.
      loop at gt_sele_tab.
        clear g_objnr.
        concatenate 'OR' gt_sele_tab-aufnr into g_objnr.
    *append
        select *  from jest
          where objnr = g_objnr
          and   inact ne 'X'.
          gt_status_tab-aufnr = gt_sele_tab-aufnr.
          gt_status_tab-stat = jest-stat.
          append gt_status_tab.
        ENDSELECT.
        SELECT single arbpl into gt_sele_tab-arbpl
                 FROM  CRHD
               WHERE  OBJTY  = 'A'
               AND    OBJID  = gt_sele_tab-aufpl.
        gt_sele_tab-arbpl = '200'.
        MODIFY gt_sele_tab.
      endloop.
      perform fill_nodes.
      perform tree_display.
    **& Form FILL_NODES
    **text
    **--> p1 text
    **<-- p2 text
    form fill_nodes .
      DATA: L_ARBPL type arbpl.
      node_table-type = 'T'.
      node_table-name = 'Arbejdsplads'.
      node_table-tlevel = '01'.
      node_table-nlength = '15'.
    *  node_table-color = '4'.
      node_table-text = ''.
      node_table-tlength = '20'.
      node_table-tcolor = '3'.
      append node_table.
      clear node_table.
      loop at gt_sele_tab.
        at new arbpl.
          node_table-type = 'P'.
          node_table-name = gt_sele_tab-arbpl.
          node_table-tlevel = '02'.
          node_table-nlength = '20'.
    *      node_table-color = '4'.
          node_table-text = ''.
          node_table-tlength = '30'.
          node_table-tcolor = '3'.
          append node_table.
          clear node_table.
          L_ARBPL = gt_sele_tab-arbpl.
    *node_table-type = 'P'.
    *node_table-name = 'ITEM DATA'.
    *node_table-tlevel = '03'.
    *node_table-nlength = '20'.
    *node_table-color = '4'.
    *node_table-text = ''.
    *node_table-tlength = '30'.
    *node_table-tcolor = '3'.
    *append node_table.
    *clear node_table.
    break g-lmn.
          loop at gt_sele_tab where arbpl = l_arbpl.
            node_table-type = 'P'.
            node_table-name = gt_sele_tab-aufnr.
            node_table-tlevel = '04'.
            node_table-nlength = '20'.
    *        node_table-color = '4'.
    node_table-parent = '04'.
            node_table-text = ''.
            node_table-tlength = '30'.
            node_table-tcolor = '3'.
            node_table-TPOS2 = '2'.
            node_table-text2 = 'halløj'.
            node_table-TPOS3 = '3'.
            node_table-text3 = 'igen'.
            append node_table.
            clear node_table.
    *        break g-lmn.
            node_table-type = 'P'.
    *        node_table-name = 'Materiale'.
    *        node_table-tlevel = '04'.
    node_table-parent = '04'.
            node_table-nlength = '20'.
    *        node_table-color = '4'.
            node_table-text1 = gt_sele_tab-matnr.
            node_table-TPOS2 = '2'.
            node_table-text2 = 'halløj'.
            node_table-TPOS3 = '3'.
            node_table-text3 = 'igen'.
            node_table-tlength1 = '40'.
            node_table-tcolor1 = '3'.
            append node_table.
            clear node_table.
    *        node_table-type = 'P'.
    *        node_table-name = 'UNIT'.
    *        node_table-tlevel = '05'.
    *        node_table-nlength = '20'.
    **        node_table-color = '4'.
    *        node_table-text2 = 'test'.
    *        node_table-tlength2 = '30'.
    *        node_table-tcolor2 = '3'.
    *        append node_table.
    *        clear node_table.
    *node_table-type = 'P'.
    *node_table-name = 'QUANTITY'.
    *node_table-tlevel = '05'.
    *node_table-nlength = '20'.
    *node_table-color = '4'.
    *node_table-text = i_vbap-kwmeng.
    *node_table-tlength = '40'.
    *node_table-tcolor = '3'.
    *append node_table.
    *clear node_table.
    *node_table-type = 'P'.
    *node_table-name = 'DESCRIPTION'.
    *node_table-tlevel = '05'.
    *node_table-nlength = '20'.
    *node_table-color = '4'.
    *node_table-text = i_vbap-arktx.
    *node_table-tlength = '30'.
    *node_table-tcolor = '3'.
    *append node_table.
    *clear node_table.
    *endloop.
          endloop.
        endat.
    *loop at i_likp where vbelv = i_vbak-vbeln.
    *node_table-type = 'P'.
    *node_table-name = 'DELIVERY'.
    *node_table-tlevel = '03'.
    *node_table-nlength = '20'.
    *node_table-color = '4'.
    *node_table-text = ''.
    *node_table-tlength = '30'.
    *node_table-tcolor = '3'.
    *append node_table.
    *clear node_table.
    *node_table-type = 'P'.
    *node_table-name = i_likp-vbeln.
    *node_table-tlevel = '04'.
    *node_table-nlength = '20'.
    *node_table-color = '4'.
    *node_table-text = ''.
    *node_table-tlength = '30'.
    *node_table-tcolor = '3'.
    *append node_table.
    *clear node_table.
    *endloop.
    *loop at i_vbrk where vbelv = i_vbak-vbeln.
    *node_table-type = 'P'.
    *node_table-name = 'INVOICE'.
    *node_table-tlevel = '03'.
    *node_table-nlength = '15'.
    *node_table-color = '4'.
    *node_table-text = ''.
    *node_table-tlength = '20'.
    *node_table-tcolor = '3'.
    *append node_table.
    *clear node_table.
    *node_table-type = 'P'.
    *node_table-name = i_vbrk-vbeln.
    *node_table-tlevel = '04'.
    *node_table-nlength = '20'.
    *node_table-color = '4'.
    *node_table-text = ''.
    *node_table-tlength = '30'.
    *node_table-tcolor = '3'.
    *append node_table.
    *clear node_table.
    *endloop.
      endloop.
    endform. " FILL_NODES
    **& Form TREE_DISPLAY
    **text
    **--> p1 text
    **<-- p2 text
    form tree_display .
      call function 'RS_TREE_CONSTRUCT'
      exporting
      insert_id = '000000'
      relationship = ' '
    *LOG =
      tables
      nodetab = node_table
      exceptions
      tree_failure = 1
      id_not_found = 2
      wrong_relationship = 3
      others = 4
    *if sy-subrc = 0.
    *message id sy-msgid type sy-msgty number sy-msgno
    *with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    *endif.
      call function 'RS_TREE_LIST_DISPLAY'
      exporting
    *CALLBACK_PROGRAM =
      callback_user_command = 'USER_COMMAND'
    *CALLBACK_TEXT_DISPLAY =
    *CALLBACK_MOREINFO_DISPLAY =
    *CALLBACK_COLOR_DISPLAY =
    *CALLBACK_TOP_OF_PAGE =
    *CALLBACK_GUI_STATUS =
    *CALLBACK_CONTEXT_MENU =
      status = 'IMPLICIT'
      check_duplicate_name = '1'
    *color_of_node = '4'
    *color_of_mark = '3'
    *color_of_link = '1'
    *color_of_match = '5'
      lower_case_sensitive = ' '
      modification_log = ' '
      node_length = 30
      text_length = 75
      text_length1 = 0
      text_length2 = 0
      return_marked_subtree = ' '
      screen_start_column = 0
      screen_start_line = 0
      screen_end_column = 0
      screen_end_line = 0
      suppress_node_output = ' '
      layout_mode = ' '
      use_control = 'F'
    *IMPORTING
    *F15 =
    endform.                    "tree_display
    " FINAL_DISPLAY

    Hi,
    Have you checked the examples in SALV_OBJECTS?
    /wg

  • How to make scaleX in mx:LineSeries to scale the lines from both ends

    I'm using LineChart. I need to shrink the line a little so I set scaleX="0.95". It shrinks on right end of the line, but not the left end.
    I was hoping it uses the center as the fixed point and shrinks line from both directions. Is there a way to do it?

    Hi,
    use SeriesZoom Effect.

  • How to make an imageicon to be resized to fit the button

    Hi all,
    I am working on this problem, which has a JButton, Image and Text all one above another . The graphic here is a rectangular box.
    The application works fine for an 800 X 600 resolution, but when the resolution is changed to 1024 X 728, only the Jbutton and the text are getting bigger(logic already present), but not the graphical icon which sits on top of the button.
    So I tried to scale the image and then redraw it using the drawImage() of the graphics object. But it wouldnt show up, so i set the Opaque property to false for the Jbutton, to make the image visible. Then the image showed up as wanted, but when a mouse click event occurs on that button,the button is not getting highlighted and some weird behaivour happens.
    If anyone can throw some light on this, i would greatly appreciate it.
    Thanks in advance

    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class ImageOnButton extends JFrame { 
    public ImageOnButton() {   
      ImageIcon icon = new ImageIcon("SndImage.jpg");
        JPanel content = (JPanel)getContentPane();
        content.setLayout(new FlowLayout());
        JButton myButton = new MyButton("I am Button",icon.getImage());
        content.add(myButton);
        this.setDefaultCloseOperation(this.EXIT_ON_CLOSE);
    public static void main(String[] args) {
        ImageOnButton test = new ImageOnButton();
        test.setSize(200,200);
        test.show();
      class MyButton extends JButton {
        Image image;
        public MyButton(String Text, Image Image) {
          super(Text);
          setOpaque(false);
          image=Image;
        public void paint(Graphics g) {
          g.drawImage(image, 0,0, getWidth(), getHeight(), this);
          super.paint(g);
    }

  • How to make system call to execute command line in JAVA?

    Hi,
    I am new in JAVA. How to make system call to execute the following command line in JAVA in LINUX environment.
    rpm -qa jdkIn C programming, use as such:
    system ("rpm -qa jdk");
    How about JAVA?
    Thanks.

    Runtime.getRuntime().exec. But first read this:
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html

  • How to make a website fit to browser window?

    How to make your created flash catalyst project/website fit to every window browser size?
    This means that I want it to fit in the window size, because I don't want the browser to create scroll bars since I have them inside my project...

    I have tried this a number of ways and it makes no difference. This is where I am with it right now in FB4.
    I would love to get this to work. If anyone can help me with it please?
    <?xml version='1.0' encoding='UTF-8'?>
    <s:Application xmlns:ATE="http://ns.adobe.com/ate/2009" xmlns:ai="http://ns.adobe.com/ai/2009" xmlns:lib="assets.graphics.Republic_1920.*" xmlns:fc="http://ns.adobe.com/flashcatalyst/2009" xmlns:d="http://ns.adobe.com/fxg/2008/dt" xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:flm="http://ns.adobe.com/flame/2008" xmlns:graphics="assets.graphics.*" xmlns:ai1="http://ns.adobe.com/ai/2008" xmlns:lib1="assets.graphics.tomorrow_text.*" xmlns:lib11="assets.graphics.perfect_text.*" xmlns:lib111="assets.graphics.intel_text.*" xmlns:lib1111="assets.graphics.history_page.*" xmlns:components="components.*" xmlns:lib11111="assets.graphics.CaseStudiesText.*" xmlns:lib111111="assets.graphics.RolexText.*" xmlns:lib1111111="assets.graphics.slider.*" backgroundColor="#000000" height="1200" preloaderChromeColor="#000000" width="1920">
    <fx:Style source="Main.css"/>
    <fx:Script><![CDATA[
    private function init():void
    stage.align = StageAlign.TOP_LEFT;
    stage.scaleMode = StageScaleMode.EXACT_FIT;
    protected function buttonEnter_clickHandler():void
    const state:String = currentState;
    if ( state == 'Home' ) {
    currentState='Tomorrow';

  • How to make VPN client auto timeout when it still idle?

    How to make VPN client auto disconnect when it still idle?
    Hi,I found some user still connected the VPN evenif they dose not use the VPN resouse.
    I try to set a "idle timeout" for the VPN configuration.
    We use PIX515 8.0.3 and CISCO ACS 4.2 for the VPN's connection and authentication,and the user use cisco vpn client for the connection.
    I have tried many methods,but all failured.
    First,I configed "vpn-idel-timeout 5" on PIX.It can not worked.
    so,I add Radius(CISCO VPN 3000/ASA/PIX 7.0+) attribute "[026/3076/050] Authenticated-User-Idle-Timeout" on CISCO ACS,It still not worked.
    And I also add IETF RADIUS Attributes "[028] Idle-Timeout" on group setting on ACS,it always not worked.
    i found in vpn client's statistics,it always has some byte sended or received, i thought it maybe IPsec keepalive message or Radius message.
    This maybe the reason because the PIX or ACS think the vpn user is keep working.
    Can someone tell me how to make a "idle time out"?
    best regard.
    Roger

      here is the configuration on PIX,
    group-policy DfltGrpPolicy attributes
    wins-server value 10.0.0.67 10.0.0.68
    dns-server value 10.0.0.67 10.0.0.68
    vpn-simultaneous-logins 20
    vpn-idle-timeout 5
    split-tunnel-policy tunnelspecified
    split-tunnel-network-list value vpn-acl
    default-domain value mydomain.com
    address-pools value vpnpool group-policy DfltGrpPolicy attributes
    wins-server value 10.0.0.67 10.0.0.68
    dns-server value 10.0.0.67 10.0.0.68
    vpn-simultaneous-logins 20
    vpn-idle-timeout 5
    split-tunnel-policy tunnelspecified
    split-tunnel-network-list value vpn-acl
    default-domain value want-want.com
    address-pools value vpnpool

  • Captivate 7: How to make the output fit-to-screen

    Hi Everyone,
    For the long time, I was in search of making the published SWF be able to display the project as fitting to the screen. I was previously using Captivate 5.5. But now, I'm using Captivate 7. Does anyone know how to make the same thing happen to the SWF file? I previously had to make a change in the HTML script. But that same script line does not exist in the HTML file published from Captivate 7.
    Please be aware that I don't know much about HTML scripts. So please be explicit with your assistance.
    Thank you in advance for any assistance that you can provide.

    Hi there
    In Captivate 7, when you publish in SWF format, choose the option titled "Scalable HTML Content".
    Cheers... Rick

  • How to make the values of a combination graph (bar and line) visible always

    Hi ,
    I am using jdev 11.1.1.6
    i have created a combination graph which has a bar and line.
    The data with respect to bar and graph were only visible when i keep the mouse pointer on it.
    i need to set the values visible always.
    kindly let me know how to make it.
    In pie graph its by default showing the data always.
    regards
    Siva

    Hi Sameh Nassar,
    Thanks for the input, am using the combination graph and i dont have this property added till now.
    i tried adding them manually in source but it didn't work. so I assume that this property is good with pie chart alone.
    please correct me if am wrong.
    This is my combination graph structure.
        <dvt:comboGraph id="comboGraph1"
                          value="#{bindings.testVO1.graphModel}"
                          subType="COMBINATION_VERT_ABS_2Y" shortDesc="Graph 1">
            <dvt:background>
              <dvt:specialEffects/>
            </dvt:background>
            <dvt:graphPlotArea/>
            <dvt:seriesSet markerDisplayed="true">
              <dvt:series lineWidth="0"/>
            </dvt:seriesSet>
            <dvt:o1Axis/>
            <dvt:y1Axis/>
            <dvt:y2Axis/>
            <dvt:legendArea automaticPlacement="AP_NEVER"/>
            <dvt:graphTitle text="Combination graph"/>
            <dvt:o1Title text="x axis"/>
            <dvt:y1Title text="y1 axis"/>
             <dvt:y2Title text="y2 axis"/>
          </dvt:comboGraph>
    regards
    Siva

  • How to make new line in JButton.setText()?

    how to make new line in JButton.setText()?
    I want to set the text of jbutton in tow line ,as follows
    | jbutton-line1 |
    | xxxxxxx-line2 |
    i konw i can jbtton.settext("<html>line1<br>line2</html>");
    but i find it's ugly using html,
    is there anyother way to create new line in JButton's Text

    As for the above comment....
    I thought the question was well purposed. Using HTML was not acceptable in this instance, which was made clear, so why critisize his comments? "Using HTML" is a poor solution, it does NOT work in many instances due to browser, OS variations. Usually the "common answer" is never a COMPLETE answer.
    Possible Solution:
    Use JLabels to render the text on the button.
    import javax.swing.*;
    import java.awt.*;
    public class ButtonMaker {
    public static void makeButton(JButton jb, String[] titleList) {
    jb.setLayout(new FlowLayout());
    for (int i = 0; i < titleList.length; i++) {
    JLabel tmpLabel = new JLabel(titleList);
    tmpLabel.setForeground(Color.black);
    jb.add(tmpLabel);
    public static void clearButton(JButton jb) {
    Component[] cList = jb.getComponents();
    for (int i = 0; i < cList.length; i++) {
    if (cList[i] instanceof JLabel)
    jb.remove(cList[i]);
    Known Limitations:
    1. Flowlayout does not work well with single line text buttons... perhaps another layout manager may work better for various buttonsizes-linenumber combos.
    2. Mac OSX : The default UI for Mac OS X (and above it seems), is to have rounded edged buttons. These rounded edges are destoryed when using JLabels, leaving a square, blocky button in its place.
    POSSIBLE SOLUTION:
    (this is ugly and time consuming)
    - create images of the button with text on them.

Maybe you are looking for

  • How to Maintain two different prices for same material in different qty?

    Dear all, How to maintain two different prices for same material in different batch quantities in purchase order(ie.,info record)? (Vendor is supplying quantities in 2 different batches & also in different prices) Expecting valuable reply. Jeyakantha

  • ISE CWA FLEXCONNECT - No url redirect

    Hi, I'm setting up a LAB environment for CWA with ISE(1.2.1), vWLC(8.0.100), ASA5505(9.1.X) and a 2602 AP in flexconnect mode. Unfortunately I'm running into problems. The AP, WLC and ISE is all running in vlan 1 which terminates in the 5505 as a ins

  • The screen of my iPhone won't turn on but the touch is still responsive

    I went to sleep with my iPhone 4s next to me. When I woke up my phone would not cut on. Siri still works and I can still unlock my phone but the screen won't cut on. The touch is still on though because I can put my pass code in and unlock my phone.

  • Query default font programmatically

    I know there have been many posts on font sizes and keeping them the same between VIs and EXEs, but I think I have one that hasn't been addressed elsewhere. I'd like to create a VI that automatically generates the .ini file that goes along with the E

  • Problems with Quicktime and flash player

    Whenever I try to play a flash file the quicktime symbol comes up and has a questionmark in the middle. I have already tried uninstalling Quicktime and reinstalling it and it didn't work... I even got it to work by changing the prefrences but then it