Join Regular Classroom : Visit ClassroomTech

Programming in JAVA

JAVA – codewindow.in

Related Topics JAVA Programing Question 44 How do you display a window in an applet? Answer In Java, you can display a window in an applet using the JFrame class. Here’s an example code snippet: import javax.swing.*; public class MyWindow extends JFrame { public MyWindow() { super(“My Window Title”); setSize(300, 200); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setVisible(true); } }

JAVA – codewindow.in Read More »

JAVA – codewindow.in

Related Topics JAVA Programing Question 24 What is the difference between the getAppletInfo and getParameterInfo method in an applet? Answer getAppletInfo() and getParameterInfo() are methods of the Applet class that are used to provide information about the applet to the browser or applet viewer. getAppletInfo() method returns a string that describes the applet, including its

JAVA – codewindow.in Read More »