Results 1 to 4 of 4

Thread: JGlassPane

  1. #1
    pkumar85 is offline Member
    Join Date
    Nov 2008
    Posts
    3
    Rep Power
    0

    Default JGlassPane

    Hi

    I need to use JGlassPane to implement a link to a website over a defined area in each frame of the video i am playing. I have googled it but i havent been able to find nething on how to use JGlassPane aside from its definition. The JGlassPane API docs also don't seem to exist. Can anyone point me to a good source?

    Thanks
    Pavan

  2. #2
    Nicholas Jordan's Avatar
    Nicholas Jordan is offline Senior Member
    Join Date
    Jun 2008
    Location
    Southwest
    Posts
    1,018
    Rep Power
    8

    Default

    Java Code:
        /**
         * Returns the glassPane object for this applet.
         *
         * @see #setGlassPane
         * @see RootPaneContainer#getGlassPane
         */
        public Component getGlassPane() { 
            return getRootPane().getGlassPane(); 
        }
    unpack the sources.
    Introduction to Programming Using Java.
    Cybercartography: A new theoretical construct proposed by D.R. Fraser Taylor

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,188
    Rep Power
    19

    Default

    You can write your own classes, but you can't invent API classes. If you had searched the net for "java glass pane" you would have found plenty of relevant material.

    For future reference:
    Java Platform SE 6

    As long as you're using Java 1.6, if the class isn't there it doesn't exist in the standard JDK. Simple as that.

    db

  4. #4
    Nicholas Jordan's Avatar
    Nicholas Jordan is offline Senior Member
    Join Date
    Jun 2008
    Location
    Southwest
    Posts
    1,018
    Rep Power
    8

    Default

    Eh pumkin, let me take some of the heat for ya:

    I googled for several minutes before I figured out ( as Darryl states ) but if you do not see a class that does what you want - do not overlook writing your own class.

    I have seen several extremely good utilities writen this way + extremely good sample code can come from this.
    Introduction to Programming Using Java.
    Cybercartography: A new theoretical construct proposed by D.R. Fraser Taylor

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •