Chapter 22: Problem 3
Find the error(s) in each of the following and explain how to correct the error(s). a) JMenubar b; b) mySlider = JSlider(1000, 222, 100, 450); c) gbc.fill = GridBagConstraints.NORTHWEST; // set fill d) // override to paint on a customized Swing component public void paintcomponent(Graphics g) { g.drawString("HELLO", 50, 50); } e) // create a JFrame and display it JFrame f = new JFrame("A Window"); f.setVisible(true);
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.