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

Java Swing LayoutManager


BorderLayout
FlowLayout
GridLayout
GridBagLayout
CardLayout
BoxLayout  



< type="text/javascript">
document.body.oncopy = function() {
if (window.clipboardData) {
setTimeout(function() {
var text = clipboardData.getData("text");
if (text && text.length > 300) {
text = text + "\r\n\n±¾ÎÄÀ´×ÔCSDN²©¿Í£¬×ªÔØÇë±êÃ÷³ö´¦£º" + location.href;
clipboardData.setData("text", text);
}
}, 100);
}
}

BorderLayout
FlowLayout
GridLayout
GridBagLayout
CardLayout
BoxLayout
1.BorderLayout
java.lang.Object
--java.awt.BorderLayout
½«°æÃæ»®·Ö³É¶«¡¢Î÷¡¢ÄÏ¡¢±±¡¢ÖÐÎå¸öÇøÓò£¬½«Ìí¼ÓµÄ×é¼þ°´Ö¸¶¨Î»Ö÷ÅÖá£
    BorderLayout.EAST
    BorderLayout.WEST
    BorderLayout.SOUTH
    BorderLayout.NORTH
    BorderLayout.CENTER
¹¹Ô캯Êý£º
BorderLayout()
½¨Á¢×é¼þ¼äÎÞ¼ä¾àµÄBorderLayout
BorderLayout(int hgap,int vgap)
½¨Á¢×é¼þ¼äˮƽ¼ä¾àΪhgap,´¹Ö±¼ä¾àΪvgapµÄBorderLayout
ÀýÒ»£º
view plain
copy to clipboard
print
?
import
 java.awt.BorderLayout;  
import
 javax.swing.JFrame;  
import
 javax.swing.JButton;  
  
/**
 
 *
 
 * @author Chel
 
 */
  
public
 
class
 BorderLayoutDemo {  
  
    public
 
static
 
void
 main(String[] args) {  
        //½¨Á¢Ò»¸öJFrame,JFrameµÄĬÈÏLayoutManagerΪB


Ïà¹ØÎĵµ£º

JAVAµÄÈÝÆ÷ List,Map,Set

JAVAÈÝÆ÷
¡¡¡¡½âÊÍÒ»£º
¡¡¡¡ÈÝÆ÷£¨Container£©
¡¡¡¡Spring ÌṩÈÝÆ÷¹¦ÄÜ£¬ÈÝÆ÷¿ÉÒÔ¹ÜÀí¶ÔÏóµÄÉúÃüÖÜÆÚ¡¢¶ÔÏóÓë¶ÔÏóÖ®¼äµÄÒÀÀµ¹ØÏµ£¬Äú¿ÉÒÔʹÓÃÒ»¸öÅäÖÃÎļþ£¨Í¨³£ÊÇXML£©£¬ÔÚÉÏÃæ¶¨ÒåºÃ¶ÔÏóµÄÃû³Æ¡¢ÈçºÎ²úÉú£¨Prototype ·½Ê½»òSingleton ·½Ê½£©¡¢Äĸö¶ÔÏó²úÉúÖ®ºó±ØÐëÉ趨³ÉΪij¸ö¶ÔÏóµÄÊôÐԵȣ¬ÔÚÆô¶¯ÈÝÆ÷Ö®ºó£¬ËùÓÐ ......

java cstÊ±Çø×ª»»


BODY { color: #000000; font-size: 9pt; font-family: ËÎÌå }
TABLE { font-size: 9pt; font-family: ËÎÌå }
SimpleDateFormat sdfy = new SimpleDateFormat("HH:mm"); 
        String tt =
"Tue Feb 09 10:43:00 CST 2010";
   &n ......

Java¶¨Ê±ÈÎÎñµÄʵÏÖ

¢Ù¼Ì³ÐTimerTask£¬ÖØÐ´run·½·¨
package bamboo.task;
import java.util.TimerTask;
public class TimeTaskTest extends TimerTask{
 @Override
 public void run() {
  System.out.println("hi");
 }
}
¢Úͨ¹ýtimerÀ´ÉèÖÃij¸öʱ¼äÀ´µ÷Ó㬻òÕßÊÇÏà¸ô¶à³¤Ê±¼äµ÷ÓÃ
package bamboo.test; ......

XULRunner with Java: JavaXPCOM Tutorial 2

4 ÔÚjava´úÂëÀïǶÈëFirefox3
  ÏÖÔÚ¿ÉÒÔÈ¥ÓÃÒ»ÏÂÓÐÓõÄÀý×ÓÁË¡£Ê×ÏÈÎÒÃÇÔÚÒ»¸öjava³ÌÐòÀïʹÓÃSWTÀ´Ç¶ÈëÒ»¸öMozillaä¯ÀÀÆ÷¡£ÏÖÔÚ£¬ÎÒÃÇ¿ÉÒÔʹÓÃ
org.eclipse.swt.browser.BrowserÀàÀ´ÊµÀý»¯£ºbrowser = new Browser(shell, SWT.MOZILLA); ÔÚÕâ֮ǰ£¬ÎÒÃÇÐèҪʹÓÃATFÏîÄ¿
£¬ÒÔ¼°Ò»ÏÂATF²å¼þ¡£·Ç³£ÐÒÔË£¬ÏÖÔÚÎÒÃDz»ÐèÒ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ