What is the name of this class?

I have a JTable which is instantiated like this:
"class table2 extends JTable {
     private int rows = 100, cols = 8;
     private Object[] rowData = new Object[cols];
When I try to refer to it as "table2," I get a null pointer exception.
My questions:
What is the name of that class?
Is there a way to reference it as "table2"?
Many thanks in advance.

Hello
I might have the answer to your problem but firstly, is that all the code there is? For example, where is the constructor for your class?
In answer to your questions:
1. You cannot reference an object until it has been created (this might explain the NullPointerException)
2. To reference it as "table2" you would do something like this:
table2 table2 = new table2();Looks a bit confusing... :(
You should start class names with capital letters and also choose a general name for the class like this:
MyTable table2 = new MyTable();
MyTable table3 = new MyTable();and so on.
Post another message if you need more help.
Regards
Daniel Lam

Similar Messages

  • What is the name of this Asian font?

    What is the name of this Asian font. I have not been able to identify it in http://www.myfonts.com/WhatTheFont/, http://www.whatfontis.com/, http://www.identifont.com/

    ctc,
    have you tried these?
    http://www.whatfontis.com/
    http://www.identifont.com/
    http://new.myfonts.com/WhatTheFont/

  • Someone know where I can find this wallpaper in foul resolution, or what is the name of this flower ?

    Someone know where I can find this wallpaper in foul resolution, or what is the name of this flower ?

    In my opinion, it is a yellow dahlia, which has wide representation in bud design and coloration. I ran this image through TinEye (reverse image lookup) and it found one hit on the net, using this flower as a wallpaper on an image of an iMac.
    Agree with Sig.

  • The name of this class conflicts with the name of another class

    I had a problem when compiling my flash movie. I had made an
    instance from a class, but the output kept saying:
    "The name of this class, XXX, conflicts with the name of
    another class that was loaded XXX."
    I read a lot of developers have the same problems, when i
    looked it up:
    Google
    link on : "conflicts with the name of antother class that was
    loaded"
    Apparently it is some kind of bug caused by different times,
    between local/network machines and servers.
    Also when there is a time difference involved between 2
    computers, then this problem also occurs.
    Can't macromedia fix this bug? .....Because as a developer i
    don't want to adjust my time, everytime i want to test my flash
    movies or have to compile my movie 2 times. The other developers
    are getting tired of it also.
    We need to get this bug trough to macromedia or adobe!
    It needs to be fixed!

    Can anyone help?

  • What is the name of this effect? Help needed ASAP!

    I realize that this may be a really trivial matter, and an actually pretty stupid question - but I've been beating myself up trying to find out what this effect is called and how I can apply it to a vocal recording in Garage Band.
    I don't even know how to properly describe it - it's mostly used in dance / pop, and it's a vocal effect which fades the voice to an almost robotic deep voice. I'm guessing it's pretty well known since a lot of recording artists out there use it on vocals and instrumentals both. Here are some examples:
    YouTube - KE$HA - TiK ToK (0:28 - 0:33)
    YouTube - Ke$ha - Kiss N Tell (0:40 - 0:47)
    Tutorials, names etc would be really helpful! Thank you!

    Thank you

  • What is the name of this app?

    Hi
    I got an email today from Apple at the bottom of the email is a picture of the touch and it talks about gaming apps. The touch screen shows what looks like a tennis match with Weebles as the players! I have spoken to apple.. they don't know what it is called and I have searched! Does anyone know? It says wordsearch under the score board in the background of the game. . I tried that too.. no luck!
    Help!
    Thanks

    Is it TouchSports Tennis '09?
    If you go in the Apps Store and select Featured/New you should see iPhone Apps from the TV Ads in a box at the top right. Click on this box to see all the apps shown on TV.

  • What is the name of this Piano App at Apple website?

    I saw this Piano app at Apple website, but Apple does not say what app they were using. Here is the link where I saw the picture of the piano app http://store.apple.com/us?aic-aos-naus-holiday-november2014-home
    Also I took a screenshot with my iPad of the Piano
    Please what is this app?

    Is it TouchSports Tennis '09?
    If you go in the Apps Store and select Featured/New you should see iPhone Apps from the TV Ads in a box at the top right. Click on this box to see all the apps shown on TV.

  • What is the purpose of this (?=) ?

    hi friends...
    I am practising the WDA programs...
    in that they hav used this code
    data wd_table type ref to cl_wd_table.
    wd_table ?= view->get_element( 'TABLE' ).
    wd_this->table_control ?= wd_table->_method_handler.
    wd_this->table_control->set_key_attribute_name( 'MATNR' ).
    i don't know why they used this code...
    here  ( ?= ) what is the purpose of this ?= ?
    what is the purpose of this class cl_wd_table ?
    i am not clear with all statement, can you guide me..
    i am waiting for ur reply
    regards
    Deva

    ?= this is called downcast or narrow casting operator in abap.
    The purpose of this is assignment between reference variables in which the static type of the target varible more specific than the static type of the source varible.
    Check this link, hope it helps !
    [https://help.sap.com/saphelp_nw70ehp1/helpdata/en/c3/225b5f54f411d194a60000e8353423/frameset.htm]
    Radhika.

  • What is the name and location of the PSE 11 organizer database?

    Recently I asked about how the PSE 11 Organizer stores photos. The answer I received was that the organizer stores info of the photo in a database. What is the name of this database and where is it stored?

    Hi,
    If you are on a Windows system, load your organizer, go to the Help menu and select System Info - that should give you the path to you catalog folder.
    In that catalog folder, there are various files. The main database file is catalog.pse11db
    All the other files in that folder have their purpose. Be careful what you do with the files.
    Hope that helps
    Brian

  • What does the class CL_EXITHANDLER do ? What the significance of this class

    what does the class CL_EXITHANDLER do ? What the significance of this class,

    Peters,
    Welcome to SDN!
    you can see this class in SE24 and than choose GET INSTENCE method DB on it. than put break-point on
    CALL METHODcl_exithandler=>get_class_name_by_interface
    finally run any t-code you will come into debugger mode and if you see in exit_name value after pressing F6 you will get BADi name of this perticuler T-code.
    basically we use this class for findings BADi.
    Amit.

  • Please tell me what is the problem with this code

    Hai,
    Iam new to Swings. can any one tell what is the problem with this code. I cant see those controls on the frame. please give me the suggestions.
    I got the frame ,but the controls are not.
    this is the code:
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class ex2 extends JFrame
    JButton b1;
    JLabel l1,l2;
    JPanel p1,p2;
    JTextField tf1;
    JPasswordField tf2;
    public ex2()
    setDefaultCloseOperation(EXIT_ON_CLOSE);
    setTitle("Another example");
    setSize(500,500);
    setVisible(true);
    b1=new JButton(" ok ");
    p1=new JPanel();
    p1.setLayout(new GridLayout(2,2));
    p2=new JPanel();
    p2.setLayout(new BorderLayout());
    l1=new JLabel("Name :");
    l2=new JLabel("Password:");
    tf1=new JTextField(15);
    tf2=new JPasswordField(15);
    Container con=getContentPane();
    con.add(p1);
    con.add(p2);
    public static void createAndShowGUI()
    ex2.setDefaultLookAndFeelDecorated(true);
    public static void main(String ar[])
    createAndShowGUI();
    new ex2();
    }

    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class ex2 extends JFrame
        JButton b1;
        JLabel l1,l2;
        JPanel p1,p2;
        JTextField tf1;
        JPasswordField tf2;
        public ex2()
            setDefaultCloseOperation(EXIT_ON_CLOSE);
            setTitle("Another example");
            b1=new JButton(" ok ");
            p1=new JPanel();
            p1.add(b1);
            p2=new JPanel();
            p2.setLayout(new GridLayout(2,2));
            l1=new JLabel("Name :");
            l2=new JLabel("Password:");
            tf1=new JTextField(15);
            tf2=new JPasswordField(15);
            p2.add(l1);
            p2.add(tf1);
            p2.add(l2);
            p2.add(tf2);
            Container con=getContentPane();
            con.add(p1, BorderLayout.NORTH);
            con.add(p2, BorderLayout.CENTER);
            pack();
            setVisible(true);
        public static void createAndShowGUI()
            ex2.setDefaultLookAndFeelDecorated(true);
        public static void main(String ar[])
            createAndShowGUI();
            new ex2();
    }

  • What is the name of the CD drive?

    I'm taking an online graduate course, and they have sent me a CD-ROM with a audio lecture and accompanying slide presentations. The preferences part of the online BlackBoard class environment prompts you to identify the cd drive on the computer to make these things work. For a PC, it would be the "d" drive, just as the internal HD is the "C" drive or floppy drive is the "A" drive, etc.
    So then they say with a MAC you need to input the "name" of the cd drive. So what's the name? I have looked in the system profiler and it says nothing, I have checked the "path" of a cd mounted on the drive and is says "/volume", but this still doesn't work. Anyone know?
    Fortunately, I have a backup PC that can run these things, but it would be useful to solve the problem and make it run on my Macs.
    tks rich
    G4 PowerMac450 MHZ/G5 dual1.8 /12 Powerbook G4 1.3   Mac OS X (10.4.1)  
    G4 PowerMac450 MHZ/G5 dual1.8 /12 Powerbook G4 1.3   Mac OS X (10.4.1)  
    G4 PowerMac450 MHZ/G5 dual1.8 /12 Powerbook G4 1.3   Mac OS X (10.4.6)  

    The complete path to any CD is going to depend on the name of your disc.
    It is in the form of /Volumes/<cd name>
    If your disk is named 'BlackBoard' (for example) then the path will be /Volumes/BlackBoard/

  • How to recognize the name of invoked classes&methods&fields in a class

    I am now doing some programming used to recognize the name of all classes, methods, constructors and fields invoked from other classes in a given class. This recognition is required automatical. Now I really have no idea how to realize it. Can anyone please give me some suggestions how to programme it?
    Now I show you a specific example to make sure you understand my question.
    From the following example, firstly I've no idea what outer classes, methods and fields are used in class "PointShadowProtocol". However, the expected functionality of realization is to find out: 1, the name of two used outer classes: Shadow, Point; 2, invoked constructor: Shadow s=new Shadow(int x,int y); 3, invoked methods: Point.getX()&#65292; Point.getY()&#65292; Point.printPosition()&#65292;Shadow.offset&#65292;Shadow.printPosition(); and 4, invoked field: Point.x,Point.y,Shadow.x,Shadow.y
    public class PointShadowProtocol{
    private int shadowCount=0;
    public static Shadow getShadow(Point p){
    Shadow s=new Shadow(p.x,p.y);
    return s;
    public void setting(Point p){
    Shadow s=new Shadow(p.x,p.y);
    shadowCount++;
    public void settingX(Point p){
    Shadow s=getShadow(p);
    s.x=p.getX()+Shadow.offset;
    p.printPosition();
    s.printPosition();
    public void settingY(Point p){
    Shadow s=getShadow(p);
    s.y=p.getY()+Shadow.offset;
    p.printPosition();
    s.printPosition();
    Actually, after realizing this functionality, I will use these results to automatically generate the related class stub, method stub, field stub, which can be used to test the given class "PointShadowProtocol", probably equivalent to unit test.
    Any suggestions are welcome. Thank you in advance for your reply.

    Using BCEL sounds a good idea for a class in Java. Actually, I want to target an aspect, which is from AspectJ, without knowing any invoked classes, class methods and fields inside an aspect in the first place (examples of an aspect is as showed below). An aspect in AspectJ is just like a class in Java. But an aspect can't be compiled if the invoked outer classes and methods don't exist. (In fact, the weaving of an aspect into classes happens in the compile time, an aspect can't be compiled if the woven classes (or invoked classes) don't exist, which means I have to find out the all the invoked classes, class methods and fields in that aspect before the compile time) So BCEL could not apply into an aspect in AspectJ.
    I am sorry to introduce new concepts here. However,the solution to find out all the invoked outer classes, class methods and fields in a given class before the compile time can be applied to an aspect as well.
    Thank you for your time to think about my question.
    public aspect PointShadowProtocolAspect {
         private int shadowCount=0;
         public static Shadow getShadow(Point p){
              Shadow s=new Shadow(p.x,p.y);
              return s;
         pointcut setting(Point p): target(p)&&call(Point.new(int,int));
         pointcut settingX(Point p):target(p)&&call(void Point.setX(int));
         pointcut settingY(Point p):target(p)&&call(void Point.setY(int));
         after(Point p): setting(p){
              Shadow s=new Shadow(p.x,p.y);
              shadowCount++;
         after(Point p):settingX(p){
              Shadow s=getShadow(p);
              s.x=p.getX()+Shadow.offset;
              p.printPosition();
              s.printPosition();
         after(Point p):settingY(p){
              Shadow s=getShadow(p);
              s.y=p.getY()+Shadow.offset;
              p.printPosition();
              s.printPosition();

  • What are the major components in class?

    1)     What is the purpose of ‘load-of-program’? When it will be trigger?
    2)     Write the code for displaying the three parameters in single line with the first parameter as mandatory in the selection screen?
    3)     Which event triggered whenever the user call the function BACK, EXIT, CANCEL?
    4)     What are the major components in class?
    5)     What is the functional module is used to get popup screen for ALV reports?
    6)     Which type of pool is used to get drop-down list?
    7)     What is the tcode for creating the variant truncations?
    8)     Is it possible to call LDB’s number of times in same report?
    9)     What are the conditions to use control break statements in our report program?
    10)     What is the use of range statement?
    11)     What is the difference between normal reports and alv reports? With comparing to normal report are there any disadvantages in alv reports?
    12)     What are the components used to suppress the fields in the selection-screen?
    13)     What is the standard program to transport selection screen variants?
    14)     What is the event keyword for defining event block for reporting events?
    15)     What is the specific statement use when writing a drill down report?
    16)     What are the different tools to report data in sap?
    17)     Write the menu path to create a selection text in reports?
    18)     How do we omit the leading zero s while formatting outputs in reports?
    19)     What are the report truncations?
    20)     How do we align selection input in single row?
    21)     How do we suppress the display of input fields on selection screen?

    this forum is not for answering your interview questions...if you stucked with any realtime problem then post...please try to respect forum terms and conditions.
    Thank you.

  • I've installed LR on my new Mac - How do I find/what is the name of the file that opens to bring up my existing photos (on my external hd)?

    I've installed LR on my new Mac - How do I find/what is the name of the file that opens to bring up my existing photos (on my external hd)?

    Bookmarks and history are stored together in your profile folder in a database file named places.sqlite. These articles should help with restoring as much or as little of your other profile as you like:
    Locating the folder: [https://support.mozilla.com/en-US/kb/Profiles Profiles | How to | Firefox Help]
    The following article has suggestions for recovering bookmarks: [http://support.mozilla.com/en-US/kb/Lost%20Bookmarks Lost Bookmarks | Troubleshooting | Firefox Help].
    To move more settings, see: [https://support.mozilla.com/en-US/kb/Recovering+important+data+from+an+old+profile Recovering important data from an old profile].
    Hope this helps.

Maybe you are looking for