Skip to content

Commit ccf379a

Browse files
committed
增加BorderLayout的练习题
1 parent 9a997df commit ccf379a

File tree

2 files changed

+110
-3
lines changed

2 files changed

+110
-3
lines changed

guide/gui.lyx

Lines changed: 110 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#LyX 2.2 created this file. For more info see http://www.lyx.org/
2-
\lyxformat 508
1+
#LyX 2.3 created this file. For more info see http://www.lyx.org/
2+
\lyxformat 544
33
\begin_document
44
\begin_header
55
\save_transient_properties true
@@ -36,6 +36,8 @@ PackageOptions url hyphens
3636
\font_osf false
3737
\font_sf_scale 100 100
3838
\font_tt_scale 100 100
39+
\use_microtype false
40+
\use_dash_ligatures true
3941
\graphics default
4042
\default_output_format pdf4
4143
\output_sync 0
@@ -75,6 +77,7 @@ PackageOptions url hyphens
7577
\suppress_date false
7678
\justification true
7779
\use_refstyle 1
80+
\use_minted 0
7881
\boxbgcolor #dad3d7
7982
\index Index
8083
\shortcut idx
@@ -84,7 +87,10 @@ PackageOptions url hyphens
8487
\tocdepth 2
8588
\paragraph_separation indent
8689
\paragraph_indentation default
87-
\quotes_language english
90+
\is_math_indent 0
91+
\math_numbering_side default
92+
\quotes_style english
93+
\dynamic_quotes 0
8894
\papercolumns 1
8995
\papersides 2
9096
\paperpagestyle default
@@ -6258,6 +6264,97 @@ name "fig:BorderLayout示例运行结果"
62586264
这个示例很简单,我们只是修改了Panel的Layout Manager为BorderLayout,然后将5个按钮依次放到界面的合适位置即可。
62596265
\end_layout
62606266

6267+
\begin_layout Exercise
6268+
尝试将
6269+
\begin_inset ERT
6270+
status open
6271+
6272+
\begin_layout Plain Layout
6273+
6274+
6275+
\backslash
6276+
figurename
6277+
\end_layout
6278+
6279+
\end_inset
6280+
6281+
6282+
\begin_inset CommandInset ref
6283+
LatexCommand ref
6284+
reference "fig:BorderLayout示例运行结果"
6285+
plural "false"
6286+
caps "false"
6287+
noprefix "false"
6288+
6289+
\end_inset
6290+
6291+
中“Center”按钮所在的位置替换为另外一个“麻将桌”,即如
6292+
\begin_inset ERT
6293+
status open
6294+
6295+
\begin_layout Plain Layout
6296+
6297+
6298+
\backslash
6299+
figurename
6300+
\end_layout
6301+
6302+
\end_inset
6303+
6304+
6305+
\begin_inset CommandInset ref
6306+
LatexCommand ref
6307+
reference "fig:BorderLayout练习1"
6308+
plural "false"
6309+
caps "false"
6310+
noprefix "false"
6311+
6312+
\end_inset
6313+
6314+
示的效果。
6315+
\begin_inset Float figure
6316+
wide false
6317+
sideways false
6318+
status open
6319+
6320+
\begin_layout Plain Layout
6321+
\align center
6322+
\begin_inset Graphics
6323+
filename imgs/gui/BorderLayout-exe1.1.png
6324+
6325+
\end_inset
6326+
6327+
6328+
\end_layout
6329+
6330+
\begin_layout Plain Layout
6331+
\begin_inset Caption Standard
6332+
6333+
\begin_layout Plain Layout
6334+
BorderLayout练习1
6335+
\begin_inset CommandInset label
6336+
LatexCommand label
6337+
name "fig:BorderLayout练习1"
6338+
6339+
\end_inset
6340+
6341+
6342+
\end_layout
6343+
6344+
\end_inset
6345+
6346+
6347+
\end_layout
6348+
6349+
\begin_layout Plain Layout
6350+
6351+
\end_layout
6352+
6353+
\end_inset
6354+
6355+
6356+
\end_layout
6357+
62616358
\begin_layout Subsection
62626359
FlowLayout
62636360
\end_layout
@@ -6671,6 +6768,16 @@ name "fig:CardLayout示例运行结果"
66716768

66726769
\begin_layout Paragraph*
66736770
代码说明
6771+
\begin_inset Note Note
6772+
status open
6773+
6774+
\begin_layout Plain Layout
6775+
增加代码的分析,因为CardLayout的代码不是特别直观
6776+
\end_layout
6777+
6778+
\end_inset
6779+
6780+
66746781
\end_layout
66756782

66766783
\begin_layout Standard
9.87 KB
Loading

0 commit comments

Comments
 (0)