blob: c42bbadae56191b863c7cf311c171bd4c8fab748 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
<?xml version="1.0" encoding="UTF-8"?>
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="getlookandfeel">
<refnamediv>
<refname>getlookandfeel</refname>
<refpurpose>gets the current default look and feel.</refpurpose>
</refnamediv>
<refsynopsisdiv>
<title>Calling Sequence</title>
<synopsis>lnf=getlookandfeel()</synopsis>
</refsynopsisdiv>
<refsection>
<title>Arguments</title>
<variablelist>
<varlistentry>
<term>lnf</term>
<listitem>
<para>a string with current look and feel.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>bok</term>
<listitem>
<para>a boolean.</para>
</listitem>
</varlistentry>
</variablelist>
</refsection>
<refsection>
<title>Description</title>
<para>Gets the current default look and feel.</para>
</refsection>
<refsection>
<title>Examples</title>
<programlisting role="example"><![CDATA[
currentlnf = getlookandfeel();
// Look and feel CDE/Motif
setlookandfeel("com.sun.java.swing.plaf.motif.MotifLookAndFeel")
sleep(3000);
// Look and feel métal
setlookandfeel("javax.swing.plaf.metal.MetalLookAndFeel")
sleep(3000);
setlookandfeel(currentlnf)
]]></programlisting>
</refsection>
<refsection role="see also">
<title>See Also</title>
<simplelist type="inline">
<member>
<link linkend="getinstalledlookandfeels">getinstalledlookandfeels</link>
</member>
<member>
<link linkend="setlookandfeel">setlookandfeel</link>
</member>
</simplelist>
</refsection>
</refentry>
|