Protected Key Word

Dear Sirs,
Once again my knowledge is seriously lacking in a key area:
When I try to compile the following:
class DrawFrame extends Frame
     public static final int WIDTH = 800;
     public static final int HEIGHT = 600;
     public String[][] a;
     public String[][] routerArr;
     public DrawFrame(String[][] ipArray, String[][] router)
          a = ipArray;
          routerArr = router;
          setTitle("Graphical network analysis app V1.0");
          setSize(WIDTH, HEIGHT);
          setBackground(Color.white);
          ScrollPane scroller = new ScrollPane();
          DrawPanel panel = new DrawPanel(a, routerArr);
          panel.repaint();
          scroller.addImpl(panel, null, 0);
          add(scroller);
          repaint();
}I am told
"Cannot access protected member 'void addImpl(Component, Object, int)' in class scrollPane from Class 'DrawFrame'"
Could someone a) tell me how to correct this
b) point me in the right direction for learning about such matters (i'm off to the sun tutorial pages now!)
Thanks for any help,
Windy

I've done this instead, whic compiles ok, but after all that, it doesn't actually show a scrollbar!
Any hints?
class DrawFrame extends Frame
     public static final int WIDTH = 800;
     public static final int HEIGHT = 600;
     public String[][] a;
     public String[][] routerArr;
     public static DrawPanel panel;
     public DrawFrame(String[][] ipArray, String[][] router)
          a = ipArray;
          routerArr = router;
          setTitle("Graphical network analysis app V1.0");
          setSize(WIDTH, HEIGHT);
          setBackground(Color.white);
          panel = new DrawPanel(a, routerArr);
          ScrollPaneDoody scroller = new ScrollPaneDoody();
          panel.repaint();
          add(scroller);
          repaint();
class ScrollPaneDoody extends ScrollPane
     public ScrollPaneDoody()
          addImpl(DrawFrame.panel, null, 0);
}Thanks for any help,
Windy

Similar Messages

  • 2.1 Quirky Key Words

    SQLDeveloper never aligned PLS_INTEGER data types with the rest of my variable decelerations, but I was too happy/distracted with CONSTANT finally being aligned that I never posted about it. Got some free time so I thought I'd ask:
    (1) Is it a bug that causes certain data types to be treated differently when aligning?
    (2) Is it a bug that certain key words are highlighted but aren't converted to upper case when I have it set to convert key words to upper?
    (3) Is there a file somewhere that I can modify and have SQLDeveloper treat certain key words in certain ways?
    (3.1) PLS_INTEGER doesn't get highlighted, or aligned.
    (3.2) CONSTANT gets highlighted and is aligned, but doesn't convert to upper case.
    (3.3) DATE highlights, converts to uppercase, but doesn't align.
    Personally I'd like to see all 3 words above be treated the same way.
    --How it's formatting
    DECLARE
      lv_one DATE;
      lv_twoooooooo NUMBER;
      lv_three      VARCHAR2(30) ;
      lv_four       VARCHAR2(32767) ;
      lv_five pls_integer;
      lv_fiveandahalf pls_integer;
      lv_six constant NUMBER;
      lv_seven DATE;
      lv_eightpoint5 DATE;
      lv_eighttttttttt constant DATE;
      lv_nine          NUMBER;
      lv_ten           VARCHAR2(30) ;
    BEGIN
      NULL;
    END;
    /

    Hi Steve,
    Try the general tips in this article: http://support.apple.com/kb/HT1650 under *Buttons and Switches*.
    Also, remove any protective cases or films from the iPhone that might be covering the volume button.
    If the issue persists, the iPhone will need hardware repair. Just contact SingTel to get the iPhone repaired in Singapore. This article: http://support.apple.com/kb/HT2251 provides more information about Singapore Online Support Resources.
    -Jason

  • Java reserved key words method

    Is there any built in method in java that take a string as an argument and returns a boolean depending on whether the passed strig is a java reserved key word or not. for eg..if string such as "public", "class","int"..etc is passed to such a method then it returns true...I would appreciate if someone could help me out with this one..my email is [email protected]

    not as far as i know. but it should not be a great prob to write this method on your own. a quick search brought me to that url:
    http://java.sun.com/docs/books/tutorial/java/nutsandbolts/_keywords.html
    so, now its really easy to write this method, isnt it?

  • Creating Materialized View with the Distinct key word

    Hi
    I need help to create Materialized View with the Distinct key word.
    my query is
    select distinct col1, col2 from t1;
    is there any alternate of DISTINCT because I can not refresh the MV as fast on demand if I am using it and Fast on Demand is a must for me.

    hi
    check out this link
    http://download-west.oracle.com/docs/cd/B12037_01/server.101/b10736/basicmv.htm#i1007299
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/intro.htm#sthref183
    hope this helps
    CHeers

  • What is use of LOAD key word in ABAP-HR

    what is use of LOAD key word in ABAP-HR?

    Hi,
    LOAD keyword is used to load all the parameter values.
    Basic form
    LOAD REPORT prog PART part INTO itab.
    Variants
    1. LOAD REPORT prog PART 'HEAD' INTO itab.
    2. LOAD REPORT prog PART 'TRIG' INTO itab.
    3. LOAD REPORT prog PART 'CONT' INTO itab.
    4. LOAD REPORT prog PART 'DATA' INTO itab.
    5. LOAD REPORT prog PART 'DDNM' INTO itab.
    6. LOAD REPORT prog PART 'DATV' INTO itab.
    7. LOAD REPORT prog PART 'SELC' INTO itab.
    8. LOAD REPORT prog PART 'STOR' INTO itab.
    9. LOAD REPORT prog PART 'LITL' INTO itab.
    10. LOAD REPORT prog PART 'SYMB' INTO itab.
    11. LOAD REPORT prog PART 'LREF' INTO itab.
    12. LOAD REPORT prog PART 'SSCR' INTO itab.
    13. LOAD REPORT prog PART 'BASE' INTO itab.
    14. LOAD REPORT prog PART 'INIT' INTO itab.
    15. LOAD REPORT prog PART 'DATP' INTO itab.
    16. LOAD REPORT prog PART 'TXID' INTO itab.
    17. LOAD REPORT prog PART 'COMP' INTO itab.
    Effect
    Loads the specified part of the generated version of the program prog into the internal table itab (for analysis purposes only).
    The return code value is set as follows:
    SY-SUBRC = 0 The load for the program prog exists and is current.
    SY_SUBRC = 4 The load for the program prog does not exist.
    SY-SUBRC = 8 The load for the program prog exists, but is not current. In some cases, this SY-SUBRC may mean that the program load has been destroyed. You can resolve this by generating the program. With PART 'LREF' , SY-SUBRC = 8 means that the line reference table is incorrect for the program. With PART 'CONT' , it means that the reference part of the internal table is empty.
    itab has been filled only if SY-SUBRC = 0 .
    Reward points if useful.
    Regards,
    Sekhar

  • How to translate the key words in ABAp program from lower case to upper cas

    How to translate the key words in ABAp program from lower case to upper case?

    Hi Kittu,
    You need to set the Pretty Printer settings to achieve key words in ABAP program from lower case to upper case.
    Utilities -> Settings -> Pretty Printer (tab) -> Select third radio button.
    Thats all.
    <b>Reward points if this helps.
    Manish</b>

  • Help on web.xml file, what if the parameters contains key words ?

    Hi:
    I am just wondering what should I do if I want to include key words suchs
    as <param> in web.xml file for a servlet config.
    Example:
    <servlet>
    <servlet-name>testServlet</servlet-name>
    <parameter>
    <param-name>some name</param-name>
    <param-value>some value</param-value>
    </parameter>
    </servlet>
    What should I do if I want to repleace 'some value' with '</param-value>some
    value' and still to prevent the engine to terminate parsing the param-value
    at the fake ending? Is there a standard way in XML to distanguish that?
    (in URL format it can be replaced %xx for some chars).
    ie,
    <param-value> </param-value>some value</param-value>
    where the second </param-value> is the real ending.
    Thank you!
    Gang

    Hi!
    You can use "& lt ;" and "& gt ;" xml entities for that. Or wrap text element in <![CDATA[...]]> section.
    Regards,
    Ignat.

  • How to Protect a Word Table in a Word Document without Protecting the Word Document

    Is there any way we can Protect a Word Table alone without Protecting the Entire Word Document?
    or
    My requirement is to Protect the Table from Editing but at the same time, the other default word features like, Track Changes, Page Orientation etc., shouldn't be disabled. Because while the document is Protected, I couldn't Accept or Reject Track Changes,
    the menu options are being disabled.
    Any kind of help is much appreciated!
    Thanks.

    Hello,
    This forum is for discussions and questions regarding profiles and Microsoft's recognition system on the MSDN and TechNet sites. It is not for products/technologies.
    As it's off-topic here, I am moving the question to the
    Where is the forum for... forum.
    Karl
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book:
    Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

  • Is there a way to identify the key words being used for SEO when I'm visiting a web site?

    When I am on a web site, looking at a product for sale, is there an app or add on I can use to see what that site has for key words, meta tags etc? It would be helpful when adding products to my own site to see what works elsewhere.

    Do search engines even look at those anymore? URL, title and page content are what's relevant.
    * http://www.metatags.org/google_ignores_meta_tags_in_ranking
    In any case, you can look at the source code. Click the Firefox button, then Web Developer, then View Source. You can also press Ctrl+U.
    All 'SEO' add-ons:
    * https://addons.mozilla.org/firefox/search/?q=seo&sort=users

  • Apple should do something for the equipment stolen something like block and only activated by key words given to register the device on the apple's website

    Apple should do something for the equipment stolen something like block it(them) and only activated by key words given to register the device on the apple's website

    Tell Apple:
    http://www.apple.com/feedback
    Doubtful that this would happen.  Privacy laws would likely be tested with this.
    No manufacturer does this.

  • LEVEL key word in Oracle 9.2.0.1.0 & Oracle 9.2.0.7.0

    Hi experts,
    I'm using a Oracle9i Enterprise Edition Release 9.2.0.1.0 - 64bit Production in my development environment and
    Oracle9i Enterprise Edition Release 9.2.0.7.0 - 64bit Production in production environment.
    I use a query with a LEVEL key word and it works fine in the development environment and gives an error in the production environment. When I remove the LEVEL key word it works fine in the production also.
    Was there a change which happen to LEVEL key word in these releases ???

    PrasadDe wrote:
    Was there a change which happen to LEVEL key word in these releases ???Probably. Who can tell. Those are both unsupported versions of the database.
    Why not upgrade to something that's supported and we know works.

  • What are all the key words are not recommented in User Exit or Enhancement

    Dear Experts,
    Can any of one tell me, what are all the key words not recommended to use any of the User exit or Enhancement spots?
    Regards,
    Mohana
    Moderator message: please search for available information/documentation.
    Edited by: Thomas Zloch on Feb 22, 2011 4:10 PM

    No Icon:Visitor
    Student
    Honor Student
    Top Student
    Tutor
    Intern
    Teacher
    Grad Student
    Master’s Graduate
    PhD Student
    Associate Professor
    Professor
    Distinguished Professor
    Regents Professor
    Associate Dean
    Dean
    Provost
    FONDA X. COX, PhD

  • Not understanding "synchronized key word"

    Hello all,
    I have a singleton class as below
    package test;
    public class TestClass {
        private final static TestClass testClass = new TestClass();
        private TestClass() {
            super();
            // TODO Auto-generated constructor stub
        public static TestClass getInstance() {
            return testClass;
        public  synchronized void keepRunning() {
            for (int i = 0; i < 10454564564l; i++) {
                for(int j=0 ; j<242342342342l;j++){
                    System.out.println(j);
    }And two other classes which take the reference and call keepRunning simultaneously as shown
    package test;
    public class TestClass1 {
        public TestClass1() {
            super();
            // TODO Auto-generated constructor stub
         * @param args
        public static void main(String[] args) {
            TestClass testClass = TestClass.getInstance();
            testClass.keepRunning();
    }and
    package test;
    public class TestClass2 {
        public TestClass2() {
            super();
            // TODO Auto-generated constructor stub
         * @param args
        public static void main(String[] args) {
            TestClass testClass = TestClass.getInstance();
            testClass.keepRunning();
    }Now if i run both TestClass1 and TestClass2, i can see sysouts from both the programs. I am not able to understand Why synchronized key word allowing TestClass2 to acess the code.(As there are no shared variable)

    ohhhhhhhhhhh!!!!! Sorry ! I am ashamed of myself!! :-(

  • How usnig manuplate the Import and export Key word.

    How usnig manuplate the Import and export Key word? and
    how do the clear of those variable?

    HI ,
    For IMPORT Keyword :---
    To retrieve data from the global memory area, use the IMPORT statement.  The most basic form of the IMPORT statement is:
    IMPORT <variable> FROM MEMORY.
    To give the variable a different name in your program from what it is called in the global memory area, use the TO clause.  You must define the local variable name with a DATA statement in your program.  The format is:
    IMPORT <global var> TO <program var> FROM MEMORY.
    As with the EXPORT statement, you can specify multiple variables per statement, and you have the option of specifying which cluster ID you wish to import from.
    After each IMPORT statement, SY-SUBRC is set to indicate whether or not the cluster ID you specified exists (but not whether specific variables were imported specifically).  SY-SUBRC is zero if the cluster exists.
    It is also possible to IMPORT and EXPORT to database tables .
    ABAP memory that is used to store exported data is user and transaction specific, so when passing data between programs in this manner you must make sure that transaction boundaries are not crossed. Otherwise the contents of this memory will get destroyed and will not be available to the importing program.
    For Export Keyword :---
    The EXPORT statement moves data from your program into a global memory area.  The most basic form of the EXPORT statement is:
    EXPORT <variable> TO MEMORY.
    This places the specified variable into a global memory area that another program can later read using the IMPORT statement.
    You may specify multiple fields in the same EXPORT statement.  For example:
    EXPORT KNA1-KUNNR KNA1-BUKRS TO MEMORY.
    You can give variables a different name in the global memory area using the FROM clause.  For example, the following code exports SY-SUBRC and gives it the name RETVAL in the global memory area:
    EXPORT RETVAL FROM SY-SUBRC TO MEMORY.
    You can specify a cluster ID when exporting data to memory.  You can freely choose the name of the cluster ID, which can be up to 32 characters long.  Each cluster ID specifies a particular area in memory.  Each time you EXPORT data to the same cluster ID, all data previously written to that ID is erased.  For example:
    EXPORT SY-SUBRC TO MEMORY ID u2018LJS1u2019.
    Hope u understand
    Thanks
    Shambhu

  • Creating Java's editor with key words bolding!

    I would like to create one of mine Java's Editor. I wish for key word to be bold during the input.
    How can I make this option able? Shell I use JTextPane or JEditorPane and what difference does it make?

    Read this topic
    http://forum.java.sun.com/thread.jsp?forum=57&thread=246206
    best regards
    Stas

Maybe you are looking for

  • Re: Satellite U400-Joo: Number appears instead of letter

    Ive recently bought a Satellite U400 joo laptop. On my keyboard above the number 9 there is a little light with a square with little dots in. It has appeared and now when I type letters numbers now come up . How do I take this feature off??? Example,

  • Many problems with Vista and Itunes--slowing and crashing

    Okay, so itunes has never worked right on my computer. I have a Comaq Persario V6000 with the Centrino duo. These are some of the problems I have with Itunes: 1. will not play initially on start up. I need to close itunes, open it again and then some

  • FB 4.5 upgrade to 4.7

    I have cs 5.5 web premium with FB 4.5 and I red here: https://adobeformscentral.com/?f=aqd5Yq*ONlcAvnasuWDB8w# that I might be able to get free upgrade to FB 4.7 is this right ? I send this document that is in link above but after 2 days there is no

  • How to activate logging in SM58

    Hi All, How to activate logging in SM58 for particular destination. Thanks Rakesh

  • DP91 Error message - unable to complete billing process - incorrect Cost El

    A Goods Issue was created for WBS Element 2008066-MO using the wrong GL Account number (635010)- when we attempted to run DP91 for the Invoice we received a hard stop error. We have no way of backing out the incorrect Good Issue and therefore cannot