java±¨±íJXLºÍPOI´òÓ¡ÉèÖÃ
JXLµÄ´òÓ¡ÉèÖÃÔÚjxl.SheetSettingsÕâ¸öÀàÖУ¬ÎÒÃÇ¿ÉÒÔͨ¹ý·½·¨Sheet£¨»òÕßWritableSheet£©#getSettings()»ñÈ¡¡£
1.Ò³Ãæ
1.1·½Ïò
SheetSetting#setOrientation(PageOrientation po)£»
²ÎÊý£º PageOrientation#LANDSCAPE ºáÏò´òÓ¡
PageOrientation# PORTRAIT ×ÝÏò´òÓ¡
1.2Ëõ·Å
1.2.1Ëõ·Å±ÈÀý(A) SheetSetting #setScaleFactor (int);°Ù·Ö±ÈÐÎʽ
1.2.2µ÷Õû(F)
Ò³¿í SheetSetting #setFitWidth(int);
Ò³¸ß SheetSetting #setFitHeight(int);
1.3Ö½ÕÅ´óС(Z) SheetSetting #setPaperSize (PaperSize);
Ö½ÕÅ´óСµÄ¶¨Òå˵Ã÷²Î¼ûPaperSizeÀàÖеij£Á¿¡£
1.4ÆðʼҳÂë(R) SheetSetting #setPageStrart(int);[ĬÈÏ״̬]
2Ò³Ãæ¾à
2.1ÉÏ(T) SheetSetting # setTopMargin (double);
2.2ÏÂ(B) SheetSetting # setBottomMargin (double);
2.3×ó(L) SheetSetting # setLeftMargin (double);
2.4ÓÒ(R) SheetSetting # setRightMargin (double);
2.5ҳü(A) SheetSetting #setHeaderMargin(double);
2.6Ò³½Å(F) SheetSetting #setFooterMargin(double);
2.7¾ÓÖз½Ê½
2.7.1ˮƽ(Z) SheetSetting # setHorizontalCentre (boolean);
2.7.2´¹Ö±(V) SheetSetting #setVerticallyCenter(boolean);
3ҳü/Ò³½Å
3.1ҳüSheetSetting # setHeader£¨HeaderFooter£©;
˵Ã÷:
¶ÔÓÚHeaderFooterµÄÉèÖã¬Ê×ÏÈÈ·¶¨Ò³Ã¼µÄλÖã¨×ó¡¢ÖС¢ÓÒ£©£¬Í¨¹ýHeaderFooter#getCentre()£¨»òÕßgetLeft()¡¢getRight()£©·½·¨»ñÈ¡HeaderFooter.ContentsÀ֮࣬ºó¶ÔÕâ¸öÀàµÄÊôÐÔ½øÐвÙ×÷¡£
ÏÂÃæ¼òµ¥½éÉܼ¸¸ö³£Ó÷½·¨£º
ÉèÖÃ×ֺţºContents#setFontSize(int)
ÉèÖÃ×ÖÌ壺Contents#setFontName(String)
ÉèÖÃÄÚÈÝ£ºContents# append£¨String£©£¬»¹ÓÐappendDate()µ±Ç°ÈÕÆڵȵȣ¬¾ßÌå²Î¿¼ContentsÀà˵Ã÷
3.2Ò³½ÅSheetSetting # setFooter£¨HeaderFooter£©£»
˵Ã÷ͬÉÏ
4¹¤×÷±í
4.1´òÓ¡ÇøÓò
SheetSettings #setPrintArea(firstCol, firstRow, lastCol, lastRow)
4.2´òÓ¡±êÌâ
SheetSettings#setPrintTitles (
Ïà¹ØÎĵµ£º
ÏÂÃæÕâƪÎÄÕÂÊÇ̨ÍåÖøÃûJavaÂÛ̳“Javaworld”µÄÒ»¸ö×ÊÉî°æÖ÷дµÄÒ»·â¶ÔJavaÐÂÊÖµÄÐÅ£¬Ï£ÍûС×é³ÉÔ±×Ðϸ¿´Ï Äã»áѧµ½ºÜ¶àµÄ¡¢¡¢¡¢¡¢
親愛µÄ java ÐÂÊÖ們 :
ºÜ¸ß興Äã們願Òâ來這裡¹²Í¬學習,
Java 這個語ÑÔ, ÒÑ ......
ClassLoaderÒ»¸ö¾³£³öÏÖÓÖÈúܶàÈËÍû¶øÈ´²½µÄ´Ê£¬±¾ÎĽ«ÊÔͼÒÔ×îdzÏÔÒ׶®µÄ·½Ê½À´½²½â ClassLoader£¬Ï£ÍûÄܶԲ»Á˽â¸Ã»úÖƵÄÅóÓÑÆðµ½Ò»µãµã×÷Óá£
ÒªÉîÈëÁ˽âClassLoader£¬Ê×ÏȾÍÒªÖªµÀClassLoaderÊÇÓÃÀ´¸ÉʲôµÄ£¬¹ËÃû˼Ò壬Ëü¾ÍÊÇÓÃÀ´¼ÓÔØClassÎļþµ½JVM£¬ÒÔ¹©³ÌÐòʹÓõġ£ÎÒÃÇÖªµÀ£¬java³ÌÐò¿ÉÒÔ¶¯Ì¬¼ÓÔØÀඨÒ壬¶øÕâ ......
JAVAµÄ¿çƽ̨µÄÌØÐÔÉîÊÜjava³ÌÐòÔ±ÃǵÄϲ°®,µ«ÕýÊÇÓÉÓÚËüΪÁËʵÏÖ¿çƽ̨µÄÄ¿µÄ,ʹµÃËüºÍ±¾µØ»úÆ÷µÄ¸÷ÖÖÄÚ²¿ÁªÏµ±äµÃºÜÉÙ,´ó´óÔ¼ÊøÁËËüµÄ¹¦ÄÜ,±ÈÈçÓëһЩӲ¼þÉ豸ͨÐÅ,ÍùÍùÒª»¨·ÑºÜ´óµÄ¾«Á¦È¥Éè¼ÆÁ÷³Ì±àд´úÂëÈ¥¹ÜÀíÉ豸¶Ë¿Ú,¶øÇÒÓÐһЩÉ豸³§ÉÌÌṩµÄÓ²¼þ½Ó¿ÚÒѾ¾¹ýÒ»¶¨µÄ·â×°ºÍ´¦Àí,²»ÄÜÖ±½ÓʹÓÃjava³ÌÐòͨ¹ý¶Ë¿ÚºÍÉè±¸Í ......
File f=new File("DerectoryName");
String []results=f.list();
import java.io.*;
¡¡¡¡public class listFile
¡¡¡¡{ &nb ......
×î½üÒªÖØÐÂѧϰJava£¬ÕÒ¸öÀý×ÓÀ´Êµ¼ù£¬ÔÚÍøÉÏÕÒÁ˺ܶàÀý³ÌÀ´¿´£¬×Ô¼ºÖØбàдÁËÒ»¸ö̰ʳÉßµÄÀý×Ó£¬¼ÇÔÚÕâÀï¡£
1.SnakeModel.java
import java.util.Observable;
import java.util.LinkedList;
import java.util.Arrays;
import java.util.Random;
import javax.swing.*;
//ObservableÀàÒ»°ã´ú±íÊý¾Ý£¬ÊµÏÖ½Ó¿ÚRunna ......