Getting Compilation error in the given code,

Hello:
If i use setResizable(false), then maximization option will be disabled,but i want to do close and minimization option will be disabled, then what methods shall i use? Although you have given setClosable(false) and setIconifiable(false), but both methods are not working properly, plz set the methods in the given code or plz give the proper code what i need to use.
I shall be highly grateful to you, if you kindly help me.
import java.awt.*;
import javax.swing.*;
public class Test{
          public static void main(String args[]){
               SampleFrame frame = new SampleFrame();
                    frame.setDefaultCloseOperation(3);
                    frame.setVisible(true);
class SampleFrame extends JFrame{
          public SampleFrame(){
               setSize(width,height);
               setResizable(false);
               setClosable(false); // getting error
               setIconifiable(false); // getting error
public static final int width = 300;
public static final int height = 200;
}

I'd post the simple answer, but the reply button never seems to work on your posts.

Similar Messages

  • HT1539 Why Do I keep getting an error message telling me "Code redemption is temporarily unavailable. Please try again later." whenever I try to redeem my digital copy code for "Oz The Great and Powerful"?

    Why Do I keep getting an error message telling me "Code redemption is temporarily unavailable. Please try again later." whenever I try to redeem my digital copy code for "Oz The Great and Powerful"?

    I had the same problem so I decided to try going to website on the back. (DisneyOzMovieandOffers.com). It will take you to a page that says to redeem code, enter the code that is given to you and click enter. It will give you options of where you would like to download it from. Click iTunes and it will give you the correct code to download the movie from iTunes.

  • Why do I get an error when the code is working?

    Hi guys,
    I get an error on the 'employeeList[i].id' and 'employeeList[i].label'.
    Though everything works when I click the 'Search Button' (all text fields populate with the correct data).... but I still get an 1010 error.
    Any idea's why?
    search_txt = input textfield
    name_txt = dynamic textfield
    id_txt = dynamic textfield
    TypeError: Error #1010: A term is undefined and has no properties.
    var employeeList:Array = new Array();
    // array populated in another function using
    // employeeList.push({label:employeed[i], id:employeed[i+1]});
    function search(e:MouseEvent):void{
        for(var i:int=0; employeeList.length; i++){
            if(search_txt.text == employeeList[i].id){
                name_txt.text = employeeList[i].label;
                id_txt.text = employeeList[i].id;
    search_mc.addEventListener(MouseEvent.MOUSE_UP,search,false,0,true);
    Thanks,
    Sky

    Probably because you have an error... when does your loop stop with what you have?
    for(var i:int=0; employeeList.length; i++)

  • Flash CC on W7 . By importing fl.controls like 'import fl.controls.Button';  I get compilation error 1172. Solution?

    Flash CC on W7 . By importing fl.controls like 'import fl.controls.Button';  I get compilation error 1172. Solution?

    Can you show the relevant code and the complete error message?  Before running go into your Flash Publish Settings and choose the option to Permit Debugging - it can help by adding information to the error message.

  • Keep getting compile error. dunno why.

    i keep getting compile error that Compilation errors for PACKAGE BODY NRMS_INTERFACE.PKGNDW
    Error: PLS-00113: END identifier 'BOOLISDATAAVAILABLE' must match 'PKGND' at line 1, column 29
    Line: 3309
    Text: end boolIsDataAvailable;
    function boolIsDataAvailable(o_errorcode OUT NUMBER,
    o_errortext OUT VARCHAR2) return boolean is
    DataAccess number;
    boolResult boolean;
    begin
    begin
    select DATA_ACCESS
    into DataAccess
    from INTERFACEPARAMETER
    where NUMBER_VALUE = 0;
    boolResult := true;
    exception
    WHEN OTHERS THEN
    -- coder assumes that any exceptions here will lead to data not being available.
    boolResult := false;
    end;
    return boolResult;
    end;
    end boolIsNDWAvailable;

    Argh....again the importance of formatting and indentation is proved...
    In other words: the tag
    before and after samples.
    Thanks for the followups ;)
    +it's past 21.00/09.00PM over here, so already a while no more coffee for me+
    +Yes, that's a disclaimer+ ;)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • I am having a issue installing Adobe Acrobat XI.  I am running Windows 8.1. When  go to install it gets an error.  The error is with transform in registry and will not install product. I am looking at how I can fix this registry problem.

    I am having a issue installing Adobe Acrobat XI.  I am running Windows 8.1. When  go to install it gets an error.  The error is with transform in registry and will not install product. I am looking at how I can fix this registry problem.
    I have tried to uninstall all Abode Acrobat installations but one file remains and refuses to be uninstalled. It gives me this error : Error applying Transforms . Verify that specified paths are valid. It was installed on Sept 18 2014.  I have downloaded a Transform update but it tells I do not have a Adobe Acrobat product installed. 

    Hi all,
    Sylonious, did you manage to sort this problem out? I have been experiencing similar problems. I think my problem was because I had many different versions of JDKs. I have done a complete re-install. I would be really grateful to you (and anyone else) for help with this problem.
    I have re-installed JSDK1.4.2_03, set the "path" variable to "C:\JSDK1.4.2_03".
    When I compile using "javac" I get an error saying "javac" is not recognised.
    When I compile using "C:\j2sdk1.4.2_03\bin\javac Freq.java" no error is thrown.
    Every time I try to run a java file, I always get the NoClassDefFound error. When run with the -verbose option, files are loaded from C:\Program Files\Java\j2re1.4.2_03\bin - is this correct?
    I have removed all previous references to java in the registry editor.
    Please help !
    Regards,
    Vipul

  • On some of my files there is a ! in front of it, if I try to play the song, I get an error message; "The song "_____" could not be used, because the original file could not be found. Would you like to locate it?" Then when I click "Locate", I get nothing.

    I'm really dumbfounded on this one and it's driving me bonkers!!!! On some of my music files there is a ! in front of it, if I try to play the song, I get an error message; "The song "_____" could not be used, because the original file could not be found. Would you like to locate it?"
    This began to happen when Chuck made playlists2burn on2CD-and then he would delete the playlist; sending all the song files into oblivion. Certain songs have a ! right next to the file name, and as I stated before, i get that error message:
    "The song "_____" could not be used, because the original file could not be found. Would you like to locate it?"
    So I click on "Locate". No help. I get a menu with folders that say "catroot" and other folders which names I cannot remember, but I scroll PAST the file folders, & it's just a bunch of ".DLL" files.....I don't understand what any of the names of the folders mean...it's frustr8ing-coz this is my 2nd iTouch, my 1st one got stolen & I can't afford2buy my music back at this time & i NEVER before had a single problem with losing song file locations.
                  Is there anyone out there who has been through this frustrating game of chasing your tail?....<that's how I feel>
    If so I would be ever so gr8ful if maybe someone with the knowledge would be so kind as 2 tell me how/where 2 retrieve these songs & how to put everything back where it belongs, I would be 4ever gr8ful !!!
    I can't afford 2 replace the songs just like I'm unable 2 buy back my old music from my stolen iTouch....man that was an awesome collection-someday I'll be able 2 afford 2 do that & I would like 2 have all the new music that I paid 4 but cannot find when I got my new iTouch....that would just be  wonderful.
                 I hope someone sees this post that can help me retrieve these files....losing $100.00 of iTunes is a REAL BUMMER!!!!!!
                                                      ThanQ SO very much!
                                                                             [email protected] or [email protected] or [email protected] .
                                                                                               You can also find me on Facebook, my given name is Tiffinie Trimmer, &
                                                                                                that's my Facebook "handle".    ThanQ 4 taking the time 2 read all of this!
                                                                                                hope 2 get a reply someday....I'll B checking all my emails & my Facebook, as well
                                                                                                as marking this page in my FAVORITES so I can find it fast! Take Care!!!

    I was not complete clear.
    Since you never changed the settings in the advanced section of iTunes preferecnes, you have to chech that your music is really in the location setted in the folders reported in the advanced section.  If not you have 2 ways: reset the position of this folders or in the actual disk organisation or in the pointing on the preferences.
    If you press the reset button you just give to itunes its default setting as for the position of the music files: probably this will be a good choice if you have never changed any default preference.
    But before I would check the folders and see if the songs are really there
    In my iTune I have this, and I believe it is the default.
    Users/YOURHOMEFOLDERNAME/Music/iTunes/iTunes Music

  • HT1926 when i try to install update i get this error message  the feature you are trying to use is on a network resource that is unavailable   any ideas

    every time i try to update itunes i get this error message    The feature you are trying to use is on a network resource that is unavailable    then asks me to find the folder containing the instalation package ITunes.msi

    (1) Download the Windows Installer CleanUp utility installer file (msicuu2.exe) from the following Major Geeks page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page):
    http://majorgeeks.com/download.php?det=4459
    (2) Doubleclick the msicuu2.exe file and follow the prompts to install the Windows Installer CleanUp utility. (If you're on a Windows Vista or Windows 7 system and you get a Code 800A0046 error message when doubleclicking the msicuu2.exe file, try instead right-clicking on the msicuu2.exe file and selecting "Run as administrator".)
    (3) In your Start menu click All Programs and then click Windows Install Clean Up. The Windows Installer CleanUp utility window appears, listing software that is currently installed on your computer.
    (4) In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove", as per the following screenshot:
    (5) Quit out of CleanUp, restart the PC and try another iTunes install. Does it go through properly this time?

  • Getting an error in the "Partner Link" when specifying an https-base wsdl

    Hi friends,
    this is Hari. I'm getting an error in the "Create Partner Link" dialogue when specifying an https-based wsdl url. The non-ssl wsdl url works fine, but I need it to work for ssl (https). The specific errror reads:
    Error:Failed to read wsdl file at "https://serverstuff/webservice.cfc?wsdl", caused by: javax.net.ssl.SSLHandshakeException. :sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    i need to invoke secure service(https).what should i do for taht?
    Regards,
    hari

    http://orasoa.blogspot.com/2007/09/compile-error-bpel-against-ssl.html
    marc

  • Exact fetch returns more than requested number of rows oracle error ; unable to find where exactly throwing error in the below code.

    hi i am receiving "exact fetch returns more than requested number of rows oracle error". but i am not able to locate the error in the below code. Any help would be appreciated!!!
    CREATE OR REPLACE PROCEDURE load_scene_collection_item (
    --pdname                                  VARCHAR2,
    -- LOCATION TO ADD/CHANGE below!!!
    pITEM_TYPE_ID                      INTEGER,
    pSCENE_COLLECTION_ID        INTEGER,
    pCOLLECTION_ITEM_NAME     VARCHAR2,
    pCOLLECTION_ITEM_DESC      VARCHAR2,
    pDEFAULT_COORD_X      NUMBER,
    pDEFAULT_COORD_Y      NUMBER,
    pDEFAULT_COORD_Z      NUMBER,
    pDEFAULT_WIDTH            NUMBER,
    pDEFAULT_HEIGHT            NUMBER,
    pDEFAULT_ROTATION      INTEGER,
    pDEFAULT_ALPHA            INTEGER,
    pfname                                 VARCHAR2)    IS
    src_file BFILE;
    dst_file BLOB;
    lgh_file BINARY_INTEGER;
    BEGIN
    src_file := bfilename('BUSINESSBLOBSIMAGES', pfname);
    -- insert a NULL record to lock
    Insert into SCENE_COLLECTION_ITEM
       ( ITEM_TYPE_ID,
       SCENE_COLLECTION_ID,
       COLLECTION_ITEM_NAME,
       COLLECTION_ITEM_DESC,
        COLLECTION_ITEM_IMAGE,
       DEFAULT_COORD_X,
       DEFAULT_COORD_Y,
       DEFAULT_COORD_Z,
       DEFAULT_WIDTH,
       DEFAULT_HEIGHT,
       DEFAULT_ROTATION,
       DEFAULT_ALPHA,
        CREATE_USER,
        CREATE_DATE)
    Values    ( pITEM_TYPE_ID, pSCENE_COLLECTION_ID, pCOLLECTION_ITEM_NAME, pCOLLECTION_ITEM_DESC, EMPTY_BLOB(),   
       pDEFAULT_COORD_X,
       pDEFAULT_COORD_Y,
       pDEFAULT_COORD_Z,
       pDEFAULT_WIDTH,
       pDEFAULT_HEIGHT,
       pDEFAULT_ROTATION,
       pDEFAULT_ALPHA,  
    sys_context('USERENV', 'OS_USER'), 
    sys_extract_utc(systimestamp))
    RETURNING COLLECTION_ITEM_IMAGE INTO dst_file;
    -- LOCATIONs(2) TO ADD/CHANGE above!!!
    -- lock record
    SELECT COLLECTION_ITEM_IMAGE
    INTO dst_file
    FROM SCENE_COLLECTION_ITEM
    WHERE ITEM_TYPE_ID     = pITEM_TYPE_ID
    AND SCENE_COLLECTION_ID = pSCENE_COLLECTION_ID
    AND COLLECTION_ITEM_NAME= pCOLLECTION_ITEM_NAME
    AND COLLECTION_ITEM_DESC= pCOLLECTION_ITEM_DESC
    AND    pDEFAULT_COORD_X = DEFAULT_COORD_X
    AND   pDEFAULT_COORD_Y  = DEFAULT_COORD_Y
    AND   pDEFAULT_COORD_Z  = DEFAULT_COORD_Z
    AND   pDEFAULT_WIDTH    = DEFAULT_WIDTH
    AND   pDEFAULT_HEIGHT   = DEFAULT_HEIGHT
    AND   pDEFAULT_ROTATION = DEFAULT_ROTATION
    AND   pDEFAULT_ALPHA    = DEFAULT_ALPHA
    FOR UPDATE;
    -- LOCATION TO ADD/CHANGE above!!!
    -- open the file
    dbms_lob.fileopen(src_file, dbms_lob.file_readonly);
    -- determine length
    lgh_file := dbms_lob.getlength(src_file);
    -- read the file
    dbms_lob.loadfromfile(dst_file, src_file, lgh_file);
    -- update the blob field
    UPDATE SCENE_COLLECTION_ITEM
    SET COLLECTION_ITEM_IMAGE = dst_file
    WHERE ITEM_TYPE_ID     = pITEM_TYPE_ID
    AND SCENE_COLLECTION_ID = pSCENE_COLLECTION_ID
    AND COLLECTION_ITEM_NAME= pCOLLECTION_ITEM_NAME
    AND COLLECTION_ITEM_DESC= pCOLLECTION_ITEM_DESC
    AND    pDEFAULT_COORD_X = DEFAULT_COORD_X
    AND   pDEFAULT_COORD_Y  = DEFAULT_COORD_Y
    AND   pDEFAULT_COORD_Z  = DEFAULT_COORD_Z
    AND   pDEFAULT_WIDTH    = DEFAULT_WIDTH
    AND   pDEFAULT_HEIGHT   = DEFAULT_HEIGHT
    AND   pDEFAULT_ROTATION = DEFAULT_ROTATION
    AND   pDEFAULT_ALPHA    = DEFAULT_ALPHA
    -- LOCATION TO ADD/CHANGE above!!!
    -- close file
    dbms_lob.fileclose(src_file);
    END load_scene_collection_item;
    Thanks in advance!!!!

    Hi PaulHorth,
    Thanks for the quick reply.
    Actually, i am getting  error while updating the records.
    below is the error message:
    Error starting at line 1 in command:
    exec load_scene_collection_item(3,15,'2 Lane 4way Stop','4 Way Stop Intersection with 2 lanes in each direction',0,0,0,400,517,0,1,'2 Lane 4way Stop.PNG');
    Error report:
    ORA-01422: exact fetch returns more than requested number of rows
    ORA-06512: at "DP_OWNER.LOAD_SCENE_COLLECTION_ITEM", line 55
    ORA-06512: at line 1
    01422. 00000 - "exact fetch returns more than requested number of rows"
    *Cause:    The number specified in exact fetch is less than the rows returned.
    *Action:   Rewrite the query or change number of rows requested

  • Getting Compilation error when used SET or MULTISET operator on nested tabl

    Dear All,
    I am getting Compilation error when used SET or MULTISET operator on nested tables inside a procedure.
    This is working fine in other DB installations of 10g but does not work in another 10g DB.
    it says "wrong number of parameter or datatype used in SET"
    Can any one suggest what went wrong here?
    Thanks in advance.

    Can any one suggest what went wrong here?Only if you would post the query and Oracle versions on both databases.
    Besides, this forum deals with issues in Oracle product installation. So post this query in SQL PL/SQL forum for better response.

  • How to notify() the main method in the given code snippet

    consider the given code snippet
    code
    public class WaitTest {
    public static void main(String [] args) {
    System.out.print("1 ") ;
    synchronized(args) {
    System.out.print("2 " ) ;
    try {
    args.wait();
    catch(InterruptedException e){}
    System.out.print("3 ");
    code
    Here since there are no threads to notify the main()method the statement System.out.print("3 "); never gets executed.And i cannot use the non static notify() from a static context.In this case how will I notify the main() method.

    A thread can only do one thing at a time.
    It cannot be waiting and notifying at the same time.
    notify only works if another thread is waiting.
    wait() only stops if another thread notify/notifyAll() it at the same time.

  • I am trying to test an 810 an am getting an error in the business message

    I am trying to test an 810 an am getting this error in the business message report.
    Machine Info: ("Client host name")
    Failed guideline.
    Version: Oracle Application Server Integration B2B, Release 10.1.2, Build dev_B2B_10.1.2.3.0_SOLARIS_RELEASE.

    Hi Anuj,
    Thanks for responding.
    Its an outbound 810. There are no internal properties in the payload. The error message report states the following
    Machine Info: (oracle.lhdottie.com)
    Failed guideline.
    error code is AIP-51505.
    There are no <Internal-Properties> in the xml payload.
    Is there anything else I need to look at?
    Vijay

  • I am trying to sync my 160gb, but get an error message "the ipod cannot be synced. a duplicate file name was specified. it only syncs a small % of music.  any clues?

    i am trying to sync my 160gb, but get an error message "the ipod cannot be synced. a duplicate file name was specified. it only syncs a small % of music.  any clues?

    Hmm.  It could be an indication or a damaged or dying hard drive.  I would recommend doing a disk diagnostic on the iPod's HD using the instructions given by turingtest2 in this older thread.  He also covers what the resulting numbers indicate.
    https://discussions.apple.com/thread/3784647?start=0&tstart=0
    If necessary, post the resultings numbers and we can verify what the next steps to take.
    B-rock

  • Using package getting compiler error

    I have a project at c:\myproject
    I have a file name as b.java in c:\myproject
    I have a sub-directory named as com\sski\ in c:\myproject
    In that subdirectory there is a file a.java (package of a.java is com.sski) which is using class b.
    I have compiled b.java successfully, But I am unable to compile a.java
    I am getting compiler error cannot resolve symbol
    Sourece of a.java is as follow package com.sski;
    //import b;
    public class  a
         public static void main(String[] args)
              b obj = new b();
              System.out.println("Inside a.java: " +obj);
    }i have even tried using import b;
    then i get error as '.' expected
    how do i successfully compile a.java, where do i place b.java.
    i dont want to put b.java inside any package.

    b.class is not being found in your classpath. If you are compiling in C:\myproject, b.class should end up in C:\myproject, since you are not putting it in a package (which, IMO, is a bad idea). This assumes that you are not using the -d <destination> command line option in the javac command line.
    To compile a.java, you need to use the -classpath command line option, as follows:
    javac -classpath C:\myproject a.java
    or
    javac -classpath . a.java (note the dot).
    � {�                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Maybe you are looking for

  • My laptop has blocked itunes, how can i unblock and reinstall?

    Itunes wouldn't work so i uninstalled. When i tried reinstalling it said that itunes was blocked

  • Import table with a different table name!

    Dear All, I have backup all users in my database using exp command. Now i want to import 2 tables from this backup, as tables already exists i want to import table with different table name. Is it possible with exp command? If not what else is the so

  • Table TKZU3 Enhancement in SPRO

    Hi, I have a request for enhancement in SPRO: Customizing: Controlling/Product cost controlling/Product cost planning/Basic settings for material costing/Overhead/Define costing sheets I need to add a new column for Plant to table TKZU3. Can someone

  • Special characters in Application Integrator

    We used the Application Integrator component to join Documentum to the Portal, everything is working OK, but if the user type a password with the special characters (&%$=+) the app. comes down, we think it is because we get the password with the func

  • Upgrade from 12.1.1 to 12.1.3

    Hi, I have installed 12.1.1 on my RHEL4 32 bit server. While upgrade to 12.1.3 as part of Database preparation guidelines, I need to apply below patches * 7684818 * 8199107 o pre-req 8833297 * 8639653 * 8940108 * 9026927 * 9066130 * 9554727 * 9743057