/*
* Configuracion.java
*
* Created on 9 de mayo de 2005, 15:31
* Created by Arsenio Molinero
* Copyright (C) 2004, 2005 Arsenio Molinero
*
* GestDB - a Java multi database client
*
* This file is part of GestDB.
*
* GestDB is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GestDB is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GestDB; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
package com.GestDB.swing;
import com.GestDB.general.Trackbug;
import com.GestDB.*;
import com.GestDB.general.addLibrary;
import com.GestDB.swing.skins.EditSkin;
import java.net.URL;
import javax.swing.DefaultComboBoxModel;
/**
*
* @author Arsenio Molinero
*/
public class Configuracion extends javax.swing.JInternalFrame {
/** Creates new form Configuracion */
public Configuracion(Gestor gestor) {
this.gestor = gestor;
initComponents();
PonLiterales();
if(Gestor.propiedades.containsKey("gestor.abrir.conexiones"))
{
if(Gestor.propiedades.getProperty("gestor.abrir.conexiones").toLowerCase().equals("true"))
this.ckAbrirConexiones.setSelected(true);
else
this.ckAbrirConexiones.setSelected(false);
}
else
{
this.ckAbrirConexiones.setSelected(true);
}
if(Gestor.propiedades.containsKey("conexion.tabs.guardar"))
{
if(Gestor.propiedades.getProperty("conexion.tabs.guardar").toLowerCase().equals("true"))
this.ckGuardarPestanas.setSelected(true);
else
this.ckGuardarPestanas.setSelected(false);
}
else
{
this.ckGuardarPestanas.setSelected(true);
}
if(Gestor.propiedades.containsKey("sql.confirm_delete"))
{
if(Gestor.propiedades.getProperty("sql.confirm_delete").toLowerCase().equals("true"))
this.ckConfirmDelete.setSelected(true);
else
this.ckConfirmDelete.setSelected(false);
}
else
{
this.ckConfirmDelete.setSelected(false);
}
if(Gestor.propiedades.containsKey("sql.IrAPestanaNueva"))
{
if(Gestor.propiedades.getProperty("sql.IrAPestanaNueva").toLowerCase().equals("true"))
this.ckIrAPestanaNueva.setSelected(true);
else
this.ckIrAPestanaNueva.setSelected(false);
}
else
{
this.ckIrAPestanaNueva.setSelected(false);
}
if(Gestor.propiedades.containsKey("sql.ComprobarActualizaciones"))
{
if(Gestor.propiedades.getProperty("sql.ComprobarActualizaciones").toLowerCase().equals("true"))
this.ckComprobarActualizaciones.setSelected(true);
else
this.ckComprobarActualizaciones.setSelected(false);
}
else
{
this.ckComprobarActualizaciones.setSelected(false);
}
if(Gestor.propiedades.containsKey("sql.ActualizarAutomaticamente"))
{
if(Gestor.propiedades.getProperty("sql.ActualizarAutomaticamente").toLowerCase().equals("true"))
this.ckActualizarAutomaticamente.setSelected(true);
else
this.ckActualizarAutomaticamente.setSelected(false);
}
else
{
this.ckActualizarAutomaticamente.setSelected(false);
}
// vamos con los skins
sskin = "Liquid";
sskintheme = "";
if(Gestor.propiedades.containsKey("gestor.skin"))
sskin = (String)Gestor.propiedades.get("gestor.skin");
if(Gestor.propiedades.containsKey("gestor.skintheme"))
sskintheme = (String)Gestor.propiedades.get("gestor.skintheme");
CargaSkins();
sskinOLD = sskin;
sskinthemeOLD = sskintheme;
if(Gestor.propiedades.containsKey("sql.editor"))
{
jtfEditor.setText(Gestor.propiedades.getProperty("sql.editor"));
}
else
{
jtfEditor.setText("");
}
}
public void CargaSkins()
{
// cargamos el combo de skins
this.jcbSkins.setModel(new DefaultComboBoxModel(Gestor.skins.list()));
// ponemos el skin seleccionado
this.jcbSkins.setSelectedItem(sskin);
// cargamos el como de temas
Object obj[] = Gestor.skins.listThemes(sskin);
if(obj != null)
{
jcbTemas.setModel(new DefaultComboBoxModel(obj));
// ponemos el tema seleccionado
this.jcbTemas.setSelectedItem(sskintheme);
// si el l&f es distinto de Metal no se puede modificar ni crear
if(!sskin.equals("Metal"))
{
jbModificar.setEnabled(false);
jbCrear.setEnabled(false);
}
// ponemos la imagen
URL recurso = getClass().getResource("/com/GestDB/images/screen/" + sskin + "-" + sskintheme + ".png");
if(recurso != null)
imagen.setIcon(new javax.swing.ImageIcon(recurso));
else
imagen.setIcon(null);
}
else
{
jcbTemas.removeAllItems();
// deshabilitamos los temas
jcbTemas.setEnabled(false);
jbModificar.setEnabled(false);
jbCrear.setEnabled(false);
// ponemos la imagen
URL recurso = getClass().getResource("/com/GestDB/images/screen/" + sskin + ".png");
if(recurso != null)
imagen.setIcon(new javax.swing.ImageIcon(recurso));
else
imagen.setIcon(null);
}
}
public void PonLiterales()
{
this.setTitle(Gestor.GetLiteral("conexiontxt.config","Configuraci�n"));
this.ckAbrirConexiones.setText(Gestor.GetLiteral("dlgconfig.ck_open_conexion","Abrir las conexiones utilizadas en la �ltima sesi�n"));
this.ckGuardarPestanas.setText(Gestor.GetLiteral("dlgconfig.ck_save_tabs","Guardar contenidos de las pesta�as abiertas"));
this.jButton1.setText(Gestor.GetLiteral("dlgmdfgrupos.accept","Aceptar"));
this.jButton1.setToolTipText(Gestor.GetLiteral("dlgmdfgrupos.accept","Aceptar"));
this.jButton2.setText(Gestor.GetLiteral("addlibrary.title","A\u00f1adir drivers"));
this.jButton2.setToolTipText(Gestor.GetLiteral("addlibrary.title","A\u00f1adir drivers"));
this.ckConfirmDelete.setText(Gestor.GetLiteral("sqleditor.confirm_delete","Confirmar sentencias de borrado o actualizaci�n"));
this.ckIrAPestanaNueva.setText(Gestor.GetLiteral("sqleditor.goto_tab","Ir a la pesta�a nueva cuando se crea en el editor SQL"));
this.ckComprobarActualizaciones.setText(Gestor.GetLiteral("dlgconfig.ck_check_updates","Comprobar las actualizaciones autom�ticamente al arrancar"));
this.ckActualizarAutomaticamente.setText(Gestor.GetLiteral("dlgconfig.ck_auto_update","Actualizar autom�ticamente"));
this.jbCrear.setText(Gestor.GetLiteral("selectconexion.create","Crear"));
this.jbCrear.setToolTipText(Gestor.GetLiteral("selectconexion.create","Crear"));
this.jbModificar.setText(Gestor.GetLiteral("selectconexion.modify2","Modificar"));
this.jbModificar.setToolTipText(Gestor.GetLiteral("selectconexion.modify2","Modificar"));
this.jlSkin.setText(Gestor.GetLiteral("dlgconfig.skin","Skin") + ":");
this.jlTema.setText(Gestor.GetLiteral("dlgconfig.theme","A\u00f1adir drivers") + ":");
this.jlEditor.setText(Gestor.GetLiteral("dlgconfig.edit","Editor") + ":");
}
/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
*/
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
ckAbrirConexiones = new javax.swing.JCheckBox();
ckGuardarPestanas = new javax.swing.JCheckBox();
ckConfirmDelete = new javax.swing.JCheckBox();
ckIrAPestanaNueva = new javax.swing.JCheckBox();
jButton2 = new javax.swing.JButton();
jlSkin = new javax.swing.JLabel();
jcbSkins = new javax.swing.JComboBox();
jlTema = new javax.swing.JLabel();
jcbTemas = new javax.swing.JComboBox();
jbModificar = new javax.swing.JButton();
jbCrear = new javax.swing.JButton();
jButton1 = new javax.swing.JButton();
jlEditor = new javax.swing.JLabel();
jtfEditor = new javax.swing.JTextField();
jbEditor = new javax.swing.JButton();
imagen = new javax.swing.JLabel();
ckComprobarActualizaciones = new javax.swing.JCheckBox();
ckActualizarAutomaticamente = new javax.swing.JCheckBox();
setClosable(true);
setTitle("Configuraci�n");
ckAbrirConexiones.setSelected(true);
ckAbrirConexiones.setText("Abrir las conexiones utilizadas en la �ltima sesi�n");
ckGuardarPestanas.setSelected(true);
ckGuardarPestanas.setText("Guardar contenidos de las pesta�as abiertas");
ckConfirmDelete.setText("Confirmar sentencias de borrado o actualizaci�n");
ckIrAPestanaNueva.setText("Ir a la pesta�a nueva cuando se crea en el editor SQL");
jButton2.setText("A�adir drivers");
jButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton2ActionPerformed(evt);
}
});
jlSkin.setText("Piel:");
jcbSkins.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
jcbSkins.setPreferredSize(new java.awt.Dimension(155, 22));
jcbSkins.addItemListener(new java.awt.event.ItemListener() {
public void itemStateChanged(java.awt.event.ItemEvent evt) {
jcbSkinsItemStateChanged(evt);
}
});
jlTema.setText("Tema:");
jcbTemas.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
jcbTemas.setPreferredSize(new java.awt.Dimension(155, 22));
jcbTemas.addItemListener(new java.awt.event.ItemListener() {
public void itemStateChanged(java.awt.event.ItemEvent evt) {
jcbTemasItemStateChanged(evt);
}
});
jbModificar.setText("Modificar");
jbModificar.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jbModificarActionPerformed(evt);
}
});
jbCrear.setText("Crear");
jbCrear.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jbCrearActionPerformed(evt);
}
});
jButton1.setText("Aceptar");
jButton1.setToolTipText("Aceptar cambios");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
jlEditor.setText("Editor:");
jtfEditor.setPreferredSize(new java.awt.Dimension(230, 19));
jbEditor.setText("...");
jbEditor.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jbEditorActionPerformed(evt);
}
});
ckComprobarActualizaciones.setSelected(true);
ckComprobarActualizaciones.setText("Comprobar las actualizaciones autom�ticamente al arrancar");
ckActualizarAutomaticamente.setSelected(true);
ckActualizarAutomaticamente.setText("Actualizar autom�ticamente");
org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(layout.createSequentialGroup()
.addContainerGap()
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(ckComprobarActualizaciones)
.add(ckActualizarAutomaticamente)
.add(ckAbrirConexiones)
.add(ckGuardarPestanas)
.add(ckConfirmDelete)
.add(ckIrAPestanaNueva)
.add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
.add(jButton1)
.add(layout.createSequentialGroup()
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(jButton2)
.add(layout.createSequentialGroup()
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 7, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
.add(jlSkin)
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(jcbSkins, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 238, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
.add(layout.createSequentialGroup()
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(jlTema)
.add(jlEditor))
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(layout.createSequentialGroup()
.add(jtfEditor, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(jbEditor))
.add(layout.createSequentialGroup()
.add(jcbTemas, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(jbModificar)
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(jbCrear)))))
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.add(imagen, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 172, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
.add(99, 99, 99)))
.addContainerGap())
);
layout.setVerticalGroup(
layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(layout.createSequentialGroup()
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(layout.createSequentialGroup()
.addContainerGap()
.add(ckAbrirConexiones)
.addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
.add(ckGuardarPestanas)
.addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
.add(ckConfirmDelete)
.addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
.add(ckIrAPestanaNueva))
.add(layout.createSequentialGroup()
.add(108, 108, 108)
.add(ckComprobarActualizaciones))
.add(layout.createSequentialGroup()
.add(134, 134, 134)
.add(ckActualizarAutomaticamente)))
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(layout.createSequentialGroup()
.addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
.add(jButton2)
.addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
.add(jlSkin)
.add(jcbSkins, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
.add(jlTema)
.add(jcbTemas, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
.add(jbModificar)
.add(jbCrear))
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
.add(jlEditor)
.add(jtfEditor, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
.add(jbEditor)))
.add(layout.createSequentialGroup()
.add(17, 17, 17)
.add(imagen, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 170, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
.addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
.add(jButton1)
.addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
setBounds((screenSize.width-553)/2, (screenSize.height-416)/2, 553, 416);
}// </editor-fold>//GEN-END:initComponents
private void jbEditorActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_jbEditorActionPerformed
{//GEN-HEADEREND:event_jbEditorActionPerformed
javax.swing.JFileChooser jfc = new javax.swing.JFileChooser();
jfc.setFileSelectionMode(jfc.FILES_ONLY);
jfc.setDialogType(javax.swing.JFileChooser.OPEN_DIALOG);
if(Gestor.propiedades.containsKey("conexion.exportar.ultimo_dir_html"))
jfc.setCurrentDirectory(new java.io.File((String)Gestor.propiedades.get("conexion.exportar.ultimo_dir_html")));
if(jfc.showOpenDialog(this) == javax.swing.JFileChooser.APPROVE_OPTION)
{
Gestor.propiedades.put("conexion.exportar.ultimo_dir_html", jfc.getCurrentDirectory().getAbsolutePath());
jtfEditor.setText(jfc.getSelectedFile().getAbsolutePath());
}
}//GEN-LAST:event_jbEditorActionPerformed
private void jbCrearActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_jbCrearActionPerformed
{//GEN-HEADEREND:event_jbCrearActionPerformed
EditSkin es = new EditSkin(null,null,true,gestor,this);
gestor.addInternalFrameToDestock(es);
}//GEN-LAST:event_jbCrearActionPerformed
private void jbModificarActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_jbModificarActionPerformed
{//GEN-HEADEREND:event_jbModificarActionPerformed
EditSkin es = new EditSkin(sskin,sskintheme,false,gestor,this);
gestor.addInternalFrameToDestock(es);
}//GEN-LAST:event_jbModificarActionPerformed
private void jcbTemasItemStateChanged(java.awt.event.ItemEvent evt)//GEN-FIRST:event_jcbTemasItemStateChanged
{//GEN-HEADEREND:event_jcbTemasItemStateChanged
if(jcbTemas.getSelectedIndex() != -1)
{
sskintheme = (String)this.jcbTemas.getSelectedItem();
// ponemos la imagen
URL recurso = getClass().getResource("/com/GestDB/images/screen/" + sskin + "-" + sskintheme + ".png");
if(recurso != null)
imagen.setIcon(new javax.swing.ImageIcon(recurso));
else
imagen.setIcon(null);
}
}//GEN-LAST:event_jcbTemasItemStateChanged
private void jcbSkinsItemStateChanged(java.awt.event.ItemEvent evt)//GEN-FIRST:event_jcbSkinsItemStateChanged
{//GEN-HEADEREND:event_jcbSkinsItemStateChanged
if(jcbSkins.getSelectedIndex() != -1)
{
sskin = (String)jcbSkins.getSelectedItem();
// cargamos el combo de temas
Object obj[] = Gestor.skins.listThemes(sskin);
if(obj != null)
{
jcbTemas.setModel(new DefaultComboBoxModel(obj));
// ponemos el tema seleccionado
this.jcbTemas.setSelectedIndex(0);
sskintheme = (String)this.jcbTemas.getSelectedItem();
// habilitamos los temas
jcbTemas.setEnabled(true);
// si el l&f es distinto de Metal no se puede modificar ni crear
if(!sskin.equals("Metal"))
{
jbModificar.setEnabled(false);
jbCrear.setEnabled(false);
}
else
{
jbModificar.setEnabled(true);
jbCrear.setEnabled(true);
}
Trackbug.info("imagen: " + "/com/GestDB/images/screen/" + sskin + "-" + sskintheme + ".png");
// ponemos la imagen
URL recurso = getClass().getResource("/com/GestDB/images/screen/" + sskin + "-" + sskintheme + ".png");
if(recurso != null)
imagen.setIcon(new javax.swing.ImageIcon(recurso));
else
imagen.setIcon(null);
}
else
{
jcbTemas.removeAllItems();
// deshabilitamos los temas
jcbTemas.setEnabled(false);
jbModificar.setEnabled(false);
jbCrear.setEnabled(false);
// ponemos la imagen
URL recurso = getClass().getResource("/com/GestDB/images/screen/" + sskin + ".png");
if(recurso != null)
imagen.setIcon(new javax.swing.ImageIcon(recurso));
else
imagen.setIcon(null);
Trackbug.info("imagen: " + "/com/GestDB/images/screen/" + sskin + ".png");
}
}
}//GEN-LAST:event_jcbSkinsItemStateChanged
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_jButton2ActionPerformed
{//GEN-HEADEREND:event_jButton2ActionPerformed
addLibrary add = new addLibrary(new javax.swing.JFrame(),true,this);
add.setVisible(true);
add = null;
}//GEN-LAST:event_jButton2ActionPerformed
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
Gestor.propiedades.put("gestor.abrir.conexiones",String.valueOf(this.ckAbrirConexiones.isSelected()));
Gestor.propiedades.put("conexion.tabs.guardar",String.valueOf(this.ckGuardarPestanas.isSelected()));
Gestor.propiedades.put("sql.confirm_delete",String.valueOf(this.ckConfirmDelete.isSelected()));
Gestor.propiedades.put("sql.IrAPestanaNueva",String.valueOf(this.ckIrAPestanaNueva.isSelected()));
Gestor.propiedades.put("sql.ComprobarActualizaciones",String.valueOf(this.ckComprobarActualizaciones.isSelected()));
Gestor.propiedades.put("sql.ActualizarAutomaticamente",String.valueOf(this.ckActualizarAutomaticamente.isSelected()));
Gestor.propiedades.put("gestor.skin",String.valueOf(sskin));
Gestor.propiedades.put("gestor.skintheme",String.valueOf(sskintheme));
Gestor.propiedades.put("sql.editor",jtfEditor.getText().trim());
// tenemos que poner el skin seleccionado
Gestor.skins.setSkin(sskin,sskintheme);
Alerta al = new Alerta(new javax.swing.JDialog(),Gestor.GetLiteral("gestor.alert","Aviso"),true,
Gestor.GetLiteral("dlgconfig.aviso","Los cambios ser\u00E1n 100% efectivos en el siguiente arranque"),Alerta.OK);
al.setVisible(true);
al = null;
gestor.getContentPane().repaint();
this.setVisible(false);
}//GEN-LAST:event_jButton1ActionPerformed
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JCheckBox ckAbrirConexiones;
private javax.swing.JCheckBox ckActualizarAutomaticamente;
private javax.swing.JCheckBox ckComprobarActualizaciones;
private javax.swing.JCheckBox ckConfirmDelete;
private javax.swing.JCheckBox ckGuardarPestanas;
private javax.swing.JCheckBox ckIrAPestanaNueva;
private javax.swing.JLabel imagen;
private javax.swing.JButton jButton1;
private javax.swing.JButton jButton2;
private javax.swing.JButton jbCrear;
private javax.swing.JButton jbEditor;
private javax.swing.JButton jbModificar;
private javax.swing.JComboBox jcbSkins;
private javax.swing.JComboBox jcbTemas;
private javax.swing.JLabel jlEditor;
private javax.swing.JLabel jlSkin;
private javax.swing.JLabel jlTema;
private javax.swing.JTextField jtfEditor;
// End of variables declaration//GEN-END:variables
private String sskin = "Liquid"; // skin actual
private String sskintheme = ""; // tema actual si el skin lo permite
private String sskinOLD = "Liquid"; // skin actual copia
private String sskinthemeOLD = ""; // tema actual si el skin lo permite copia
private Gestor gestor = null;
}