Skip to content
Snippets Groups Projects
Verified Commit 2b5ae0fc authored by tristan.muller's avatar tristan.muller Committed by philippe.verley_ird.fr
Browse files

Chnage the look and feel to metal

parent 0cf31443
No related branches found
No related tags found
No related merge requests found
......@@ -26,6 +26,7 @@
package fr.amap.lidar.amapvox.visualization.views.colorbar;
import fr.amap.commons.util.colors.ColorBars;
import java.awt.Color;
import java.awt.Component;
import javax.swing.JLabel;
import javax.swing.JList;
......@@ -55,6 +56,7 @@ public class ColorbarComboboxRenderer extends JLabel implements ListCellRenderer
final String name = ColorBars.getColorBarsNames()[selectedIndex];
setIcon(ColorBars.asIcon(ColorBars.getColorBar(name), 150, 25));
setBackground(new Color((float) 208 / 255, (float) 214 / 255, (float) 217 / 255));
setToolTipText(name);
return this;
}
......
......@@ -124,7 +124,7 @@ public abstract class DialogView extends org.jdesktop.swingx.JXDialog {
*/
private void initLookAndFeel() throws Exception {
javax.swing.UIManager.setLookAndFeel(
"javax.swing.plaf.nimbus.NimbusLookAndFeel");
"javax.swing.plaf.metal.MetalLookAndFeel");
}
/**
......
......@@ -121,7 +121,7 @@ public abstract class FrameView extends org.jdesktop.swingx.JXFrame {
*/
private void initLookAndFeel() throws Exception {
javax.swing.UIManager.setLookAndFeel(
"javax.swing.plaf.nimbus.NimbusLookAndFeel");
"javax.swing.plaf.metal.MetalLookAndFeel");
}
/**
......
<?xml version="1.0" encoding="UTF-8" ?>
<Form version="1.3" maxVersion="1.9" type="org.netbeans.modules.form.forminfo.JDialogFormInfo">
<Form version="1.3" maxVersion="1.9" type="org.netbeans.modules.form.forminfo.JFrameFormInfo">
<Properties>
<Property name="defaultCloseOperation" type="int" value="2"/>
<Property name="title" type="java.lang.String" value="Progression"/>
<Property name="iconImage" type="java.awt.Image" editor="org.netbeans.modules.form.ComponentChooserEditor">
<ComponentRef name="null"/>
</Property>
</Properties>
<SyntheticProperties>
<SyntheticProperty name="formSizePolicy" type="int" value="1"/>
......
......@@ -44,13 +44,14 @@ public class JProgressFrame extends javax.swing.JFrame {
setLocationRelativeTo(getParent());
setIconImage(new javax.swing.ImageIcon(getClass().getResource("/progression.png")).getImage());
setVisible(true);
setResizable(false);
if (onInitCallback != null) {
onInitCallback.run();
}
}
public void setOnInitCallback(Runnable onInitCallback) {
public void setOnInitCallback(final Runnable onInitCallback) {
this.onInitCallback = onInitCallback;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment