Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

java ¶ÁÈ¡²¢±£´æexcelÖеÄͼƬ

/*
     * ±£´æexcelÖеÄͼƬ(ÒÔÎļþÐÎʽ±£´æ£¬»òÕß´æÈëÊý¾Ý¿â)
     *
     * basePath:Ó¦ÓÃËùÔÚ·¾¶,¸½¼þ´æ·Å·¾¶:
     * ²ÎÊý£ºisÊÇÉÏ´«µÄ¸½¼þÎļþÁ÷
     */
    public void saveSheetImgByFile(String basePath,InputStream is) throws ParseException {
        FileOutputStream os = null;
        try {
            Workbook wbk = Workbook.getWorkbook(is);
            //½¨ÎļþĿ¼
            File mkFile = new File(basePath);
            if (!mkFile.exists() && !mkFile.isDirectory()) {
                mkFile.mkdirs();
            }
            // Ñ­»·ËùÓÐsheet
            for (int k = 0; k < wbk.getNumberOfSheets(); k++) {
                Sheet sheet = wbk.getSheet(k);
                // ¹²ÓжàÉÙÐÐ
                int imgNumber = sheet.getNumberOfImages();// »ñµÃsheetËù°üº¬µÄͼƬÊý
                // Ñ­»·sheetµÄËùÓÐͼƬ
                for (int i = 0; i < imgNumber; i++) {
                    Image image = sheet.getDrawing(i);
                    byte[] imageD


Ïà¹ØÎĵµ£º

Java GUI

Ò»¡¢BorderLayoutTest.java
package com.briup.md08;
import java.awt.*;
import javax.swing.*;
/*BorderLayoutÌصã
1¡¢×é¼þµÄ´óСÓÉÈÝÆ÷¾ö¶¨
2¡¢ÈÝÆ÷±»»®·ÖΪ5¸öÇøÓò£¬Ã¿¸öÇøÓòÖ»ÄÜÖ±½Ó¼ÓÈë3¸ö×é¼þ
3¡¢×é¼þ¼ÓÈëµÄλÖÃÐèÒªÖ¸¶¨£¬Ä¬ÈÏΪCENTER
4¡¢×é¼þÖ®¼äĬÈÏûÓмä϶
5¡¢Èç¹û³ýCENTER ÒÔÍâµÄÇøÓòûÓмÓÈë×é¼þ£¬Æ ......

JavaÃæÏò¶ÔÏó±à³Ì 6.3 ·½·¨¸²¸Ç£¨Override£©

JavaÃæÏò¶ÔÏó±à³Ì-6.3 ·½·¨¸²¸Ç£¨Override£©¼ÙÈçÓÐ100¸öÀ࣬·Ö±ðΪSub1£¬Sub2…Sub100£¬ËüÃǵÄÒ»¸ö¹²Í¬ÐÐΪÊÇд×Ö£¬³ýÁËSub1ÀàÓýÅд×ÖÍ⣬ÆäÓàµÄÀ඼ÓÃÊÖд×Ö¡£¿ÉÒÔ³éÏó³öÒ»¸ö¸¸ÀàBase£¬ËüÓÐÒ»¸ö±íʾд×ֵķ½·¨write()£¬ÄÇôÕâ¸ö·½·¨µ½µ×ÈçºÎʵÏÖÄØ£¿´Ó¾¡¿ÉÄÜÌá¸ß´úÂë¿ÉÖØÓÃÐԵĽǶȿ´£¬write()·½·¨Ó¦¸Ã²ÉÓÃÊÊÓÃÓÚ´ó ......

java¼¼ÄÜ°ÙÁ¶001 Test

package CH1;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class exercise001 extends JApplet {
 // ¶¨Òå±äÁ¿
 private JColorChooser chooser = new JColorChooser();
 private JButton button = new JButton("Show Color Chooser");
 private JDialog dialo ......

JAVA(Ò»)

1£® ¹ØÓÚ¶¯Ì¬¼ÓÔØ»úÖÆ?? 
ѧϰJava±ÈC++¸üÈÝÒ×Àí½âOOPµÄ˼Ï룬±Ï¾¹C++»¹»ìºÏÁ˲»ÉÙÃæÏò¹ý³ÌµÄ³É·Ö¡£ºÜ¶àÈ˶¼Äܱ³³öÀ´JavaÓïÑÔµÄÌص㣬ËùνµÄ¶¯Ì¬¼ÓÔØ»úÖƵȵȡ£µ±È»¸ÅÄîÍùÍùÊÇÏȼÇס¶øºóÏû»¯µÄ£¬¿ÉÓжàÉÙÈËÕæÕýÈ¥Ìå»á¹ý¶¯Ì¬¼ÓÔصĻúÖÆ£¬ÊÔͼȥѰÕÒ¹ýÆäÖеÄϸ½ÚÄØ?   Ìṩ´ó¼ÒÒ»¸ö·½·¨£º 
ÔÚÃüÁîÐд°¿ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ