codice:
public class main_order extends javax.swing.JFrame {
String[] nomi = new String[9];
String[] immagini = new String[9];
int scelta =0;
String colore_pass;
String path_img="";
String tipo_quadro="";
int screen_w=0;
int screen_h=0;
int riduzione_w =0;
/** Creates new form main_order */
public main_order() {
initComponents();
Dimension d = getToolkit().getScreenSize();
setSize(d.width, d.height);
screen_w=d.width;
screen_h=d.height;
if(screen_w<1366){
riduzione_w=100-((int)((screen_w*100)/1366));
riduci();
}
}
//un piccolo estratto di riduci()
bt_anteprima.setSize(bt_anteprima.getHeight(), (int)(bt_anteprima.getWidth()*riduzione_w/100));
ma i componenti rimangono uguali ... perchè?