单选题在JPanel中绘图应覆盖哪个方法()Apaint(Graphicsg)BpaintComponent(Graphicsg)Cprint(Graphicsg)Drepaint(Rectangler)
单选题
在JPanel中绘图应覆盖哪个方法()
A
paint(Graphicsg)
B
paintComponent(Graphicsg)
C
print(Graphicsg)
D
repaint(Rectangler)
参考解析
解析:
暂无解析
相关考题:
JPanel添加JLabel无显示 jpanel.add("newJLabel()");可以显示但是换成:JLabeljl=newJLabel();jpanel.add(jl);就不可以显示了谁能给我讲讲其中的原因呀,谢谢!
下列说法哪个是正确的?()A、JFrame,JPanel,JApplet和JButton四种组件都属于容器组件B、JButton和JTextField都可用ActionListener接口实现事件处理C、一个面板(JPanel) 不能被加入到另一个面板(JPanel)中D、在BorderLayout中,添加到NORTH区的两个按钮将并排显示
在JPanel中绘图应覆盖哪个方法()A、paint(Graphicsg)B、paintComponent(Graphicsg)C、print(Graphicsg)D、repaint(Rectangler)
单选题下列说法哪个是正确的?()AJFrame,JPanel,JApplet和JButton四种组件都属于容器组件BJButton和JTextField都可用ActionListener接口实现事件处理C一个面板(JPanel) 不能被加入到另一个面板(JPanel)中D在BorderLayout中,添加到NORTH区的两个按钮将并排显示
单选题在JPanel中绘图应覆盖哪个方法()Apaint(Graphicsg)BpaintComponent(Graphicsg)Cprint(Graphicsg)Drepaint(Rectangler)