Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.3.0 - Português

Change language to:
English - Français - 日本語 -

Please note that the recommended version of Scilab is 2024.0.0. This page might be outdated.
See the recommended documentation of this function

Manual Scilab >> IGU > setlookandfeel

setlookandfeel

sets the current default look and feel.

Calling Sequence

bok=setlookandfeel()
bok=setlookandfeel(lnf)

Arguments

lnf

a string with a look and feel.

bok

a boolean.

Description

Sets the current default Look and Feel.

setlookandfeel() without parameter set system default look and feel.

Examples

currentlnf = getlookandfeel();

// Look and feel Windows Classic
setlookandfeel("com.sun.java.swing.plaf.windows.WindowsClassicLookAndFeel")

// Look and feel Windows
setlookandfeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel")

sleep(3000);

// Look and feel CDE/Motif
setlookandfeel("com.sun.java.swing.plaf.motif.MotifLookAndFeel")

sleep(3000);

// Look and feel GTK+
setlookandfeel("com.sun.java.swing.plaf.gtk.GTKLookAndFeel")

sleep(3000);

// Look and feel métal
setlookandfeel("javax.swing.plaf.metal.MetalLookAndFeel")

sleep(3000);

// Look and feel Macintosh
setlookandfeel("it.unitn.ing.swing.plaf.macos.MacOSLookAndFeel")

// System default look and feel

setlookandfeel()

sleep(3000);

// restore previous look and feel
setlookandfeel(currentlnf)

Authors

Allan CORNET

<< root_properties IGU setmenu >>

Copyright (c) 2022-2023 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Wed Jan 26 16:24:42 CET 2011