Sea Bamboo is in the north area of Sichuan Province.()

题目

Sea Bamboo is in the north area of Sichuan Province.()


相似考题
更多“Sea Bamboo is in the north area of Sichuan Province.() ”相关问题
  • 第1题:

    本题的功能是求两个交叉图形的并、减、交和异或。窗口中有4个单选按钮和一个图形面板,面板中有两个交叉的图形,选中其中一个单选按钮,图形面板中以黑色填充的方式显示运算结果。

    import java.awt.*;

    import java.awt.event*+;

    import java.awt.geom.*;

    import java.util.*;

    import javax.swing.*;

    public class java3

    {

    public static void main(String[]args)

    {

    JFrame. frame=new AreaTestFrame();

    frame.setDefaultCloseOperation(JFrame.EXIT_

    ON_CLOSE);

    frame.show();

    }

    }

    class AreaTestFrame. extends JFrame

    {

    public AreaTestFrame()

    {

    setTitle("java3");

    setSize(WIDTH,HEIGHT);

    areal

    =new Area(new Ellipse2D.Double(100,100,

    150,100));

    area2

    =new Area(new Rectangle2D.Double(150,150,

    150,100));

    Container confentPane=getContentpane();

    panel=new

    JPanel()

    {

    public void paintComponent(Graphics g)

    {

    super.paintComponent(g);

    Graphics2D g2=(Graphics2D)g;

    g2.draw(areal);

    g2.draw(area2);

    if(area!=null)g2.fill(area);

    }

    };

    contentPane. add(panel,BorderLayout. CEN-

    TER);

    JPanel buttonPanel=new JPanel();

    ButtonGroup group=new ButtonGroup();

    JRadioButton addButton=new JRadioButton("

    并",false);

    buttonPanel.add(addButton);

    group.add(addButton);

    addButton.addActionListener(new

    ActionListener()

    {

    public void actionPerformed(ActionEvent event)

    {

    area=new Area();

    area.add(areal);

    area.add(area2);

    panel.repaint();

    }

    });

    JRadioButton subtractButton

    =new JRadioButton("减",false);

    buttonPanel.add(subtractButton);

    group.add(subtractButton);

    subtractButton.addActionListener(new

    ActionListener()

    {

    public void actionPerformed(ActionEvent event)

    {

    area=new Area();

    area.add(areal);

    area.subTract(area2);

    panel.repaint();

    }

    });

    JRadioButton intersectButton

    =new JRadioButton("交",false);

    buttonPanel.add(intersectButton);

    group.add(intersectButton);

    intersectButton.addActionListener(new

    ActionListener()

    {

    public void actionPerformed(ActionEvent event)

    {

    area=new Area():

    area.add(areal);

    area.intersect(area2);

    panel.repaint();

    }

    });

    JRadioButton exclusiveCIrButton

    =new JRadioButton(“异或”,false);

    buttonPanel.add(exelusiveOrButton);

    group.add(exclusiveOrButton);

    exclusiveOrButton.addActionListener(new

    ActionListener()

    {

    public void actionPerformed(ActionEvent event)

    {

    area=new Area();

    area.add(areal);

    area.exclusiveor(area2);

    panel.repaint();

    }

    });

    contentPane.add(buttonPanel,BorderLayout.

    NORTH);

    }

    private JPanel panel;

    private Area area;

    private Area areal;

    private Area area2;

    private static final int WIDTH=400;

    private static final int HEIGHT=400;

    }


    正确答案:
    第1处:ContainercontentPane=getContentPane()第2处:area.subtract(area2)第3处:area.exclusiveor(area2)【解析】第1处用getContentPane()获得内容面板;第2处表示从area形状中减去area2形状;第3处将area设置为area形状和area2形状的组合,并减去相交部分。

  • 第2题:

    69、Bamboo在英语中几乎没有什么文化内涵。


  • 第3题:

    Bamboo在英语中几乎没有什么文化内涵。


    A

  • 第4题:

    If a weather bulletin shows the center of a low pressure system to be 100 miles due east of you, what winds can you expect in the Southern Hemisphere? ______.

    A.South-southwesterly

    B.North-northwesterly

    C.South-southeasterly

    D.North-northeasterly


    正确答案:A
    假如你的气象报告显示有一低压区域的中心正好在你船位置以东100海里,在南半球你将预计是什么风?南到西南风。

  • 第5题:

    nausea晕船中的词根-sea-的涵义就是“sea海”。


  • 第6题:

    7、nausea晕船中的词根-sea-的涵义就是“sea海”。