Skip to main content

Posts

Showing posts with the label Java

Navigating the Storm: Common Mistakes People Make During Board Exams

Common Mistakes People Make During Board Exams Introduction: Board exams are a pivotal moment in a student's academic journey, often seen as the gateway to future opportunities. However, the pressure and anxiety associated with these exams can lead individuals to make mistakes that might jeopardize their performance. In this blog, we will explore some common mistakes people tend to make during board exams and discuss strategies to overcome these pitfalls. Procrastination: The Silent Saboteur One of the most prevalent mistakes students make during board exams is procrastination. Delaying study sessions, leaving topics for the last minute, and underestimating the amount of time required for preparation can lead to a last-minute cramming frenzy. Overcoming procrastination involves effective time management, setting realistic goals, and maintaining a consistent study schedule. Ignoring Revision: The Memory Mirage Many students focus solely on absorbing new information and neglect th

Q:Question 2: Using FlowLayout Manager, write a program that meets the following requirements (see figure below)• Create a frame and set its layout to FlowLayout • Create 2 panels and add them to the frame. • Each panel contains three buttons. The panel uses FlowLayout.

Q:Question 2: Using FlowLayout Manager, write a program that meets the following requirements (see figure below): • Create a frame and set its layout to FlowLayout • Create 2 panels and add them to the frame. • Each panel contains three buttons. The panel uses FlowLayout.  Code : import javax.swing.*; import java.awt.*; import java.awt.FlowLayout;  class swingex { public static void main (String args[])  {  JFrame f = new JFrame ();  JPanel p1 =new JPanel();  JPanel p2 =new JPanel();    p1.setBounds(100,100,150,150);  p2.setBounds(300,100,150,150);  JButton b1 = new JButton ("welcome");  JButton b2 = new JButton ("hello");  JButton b3 = new JButton ("open");  JButton b4 = new JButton ("click");  JButton b5 = new JButton ("done");  JButton b6 = new JButton ("ok");  b1.setBounds(50,10,50,50);  b2.setBounds(50,60,50,50);  b3.setBounds(50,80,50,50);  b4.setBounds(50,70,50,50);  b5.setBounds(50,90,50,50);  b6.setBounds(50,50,50,5