zoukankan      html  css  js  c++  java
  • 进度条

    http://www.blogjava.net/lcs/archive/2007/11/01/157474.html

     private void drawLine(int x, int y, Graphics g)
        {
            g.setColor(Color.red);
            g.drawLine(0, y, x, y);
            g.drawLine(x, y, x + 7, y - 7);
            g.drawLine(x + 7, y - 7, x + 14, y);
            g.drawLine(x + 14, y, 980, y);
        }

    SwingUtilities.invokeLater(newRunnable(){publicvoid run(){
    
           box.showPopup();}

    }

     $(function(){
        
           $("#filterVal").keyup(function(){
            
           $("#test tr").hide().filter(":contains('"+( $("#filterVal").val() )+"')").show();
        }).keyup();
      })

    function GetRequest() {
           var url = location.search;
           var theRequest = new Object();
           if (url.indexOf("?") != -1) {
              var str = url.substr(1);
              strs = str.split("&");
              for(var i = 0; i < strs.length; i ++) {
                 theRequest[strs[i].split("=")[0]]=unescape(strs[i].split("=")[1]);
              }
           }
           return theRequest;
        }
        function PageLoad(){
            var Request = new Object();
            Request = GetRequest();
            if(null == Request['inputTxt'] || "undefined"== Request['inputTxt'])
                document.getElementById("txtShow").value = "";
            else
                document.getElementById("txtShow").value = Request['inputTxt'];
        }

    int i,j,sum=0;
            for(i=1;i<1000;i++){
                sum = 0;
                for(j = 1;j <=i/2;j++){
                    if(i%j==0){
                        sum += j;
                    }
                }
                if(sum == i){
                    System.out.print(i+" ");
                }
            }

    public class Singleton {

        private static Singleton uniqueInstance = null;

     

        private Singleton() {

           // Exists only to defeat instantiation.

        }

     

        public static Singleton getInstance() {

           if (uniqueInstance == null) {

               uniqueInstance = new Singleton();

           }

           return uniqueInstance;

        }

        // Other methods...

    }

     

     

    var thing ={plugin:'jquery-json', version:2.3};
    var encoded = $.toJSON( thing );
    // '{"plugin":"jquery-json","version":2.3}'
    var name = $.evalJSON( encoded ).plugin;
    // "jquery-json"
    var version = $.evalJSON(encoded).version;

     

  • 相关阅读:
    终于看到费德勒在法网如愿!
    o(∩_∩)o...,今天去博客园了!
    条款4:使用Conditional特性代替#if条件编译
    MSDTC无法启动的解决方法
    2009 很有意义的一天
    从现在开始,争取记录每天所学到的、所感受到的、所遇见到的点点滴滴!
    了解MOSS2007 内容类型ID(Content Type IDs)命名规则
    CreateSpecificCulture('zhcn')和new CultureInfo('zhcn')的区别
    金华大显数码科技有限公司诚聘
    使用SQL Server中按位于来表示组合状态
  • 原文地址:https://www.cnblogs.com/standy225/p/3304643.html
Copyright © 2011-2022 走看看