2011年12月18日

tr

摘要: tr [options] source-char-list replace-char-list 现随便写一个testroot@ubuntu:~# cat test.txt asdfdsgr th#dfg sdfgthsdfgdfg然后使用tr效果如下root@ubuntu:~# tr -cd '\r' < test.txt > atest.txtroot@ubuntu:~# cat atest.txt root@ubuntu:~# tr -cs '\r' < test.txt > atest.txtroot@ubuntu:~# cat a 阅读全文

posted @ 2011-12-18 16:30 wangbokun 阅读(255) 评论(0) 推荐(0) 编辑

布局管理

摘要: AWT提供了五个常用的布局管理器,FlowLayout,BorderLayout,GridLayout,GridBigLayout,CardLayoutSwing还提供了一个BoxLayout布局管理器。1.FlowLayout布局管理器 在这个布局管理器中,组建像流水一样想某方向流动(排列),遇到障碍(边界)就折回,重头开始排列,默认情况,FlowLayout布局管理器从左向右排列所有组件,遇到边界就会折回iayihang重新开始。package test1;import java.awt.Button;import java.awt.FlowLayout;import java.awt.F 阅读全文

posted @ 2011-12-18 09:52 wangbokun 阅读(261) 评论(0) 推荐(0) 编辑

导航