问题 问答题 简答题

社区与地方圣地活动有何特征?

答案

参考答案:社区与地方圣地活动大都有以下特征:一是对神仙、圣贤所在地的崇拜:由祭祀活动而形成庙会。祭祀活动有各式各样带有表演性的仪式,由各社区民间的朝圣组织承担,约定俗成,定期举行二是交换农副产品:地方圣地活动不仅仅是庆典祭祀,它往往和商品交换的集市结合在一起,一道朝圣,一道购物,共同参与,使大家在思想上结成一体。三是赌胜:如触摸寺庙某一装饰性建筑物以测运气之好坏,这是一种带有信仰色彩的游戏性赌胜败活动。四是吃喝:庙会上的饮食多为地方传统小吃,有特色且物美价廉。五是娱乐:除观看祭祀仪式带有娱乐性外,庙会往往要酬神唱戏或民间组成的舞蹈活动的赛会,很热闹。

问答题
问答题

【说明】
本程序通过移动滑动条修改颜色RGB值,从而控制颜色。程序中有一个面板、3个标签和3个滑动条,标签和滑动条一一对应,分别对应三原色红、绿、蓝,任意拖动其中的一个滑动条,所对应的颜色值就会发生变化,面板的颜色也会发生对应的变化,如下图所示,滑动条值的范围是0~255。


【Java代码】
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class simple extends JFrame implements AdjustmentListener
public simple()
setTitle("simple");
setSize(300, 200);
addWindowListener(new WindowAdapter()
public void windowClosing( (1) )
System.exit(0);

);
Container contentPane=getContentPane();
JPanel p= (2) ;
p.setLayout(new GridLayout(3, 2));
p.add(redLabel=new JLabel("Red 0"));
p.add(red=new JScrollBar(Adjustable. HORIZONTAL, 0, 0, 0, 255));
red.setBlocklncrement(16);
red.addAdjustmentListener(this);
p.add(greenLabel= (3) ("Green 0"));
p.add(green=new JScrollBar(Adjustable.HORIZONTAL 0, 0, 0, 255));
green setBIocklncrement(16);
green.addAdjustmentListener(this);
p.add(blueLabel=new JLabel("Blue 0"));
p.add(btue=new JScrollBar(Adjustable. HORIZONTAL, 0, 0, 0, 255));
blue,setBIocklncrement(16);
blue.addAdjustmentListener(this);
contentPane.add(p, "South");
colorPanet=new JPanel();
colorPanet.setBackground(new Color(0, 0, 0));
contentPane.add( (4) ,"Center");
public void adjustmentValueChanged(AdjustmentEvent evt)
redLabel.setText("Red"+red.getValue());
greenLabel.setText("Green"+green.getValue());
blueLabel.setText("Blue"+blue.getValue());
coiorPanel.setBackground(new Color(red.getValue(), green.getValue(), blue.getValue()));
colorPanel.repaint();

public static void main(String[] args)
JFrame f= (5) ;
f.show();

private JLabel redLabel;
private JLabel greenLabel;
private JLabel blueLabel;
private JScrollBar red;
private JScroilBar green;
private JScrollBar blue;
private JPanel colorPanel;