Instala Orbit downloader reproduces el video lo seleccionas y le das get y listo y los videos son flv
Esta sección te permite ver todos los mensajes escritos por este usuario. Ten en cuenta que sólo puedes ver los mensajes escritos en zonas a las que tienes acceso en este momento.
Mostrar Mensajes MenúCita de: blood_brother en 9 Junio 2010, 07:54 AM
estpy usando netbeans 6.8 al hacer lo que le dijoste click del lado derecho --> Event-->Actions--->actionPerformed
Al colocar el codigo que vos me escribio me dio este error
menuItem = new JMenuItem("Open");
//Aqui
menuItem.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
//test extiende de JFrame
new test().setVisible(true);
}
});
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.SortedSet;
import java.util.TreeSet;
import javax.swing.JOptionPane;
public class LeeFichero {
public static void main(String [] arg) {
try {
String nomarch=JOptionPane.showInputDialog("Ruta y nombre archivo:");
FileInputStream archivo=new FileInputStream (nomarch);
InputStreamReader isr =new InputStreamReader(archivo);
BufferedReader leer =new BufferedReader (isr);
String linea;
int c =0;
ArrayList<Character> arrayList = new ArrayList<Character>();
while((linea=leer.readLine())!=null) {
char chars[]=linea.toCharArray();
for(int index=0;index<chars.length;index++){
if(Character.isLetter(chars[index])){
arrayList.add(chars[index]);
c++;
}
}
}
isr.close();
leer.close();
SortedSet<Character> characters = new TreeSet<Character>();
Iterator<Character> interator = arrayList.iterator();
while(interator.hasNext()){
characters.add(interator.next());
}
System.out.println("Archivo: "+nomarch);
System.out.println("Nro. de Letras: "+c);
if(characters.size()<26){
throw new Exception("Error...Faltan letras del abecedario");
}else
System.out.println("Abecedario completo.");
}
catch(IOException e){
System.out.println(e);
} catch (Exception e) {
e.printStackTrace();
}
}
}
int c =0;
while((linea=leer.readLine())!=null) {
char chars[]=linea.toCharArray();
for(int index=0;index<chars.length;index++){
if(Character.isLetter(chars[index])){
c++;
}
}
}
System.out.println("Archivo:"+nomarch);
System.out.println("Nro. de Letras: "+c);
Manifest-Version: 1.0
Ant-Version: 1.0
Created-By: xxxx
Extension-Name: A.B
Specification-Title: lib
Implementation-Title: lib
Implementation-Vendor: xxxx
Implementation-Version: 1.0
Implementation-Vendor-Id: .
X-Compile-Source-JDK: 1.5
X-Compile-Target-JDK: 1.5