进度条

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;

 

原文地址:https://www.cnblogs.com/standy225/p/3304643.html