Creating a Double[][]

Hello,
I am trying to make a Double[][] like so.....
Double[][] size = {{200,200,200,200},{50,50,50,50,50,50,300}};I have done this before in other programs. however when i try it now i get this error.....
mohadib@mohadib ~/java_restore/contacts_act--->javac ContactGUI.java
ContactGUI.java:22: incompatible types
found   : int
required: java.lang.Double
                Double[][] size = {{200,200,200,200},{50,50,50,50,50,50,300}};
                                    ^
ContactGUI.java:22: incompatible types
found   : int
required: java.lang.Double
                Double[][] size = {{200,200,200,200},{50,50,50,50,50,50,300}};
                                        ^
ContactGUI.java:22: incompatible types
found   : int
required: java.lang.Double
                Double[][] size = {{200,200,200,200},{50,50,50,50,50,50,300}};
                                            ^
ContactGUI.java:22: incompatible types
found   : int
required: java.lang.Double
                Double[][] size = {{200,200,200,200},{50,50,50,50,50,50,300}};
                                                ^
ContactGUI.java:22: incompatible types
found   : int
required: java.lang.Double
                Double[][] size = {{200,200,200,200},{50,50,50,50,50,50,300}};
                                                      ^
ContactGUI.java:22: incompatible types
found   : int
required: java.lang.Double
                Double[][] size = {{200,200,200,200},{50,50,50,50,50,50,300}};
                                                         ^
ContactGUI.java:22: incompatible types
found   : int
required: java.lang.Double
                Double[][] size = {{200,200,200,200},{50,50,50,50,50,50,300}};
                                                            ^
ContactGUI.java:22: incompatible types
found   : int
required: java.lang.Double
                Double[][] size = {{200,200,200,200},{50,50,50,50,50,50,300}};
                                                               ^
ContactGUI.java:22: incompatible types
found   : int
required: java.lang.Double
                Double[][] size = {{200,200,200,200},{50,50,50,50,50,50,300}};
                                                                  ^
ContactGUI.java:22: incompatible types
found   : int
required: java.lang.Double
                Double[][] size = {{200,200,200,200},{50,50,50,50,50,50,300}};
                                                                     ^
ContactGUI.java:22: incompatible types
found   : int
required: java.lang.Double
                Double[][] size = {{200,200,200,200},{50,50,50,50,50,50,300}};
                                                                        ^
ContactGUI.java:23: cannot resolve symbol
symbol  : constructor TableLayout (java.lang.Double[][])
location: class layout.TableLayout
        TableLayout layout = new TableLayout(size);
                             ^
12 errors
mohadib@mohadib ~/java_restore/contacts_act--->here is the code.......
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import layout.TableLayout;
public class ContactGUI extends JFrame{
     public ContactGUI(){
          JPanel mainPanel = new JPanel();
          mainPanel.setPreferredSize(new java.awt.Dimension(800,600));
          defaultContact(mainPanel);
          getContentPane().add(mainPanel);
          pack();
        setSize(800,600);
        setVisible(true);
     public void defaultContact(JPanel mainPanel){
          JPanel contactMainPanel = new JPanel();
          contactMainPanel.setPreferredSize(new java.awt.Dimension(800,600));
          Double[][] size = {{200,200,200,200},{50,50,50,50,50,50,300}};
        TableLayout layout = new TableLayout(size);
        contactMainPanel.setLayout(layout);
          mainPanel.add(contactMainPanel);
     public static void main(String[] args){
          ContactGUI cGUI = new ContactGUI();
}can someone tell me what im doing wrong.
thanks,
jd

The values you are assigning to the array are ints, not doubles.
Doubles have decimal places.
If you need decimal places in the array, initialise it with 200.0 etc... otherwise, make it an int array.

Similar Messages

  • Dump error while creating or double click the info package

    Hello experts,
    I have actived infocube 0FIAR_C03 in BI content. Ago, The creation infopackage have been deleted in the past , today, I  created a infopackage, while I update mode selected u2018initialize delta processu2019, then click save button , the system prompt u2018Deltas already loaded for request  REQU_D64R47LDUSZHY9CBIB86WMLFJ init.selection; no 2. initu2019, I canoti save it for my setting. Why is this?
    Then I have search cause in SDN,  and I have reference OSS Note 852443 to do .
    Note 852443 have mention some table: RSSELDONE、RSSDLINIT、RSSDLINITSEL、ROOSPRMSC、ROOSPRMSF.
    I have to delete that request of record using se16 in these tables: RSSELDONE、RSSDLINIT、RSSDLINITSEL.
    in my BI 7.0 system,   ROOSPRMSC、ROOSPRMSF is no any data.
    I was no found delta queue in RSA7.
    Now . Dump error while creating or double click the info package,  how can I change this?
    Please let me know the solution.
    Thanks for your help.
    Best Regards
    Steve

    Here are some links  which deals with same issue.
    Re: Dump In Infopackage
    Re: Getting into Short dump at the time of selecting InfoPackage to execute for
    Short dump while performing init in infopackage
    Re: Infopackage going into short dump
    Thanks.

  • How to create a double Y axis bar chart

    I have a table with 3 columns, how to create a double Y axis bar chart with title and scale of one Y axis on one side and the other title on the other side, left and right side of the chart.
    Dec 13 107.9
    Jan 9 106.5
    Feb 11 96.1
    Mar 15 111.5
    Apr 13 106.3
    May 13 101.1
    Jun 14 100.2
    July 18 100.8
    Aug 15 103.4
    Sep 16 108.8
    Thanks a lot!
    Stanley Tam

    Start with chart that looks like a column + line chart with a left & right Y axis. It should be the one on the bottom left. After plotting your two series, go to the chart inspector, series tab, and change the second series from line to column. Go to the Axis tab and choose to show the titles for the Y1 and Y2 axes.

  • How do I create a double page spread in a booklet layout on InDesign with out splitting my design and putting them on two separate pages?

    I'll try my best to put this in the most simplest way,
    Im trying to create a magazine, but I'm finding it difficult to make a double page spread without splitting it in half and putting it on different pages?
    Is it possible to set the pages up so they are side by side, and then change them to the right order to print?

    Just set them up as letter size pages in reader order. If you are having it printed professionally, send it as a pdf with separate pages, and the printer will handle setting up the printer spreads. If you are printing it from an office printer, both InDesign and Acrobat have Print Booklet functions. Many office printers also have this capability built in.

  • Example of creating  ALV double click event that can be used in ANY Program

    Once you get the hang of OO you can really create useful generalized code that can be used in a huge number of situtations.
    Double click on ALV is often wanted
    Right  here goes to implement a generalized double click action that returns the row, column and column name back to the caller.
    In your CLASS  in the DEFINITION part code as follows.
    CLASS zcl_dog DEFINITION.
    PUBLIC SECTION.
    METHODS:
      constructor
          IMPORTING       z_object type ref to zcl_dog,
                         i_parent     type ref to  cl_gui_custom_container,
    PRIVATE SECTION.
    on_dubbelklik FOR EVENT double_click OF cl_gui_alv_grid
          IMPORTING e_row
                    e_column
                    es_row_no,
    dubbleklik
          IMPORTING
                     e_row  type  LVC_S_ROW
                     e_column   TYPE LVC_S_COL
                     es_row_no  type lvc_s_ROID
                     program type sy-repid.
    code here any extra any methods you need.
    In the CONSTRUCTOR method of the implementation
    CLASS zcl_dog IMPLEMENTATION.
    METHOD constructor.
       CREATE OBJECT grid_container1
           EXPORTING
                   container_name = 'CCONTAINER1'.
        CREATE OBJECT  grid1
            EXPORTING
                  i_parent = grid_container1.
        SET HANDLER z_object->on_user_command for grid1.
        SET HANDLER z_object->on_toolbar for grid1.
        SET HANDLER Z_OBJECT->handle_data_changed_finished FOR grid1.
        SET HANDLER Z_OBJECT->on_dubbelklik FOR grid1.
    endmethod.
    METHOD on_dubbelklik.
    CALL METHOD me->dubbleklik
    exporting
                     e_row  = e_row
                     e_column =  e_column
                     es_row_no = es_row_no
                     program  = sy-repid.
    break-point 1.
    method dubbleklik.
      perform dubbleklik IN PROGRAM (program)
        using
        e_row
        e_column
        es_row_no.
      ENDMETHOD.
    endclass.
    This will now perform a routine called dubbleklik  in your application program whenever you double click a cell in the grid.
    In the application program just code the following
    DATA:  z_object type ref to zcl_dog,  "Instantiate our class
           grid_container1 type ref to cl_gui_custom_container,
    CREATE OBJECT z_object EXPORTING z_object = z_object.
    call ANY method in the class  which eventually displays the grid
    CALL METHOD z_object->build_dynamic_structures
            CHANGING it_fldcat = it_fldcat.
    form dubbleklik using
            e_row   type LVC_S_ROW
            e_column type LVC_S_col
            es_row_no type lvc_s_roid.
    break-point 1.
    endform.
    When you double click a cell you'should be at the break point in your routine in the application program.
    You've got the cell that was clicked so by reading your table you can examine the data and take the appropriate action.
    Cheers
    Jimbo

    I suggest you purchase a case and have a dedicated support engineer work with you directly:
    http://www.sdn.sap.com/irj/boc/gettingstarted
    Or
    http://store.businessobjects.com/store/bobjects/Content/pbPage.CSC_map_countyselector/pgm.67024400?resid=jFmmLgoBAlcAAALO-iYAAAAP&rests=1278687224728
    If this is a bug you'll get a refund, if not post your enhancement request in the Idea Place. Or the Rep will suggest a better way to create your report.

  • CS4 Project manager creates a double copy of footage when there's a subclip. Is this a bug?

    Hi all,
    Although I think I can solve this for my project by changing the clip link, I'm wondering if anyone else has encountered this problem.
    I used the project manager to collect all files. It makes a double copy of a 5 GB footage file. It makes an exact copy of the footage adding a _001 to its name. The duplicated file is made for a subclip. The extra copy seems unneeded. The subclip can be linked to the original footage file just like it is linked in the original project.

    No It isn't. It is DV  in an .AVI file. I used Collect files so the files shouldn't be trimmed. An identical full length copy of the file was made for the subclip.
    I solved it by making the subclip of the new collected project offline and then relinking it to the original file. Then I deleted the extra identical 5 GB file that the project manager created.

  • Install CS6 create a double folder c:\program files\common files

    Install CS6 from DVD Media Kit (Upgrade CS5) create on partition C:\ a double folder "c:\program files\common files".
    Start Photoshop and all other CS6 programs an error 5 failure.
    All other programs (MS Office, CRM, ...) no longer running on this computer.
    Only a Image restore in the previous state running the computer with CS5 and MS Office programs.
    This failure is reproducible on this an other computers with same installation.
    - HP Z200 Workstation
    - Windows 7 SP1, x32
    - MS Office 2010
    - Trendmicro Worry Free 8 Antivirus
    Thanks for your help
    regards
    René Datz

    Hi Jeff, i see after the cs6  installation really two "c:\program files\common Files" Folders!!!
    Screenshot is not from original computer, it's only a example.
    Amazing!!!

  • I can not create a Double object

    I cannot create Double objects. The following program should be straight-forward enough. Right?
    ++class TextfilerFloat++
    ++{++
    ++     public static void main (String[] args)++
    ++     {++
    ++          Double d = 332.2;++
    ++          System.out.println (d);++
    ++     }++
    ++}++
    Compiling it returns the following message:
    ++incompatible types++
    ++found : double++
    ++required: Double++
    ++          Double d = 332.2;++
    ++          ^++
    ++1 error++
    ++Tool completed with exit code 1++
    The same program but with the object Integer instead of Double works (for 332, not 332.2). The problem is not if I use "," och ".", I checked.
    Two questions:
    Because I have this problem, what other problems can i expect?
    What can I do to fix this problem (I have reinstalled Java once and it didn�t help)?

    I don�t use Java 1.4.2 and I never had it installed on my computer. I have Java SE 6.     
    I interpreted your advice (I am an beginner, and if I didn�t understand your advice thats probably the reason) by trying to do it this way:
    double           d = 112.2;
    Double          dd = d;It didn�t work.
    And, I�m sure, I just tried, the program works fine if I use Integer instead of Double.
    By the way, I get the program to work on other computers. And my Java teacher, who is very skilled, don�t know what the problem is.
    What else might I do to fix the problem?
    Edited by: oxygenisgoodforyou on Dec 15, 2007 4:13 AM

  • Creating a Double Line Graph

    Hello,
    I'm trying to create a graph from the information seen in the table below. I need to plot on the X- Axis, the T0,T1,T2 values. There will be two data sets for the line graph, Subject A and Subject B, the value from which will be plotted on the Y-Axis. I've spent about an hour now, trying to order the values to create the graph I need.
         Another way of saying this, is that I'm plotting the differences in Subject A versus Subject B over a period of Time (T0, T1, T2).
    It should look something like this:
    Help Please!
    -KB

    Hi KBaines,
    Please don't worry about wasting anyone's time. Many users in this forum look upon Numbers problems as a challenge. If you solved your own problem, please post your solution to help others.
    Regards,
    Ian.

  • How do you create a double coloured outline on a font? e.g The Lego Logo has black and yellow

    I am trying to make my sons birthday invitation and he is having a Lego themed party... how do I create the black and yellow outline on the font. I have downloaded the LegoThick font... but because its an outline font and not white, the outline is only black and if I change it to yellow the black obviously changed too...oh and I cant get the font filled in white.. HELP. LOL

    Obi-wan,
    A picture might be worth a thousand words, but to be useful this one requires an explanation of how you did it.
    This is very easy using multiple strokes in Illustrator, not so much in ID, but it can be done with a custom stroke style of type Stripe using half the width for the stroke and half for the gap. Fill the text with [Paper], then apply the stroke in Black with Yellow gap, or Yellow with Black gap (depending on which side of the stroke is gap). Is that what you did?

  • Creating a double sided flag in indesign - flipping image problems

    Hi there - struggling to flip an image in idesign
    I want to create flags, which when printed will be on sticky paper and stuck to cocktail sticks to make mini flag poles to put in the drinks
    however when I flip the flag image (see example http://www.flags.net/BVIS.htm) it inverts the image and the wording reads back to front, I just want to flip the image to they will stick back to back like a normal flag. Any clues
    Not explained very well I appreciate but i want to create a flag

    If the image contains text that text will be flipped with the rest of the image.
    You're going to need to do this in Photoshop (with raster) or Illustrator (with vector) to maintain the integrity of the text.
    Bob

  • Upgrade to OS4 created a double-size display

    After upgrading to OS4, the display on my iPhone 3GS blew up to 2+ times its normal size. Have tried reloading the software and 'restoring' the settings but nothing has helped. I now have an iPad-size display on a much smaller, iPhone screen.
    Any suggestions?

    Double tap the screen with 3 fingers and then turn Accessibility off in Settings.

  • Iphone sync creates calendar doubles

    When my phone syncs it doubles everything in my calendar so I have each appointment listed twice.  Any suggestions on how to fix it?

    Could use a little more information, but are you syncing through iTunes and also a service such as Google or MobileMe? If you are using Google or MobileMe, you don't need to sync contacts and calendar through iTunes.

  • Creating a double page spread - gutter accommodation??

    If I split an image across two full bleed pages in an iPhoto book does the software automatically work out the overlap in the gutter or should I put that in manually when I lay out the images? Ie should I line up the images perfectly across the gutter as they appear in iPhoto (that is as the image crosses the binding) or should I add some overlap visually?

    the program does not totally figure the gutter out - both pages are printed full bleed on 8. x 11 - I measure roughly 10 11/17 to 10 3/4 printed area showing (so about 1/4 to 3/16 gutter)
    Unless you are really picky or have the most important person in your photo in the gutter I would just ignor it - I have even taken two photos and not bothered to use PhotoShop Elements to stitch them but just placed them on facing pages and I've been very happy with the results - your eye dos an amazing job of adjusting
    The problem with adding visual overlap is going to be that the binding process and printing process are not perfect so you can not exactly predict the gutter will be - but I'd start with 1/4" if I were going to do it
    LN

  • Creating a Double Page Spread

    I would like to stretch a picture over two pages, how would i be able to do this? Is this possible?

    There is an shareware application that can do this fairly well called Poster Print. The program was designed to do images on many pages, but I believe it will do it with a two page setup.
    http://www.luxordevelopment.ch/posterprint/?lang=en
    Although it does cost about $18, you can download the trial and see if it works for you.

Maybe you are looking for

  • How to hide subfolders in Outlook view in iPhone

    Need to hide all subfolders tht comes over from Outlook into my iPhone, takes forever to scroll down when all is showing. Is there a way?

  • Help opening raw files in PSE 13

    Hello, I upgraded PSE 13 from PSE 9. I was using PSE 9 with my Nikon 600 (because I couldn't open the 600 raw files in PSE 9) by using the Adobe DNG converter. This was working fine. Since upgrading I can't open any Nikon 600 raw files in PSE 13 nor

  • HT1937 unlocking iphone 4 /3 years old/ in 02

    Hello.Can anybody help me how may I unlock iphone 4 /3years old/ being used in o2/uk/ I would appreciate any help.Thanks in advance

  • Unable to run war and jar when both deployed on the same server

    hi, i getting errors viz,(LogInterceptor,EJBException in method(bean classes).ihave deployed jar successfully on the Jboss server4,and i am able to excute a simple jsp file (which call the bean from jboss) from Tomcat server where i have put my clien

  • Workaround for go connect to Server

    Am looking for a workaround for using the go>connect to server command so that students won't see that school Administrator's computer is actually accessible. (yes, there's a password, but...) Previously clients (OS 10.2) were bound to server (OS 10.