lw3306031 lw3306031
我很好
关注数: 22 粉丝数: 51 发帖数: 6,735 关注贴吧数: 18
那些感人的爱情故事【连载】 谁是谁的谁,谁与谁 相逢 —— 大学一段有缘无份的 情感记录 题记: 人生就是在不停的 相识与 告别,有太多的难以割舍,有太多的 美好 记忆。也许很多 东西 努力了,没有得到;很多东西没有 珍惜而 失去。每个人的 故事是 永远都无法复制的,所以我们必须学会珍惜。有缘无份的相识——尤显得格外 美丽! 大学相识,有缘无份 二千年庚辰年,一个跨世纪的年代,风和静相识于美丽的海滨城市YT商学院兵乓球场上,风工程系本科大三,静社科系专科大一。 两个原本 陌生的人由于某种际遇相识,一切是那么美丽!随后的日子,风和静 一起去打球,一起去海边,一起去食堂,一起图书馆,一起上自习。 这样的 时间持续不长,在一个雨天的傍晚,应静的委托,她寝室的琼向风传话,问风是否 愿意让静做他的女 朋友,风非常 开心:当然愿意, 希望 可以和静长久相处。 然而,第二天,风找静,静 选择了回避,虽然风接下来无论多努力,通过捎信,传话等,风都无法见到静。风一直认为应该是琼传话造成了 误会。 缘分毫无预期的嘎然而止,没有任何预兆。 不再有静的日子,风很 失落,琼 开始经常去自习室找风,写信给风,送风兵乓球拍,但风燃不起任何激情。 随后,风和静各自有了 自己的男女朋友,见面也不再打招呼,复归了陌生。再随后,各自大学 毕业,风回到了南方,静留在了QD。 十年之中,静和风通过共同的好友松关注对方,松 告诉风,静很关注你,两人 电话的时候都会打听风的近况,风也 知道了静在QD亘丰银行 工作。期间,风和静有通过电话和 手机短信,但屈指可数。 十年相聚,感触万千 壬辰年十一月月二十一日下午,阴雨天,风在 公司,接到静的手机短信,说下午4点飞机到达风工作的城市XM,希望可以帮忙订当日晚上机票去WYS,有急事要见客户。风去机场接机,见到了自毕业后再也未谋面的静。风说静还是那短头发,还是那小虎牙,就是看起来高点;静说是因为穿了高跟鞋的缘故。静说风没有任何变化,还是跟 学校一样。
【精】经典就是经典 import javax.swing.*; import java.awt.*; import java.awt.event.*; public class lianliankan implements ActionListener { JFrame mainFrame; //主面板 Container thisContainer; JPanel centerPanel,southPanel,northPanel; //子面板 JButton diamondsButton[][] = new JButton[6][5];//游戏按钮数组 JButton exitButton,resetButton,newlyButton; //退出,重列,重新开始按钮 JLabel fractionLable=new JLabel("0"); //分数标签 JButton firstButton,secondButton; //分别记录两次被选中的按钮 int grid[][] = new int[8][7];//储存游戏按钮位置 static boolean pressInformation=false; //判断是否有按钮被选中 int x0=0,y0=0,x=0,y=0,fristMsg=0,secondMsg=0,validateLV; //游戏按钮的位置坐标 int i,j,k,n;//消除方法控制 public void init(){ mainFrame=new JFrame("JKJ连连看"); thisContainer = mainFrame.getContentPane(); thisContainer.setLayout(new BorderLayout()); centerPanel=new JPanel(); southPanel=new JPanel(); northPanel=new JPanel(); thisContainer.add(centerPanel,"Center"); thisContainer.add(southPanel,"South"); thisContainer.add(northPanel,"North"); centerPanel.setLayout(new GridLayout(6,5)); for(int cols = 0;cols < 6;cols++){ for(int rows = 0;rows < 5;rows++ ){ diamondsButton[cols][rows]=new JButton(String.valueOf(grid[cols+1][rows+1])); diamondsButton[cols][rows].addActionListener(this); centerPanel.add(diamondsButton[cols][rows]); } } exitButton=new JButton("退出"); exitButton.addActionListener(this); resetButton=new JButton("重列"); resetButton.addActionListener(this); newlyButton=new JButton("再来一局"); newlyButton.addActionListener(this); southPanel.add(exitButton); southPanel.add(resetButton); southPanel.add(newlyButton); fractionLable.setText(String.valueOf(Integer.parseInt(fractionLable.getText()))); northPanel.add(fractionLable); mainFrame.setBounds(280,100,500,450); mainFrame.setVisible(true); } public void randomBuild() { int randoms,cols,rows; for(int twins=1;twins<=15;twins++) { randoms=(int)(Math.random()*25+1); for(int alike=1;alike<=2;alike++) { cols=(int)(Math.random()*6+1); rows=(int)(Math.random()*5+1); while(grid[cols][rows]!=0) { cols=(int)(Math.random()*6+1); rows=(int)(Math.random()*5+1); } this.grid[cols][rows]=randoms; } } } public void fraction(){ fractionLable.setText(String.valueOf(Integer.parseInt(fractionLable.getText())+100)); } public void reload() { int save[] = new int[30]; int n=0,cols,rows; int grid[][]= new int[8][7]; for(int i=0;i<=6;i++) { for(int j=0;j<=5;j++) { if(this.grid[i][j]!=0) { save[n]=this.grid[i][j]; n++; } } } n=n-1; this.grid=grid; while(n>=0) { cols=(int)(Math.random()*6+1); rows=(int)(Math.random()*5+1); while(grid[cols][rows]!=0) { cols=(int)(Math.random()*6+1); rows=(int)(Math.random()*5+1); } this.grid[cols][rows]=save[n]; n--; } mainFrame.setVisible(false); pressInformation=false; //这里一定要将按钮点击信息归为初始 init(); for(int i = 0;i < 6;i++){ for(int j = 0;j < 5;j++ ){ if(grid[i+1][j+1]==0) diamondsButton[i][j].setVisible(false); } } } 文章转自Java中文网:http://tieba.baidu.com/mo/q/checkurl?url=http%3A%2F%2Fwww.javaweb.cc%2Fother%2Fcode%2F022116.shtml&urlrefer=6cf00cde642a200f5eed891b478f290f
首页 1 2 3 4 下一页