皮皮学,免费搜题
登录
搜题
【简答题】
请使用NetBeams打开考生文件夹下的项目Java_3,该项目中的源程序文件Java_3.java提不完整的,请在注释行,//*********Found*********,下一行语句的下划线地方填入正确内容,然后删除下划线,请勿删除注释行或改动其他己有语句内容。存盘时不得改变原有文件的文件名及存放目录。 本题的要求是:完成使程序运行后得如图所示的结果。 import java.awt.*; import java.awt.font.*; import java.awt.geom.*; import javax.swing.*; public class Java_3 { public static void main(String[] args) { FontFrame frame = new FontFrame(); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setVisible(true); } } //*********Found******** class FontFrame ______ JFrame { public FontFrame() { setTitle("沁园春.雪"); setSize(DEFAULT_WIDTH, DEFAULT_HEIGHT); FontPanel panel = new FontPanel(); Container contentPane = getContentPane(); contentPane.add(panel); } public static final int DEFAULT_WIDTH = 300; public static final int DEFAULT_HEIGHT = 200; } //*********Found******** class FontPanel extends ______ { public void paintComponent(Graphics g) { super.paintComponent(g); Graphics2D g2 = (Graphics2D)g; String message = "数风流人物,还看今朝!"; Font f = new Font("隶书", Font.BOLD, 24); g2.setFont(f); FontRenderContext context = g2.getFontRenderContext(); Rectangle2D bounds = f.getStringBounds(message, context); double x = (getWidth() - bounds.getWidth()) / 2; double y = (getHeight() - bounds.getHeight()) / 2; double ascent = -bounds.getY(); double baseY = y + ascent; g2.setPaint(Color.RED); //*********Found******** g2.draw______(message, (int)x, (int)(baseY)); } }
拍照语音搜题,微信中搜索"皮皮学"使用
参考答案:
参考解析:
知识点:
.
..
皮皮学刷刷变学霸
举一反三
【单选题】There is____panda in the zoo.____panda is from China. [     ]
A.
a; A
B.
a; The
C.
the; An
D.
an; The
【判断题】脑磷脂与血液凝固有关,是仅分布于高等动物脑部组织中的甘油磷脂。
A.
正确
B.
错误
【单选题】听力原文: The Giant Panda is also known as the 'Panda Bear', 'Bamboo Bear', or in Chinese as 'Daxiongmao', which means 'large bear cat'. The scientific name means 'black and white cat-footed animal'. As f...
A.
One to three million years ago.
B.
Two to three million years ago.
C.
One to three billion years ago.
D.
Two to three billion years ago.
【简答题】__________ A) Finding out a rhymed word with panda. B) Bringing, fhe poem about panda to an end. C) Adding the name 'Amanda' into a poem. D) Replacing panda with another word.
【简答题】阅读理解 The giant panda is one of the most popular animals in the world. A giant panda can grow up to 1.5       meters long and weigh up to 160kg. People think the giant panda is very lovely. ① So it is ...
【判断题】[专本贯通考试题]含量均匀度检查中,A+2.2S≤L,结果判定为符合规定
A.
正确
B.
错误
【单选题】在含量均匀度检查中.需复试的测定结果是
A.
A+1.80S≤1.50
B.
A+1.80S>0;A+S≤15.0
C.
A+1.45S>5.0
D.
A+1.45S>5.0;A+S≤15.0
E.
A+S>15.0
【简答题】The female panda of the London Zoo and the male panda in Moscow are mentioned to give readers an idea of______.
【简答题】阅读理解。 The giant panda is one of the most popular animals in the world. A giant panda can grow up to 1.5 meters long and weigh up to 160kg. People think the giant panda is very lovely. ①So it is not su...
【判断题】含量均匀度检查中,A+2.2S≤L,结果判定为符合规定
A.
正确
B.
错误
相关题目: