Jump to content
Sign in to follow this  
cdR

J Frame..

Recommended Posts

camne ek.. aku x paham la maksud die.. aper beza J Frame ngan frame HTML.

Share this post


Link to post
Share on other sites

camne ek.. aku x paham la maksud die.. aper beza J Frame ngan frame HTML.

they are 2 different things.

A frame, implemented as an instance of the JFrame (in the API reference documentation) class, is a window that typically has decorations such as a border, a title, and buttons for closing and iconifying the window

example

//Ask for window decorations provided by the look and feel.
JFrame.setDefaultLookAndFeelDecorated(true);

//Create the frame.
JFrame frame = new JFrame("This Is A window");

//Set the frame's icon to an image loaded from a file.
frame.setIconImage(new ImageIcon(imgURL).getImage());

www.codedb.org for some simple java codes i've uploaded.

hope this helps.

Edited by da^hype

Share this post


Link to post
Share on other sites

JFrame tu satu ruang utk memaparkan komponen GUI java.... mcm ape yang DaHype terangkan tu..... GUI Java ini juga bleh dipaparkan kepada JApplet...

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...