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 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159
|
public void init(){
isOnn = true ;
fontfamily = "Times New Roman" ;
if(ResolutionEcrant.getWidth() >= 800 && ResolutionEcrant.getHeight() >= 720){
fontsize = 14 ;
}
else{
fontsize = 12 ;
}
Resources.init();
sound = new Sound(EIrc.this);
sound.start();
LP = new LeftPanel(EIrc.this);
RP = new RightPanel(EIrc.this);
laf = new LAF(EIrc.this);
LeftPanel = LP.Construire();
RightPanel = RP.Construction();
jSplitPane = new JSplitPane();
gridLayout.setRows(1);
setLayout(gridLayout);
jSplitPane.setDividerLocation(250);
jSplitPane.setDividerSize(10);
jSplitPane.setOneTouchExpandable(true);
jSplitPane.setLeftComponent(LeftPanel);
jSplitPane.setRightComponent(RightPanel);
add(jSplitPane);
Toolkit.getDefaultToolkit().setDynamicLayout(true);
laf.Quaqua();
//laf.LookAndFeel();
//laf.NimRodRed();
//laf.Tiny();
/*
* parti option
*/
option = new Option(EIrc.this);
Photo = new Twinkle(EIrc.this);
accept_wizz = option.accept_wizz ;
joinpart = option.joinpart ;
blok_pv = option.blok_pv ;
msg_quit = option.msg_quit ;
//ecriture_fond = option.Color_fond ;
//ecriture_text = option.Color_text ;
this.setSize((int) tailleEcran.getWidth()-300,(int) tailleEcran.getHeight()-200);
_Eirc = new IrcConnect(this);
_Eirc.Connection();
wait = new Waiting();
//wait.run();
System.out.println( memoryBean.getHeapMemoryUsage() );
System.setSecurityManager(null);
}
private class Waiting extends Thread{
public void run()
{
try
{
sleep(10000L);
}
catch(InterruptedException ex) { }
}
public Waiting()
{
}
}
public void start(){
//System.out.println("start");
LP.RemplirNickName();
}
/*public void destroy(){
_Eirc.conn.close();
}*/
public static void setSize(int size){
fontsize = size ;
}
public static void setFamily(String family){
fontfamily = family;
}
public static void setStyle(int i){
style = i ;
}
public JApplet getApplet(){
return this;
}
public void playSound(int i)
{
if(isOnn)
audioclip[i].play();
}
public void NemRod()
{
laf.LookAndFeel();
}
public void BackRound(Color color)
{
EIrc.this.setBackground(color);
EIrc.this.repaint();
LeftPanel.setBackground(color);
LeftPanel.repaint();
RightPanel.setBackground(color);
RightPanel.repaint();
LP.Tabbedpane.setBackground(color);
LP.Tabbedpane.repaint();
LP.Panelrecherche.setBackground(color);
LP.Panelrecherche.repaint();
LP.PanelRechercheSalon.setBackground(color);
LP.PanelRechercheSalon.repaint();
LP.Panelsalon.setBackground(color);
LP.Panelsalon.setBackground(color);
RP.Panel.setBackground(color);
RP.Panel.repaint();
RP.PanelGenerale.setBackground(color);
RP.PanelGenerale.repaint();
RP.PanelPV.setBackground(color);
RP.PanelPV.repaint();
RP.PanelSaisie.setBackground(color);
RP.PanelSaisie.repaint();
RP.PanelSalon.setBackground(color);
RP.PanelSalon.repaint();
RP.PanelTxt.setBackground(color);
RP.TabbedPV.setBackground(color);
RP.TabbedPV.repaint();
RP.TabbedSalon.setBackground(color);
RP.TabbedSalon.repaint();
RP.Paneltxt().repaint();
RP.paneltab.setBackground(color);
RP.paneltab.repaint();
RP.BackRound(color);
RP.GSP.Panelbarre.setBackground(color);
RP.GSP.Panelbarre.repaint();
}
public void ShowOption()
{
option.show();
}
public void ShowTheme()
{
Photo.Show();
}
public void ThemeDarkGray()
{
laf.NimRodDrakGray();
} |
Partager