Firefox user 228f88
About me
Name | Firefox user 228f88 |
---|---|
User since | June 8, 2010 |
Number of add-ons developed | 0 add-ons |
Average rating of developer's add-ons | Not yet rated |
My Reviews
Pink Orkut
Rated 2 out of 5 stars
DateÖÄverarbeÖÄtung Text SchreÖÄben
try {
BufferedWrÖÄter out = new BufferedWrÖÄter(new FÖÄleWrÖÄter(pfad,true));
BufferedReader ÖÄn = new BufferedReader(new FÖÄleReader(pfad));
//for (ÖÄnt ÖÄ =0;ÖÄ
Pink Orkut
Rated 3 out of 5 stars
Dateiverarbeitung Text Schreiben
try {
BufferedWriter out = new BufferedWriter(new FileWriter(pfad,true));
BufferedReader in = new BufferedReader(new FileReader(pfad));
//for (int i = 0 ; i < bestellungen.length;i++){
out.write(bestellung);
((BufferedWriter)out).newLine();
//}
out.close();
in.close();
} catch (IOException e) {
e.printStackTrace();
}
// fuer lesen
while((s=in.readLine())!=null){
System.out.println(s + " index : " + i);
bestellung[i]=s;
out.write(bestellung[i]);
((BufferedWriter)out).newLine();
i++;
}
Pink Orkut
Rated 3 out of 5 stars
JMenue
JMenuBar leiste = new JMenuBar();
JMenu m1 = new JMenu("Auswahl");
JMenu m2 = new JMenu("Bestellung");
JMenuItem m1i1 = new JMenuItem("Autos",'a');
m1i1.setActionCommand("autos");
m1i1.addActionListener(this);
m1i1.setAccelerator(KeyStroke.getKeyStroke('A',InputEvent.CTRL_MASK));
// m2Item1.setEnabled(false);
m1.add(m1i1);
m1.add(m1i2);
m1.addSeparator();
m1.add(m1i3);
m2.add(m2i1);
leiste.add(m1);
leiste.add(m2);
setJMenuBar(leiste);
//-------------------------------------------------------------------------------------------------------------
Pink Orkut
Rated 3 out of 5 stars
JList Hilfe
// oben - Global
private JList listeAuswahl;
private JTextArea ta = new JTextArea(5,10);
// im Konstruktor
for (int i=0;i
Pink Orkut
Rated 5 out of 5 stars
///Dateiverarbeitung Text Schreiben
try {
BufferedWriter out = new BufferedWriter(new FileWriter(pfad,true));
BufferedReader in = new BufferedReader(new FileReader(pfad));
//for (int i =0;i
Der Standard
Rated 2 out of 5 stars
´Dateiverarbeitung Text Schreiben
try {
BufferedWriter out = new BufferedWriter(new FileWriter(pfad,true));
BufferedReader in = new BufferedReader(new FileReader(pfad));
//for (int i =0;i
SMS Sidebar
Rated 2 out of 5 stars
Dateiverarbeitung Text Schreiben
try {
BufferedWriter out = new BufferedWriter(new FileWriter(pfad,true));
BufferedReader in = new BufferedReader(new FileReader(pfad));
//for (int i =0;i
Pink Orkut
Rated 2 out of 5 stars
Dateiverarbeitung Text Schreiben
try {
BufferedWriter out = new BufferedWriter(new FileWriter(pfad,true));
BufferedReader in = new BufferedReader(new FileReader(pfad));
//for (int i =0;i
Pink Orkut
Rated 2 out of 5 stars
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Bilder
//Oben-Global
private Image iBild;
private MeinJPanel Foto;
String dateiname="";
JPanel panelfläche;
//Klasse anlegen-------------------------------------------------------------------
class MeinJPanel extends JPanel{
private Image bild;
private int panelbreite;
private int panelhoehe;
public MeinJPanel(int breite, int hoehe, Image bild2) {
panelbreite = breite;
panelhoehe = hoehe;
this.bild = bild2;
setBackground(Color.black);
}
public Dimension getPreferredSize(){
return new Dimension(panelbreite,panelhoehe);
}
public void paintComponent(Graphics g){
super.paintComponent(g);
if(iBild!=null){
g.drawImage(iBild, 0, 0, panelbreite, panelhoehe, this);
}this.setVisible(true);
}
}
//Methode bildladen--------------------------------------------------------------
public Image bildladen(String dateiname){
System.out.println("--> bildzeichen " + dateiname);
Toolkit tk = Toolkit.getDefaultToolkit();
MediaTracker mt = new MediaTracker(this);
Image img = tk.getImage(dateiname);
mt.addImage(img,1);
try { mt.waitForID(1);
}
catch (InterruptedException e) {
System.out.println(e);
} repaint();
return img;
}
//aufruf im Konstruktor-------------------------------------------------
Foto = new MeinJPanel(300,200,bildladen("G:\\java\\uebung31\\vorgabe\\start.jpg"));
rechts.add(Foto);
Pink Orkut
Rated 3 out of 5 stars
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Bilder
//Oben-Global
private Image iBild;
private MeinJPanel Foto;
String dateiname="";
JPanel panelfläche;
//Klasse anlegen-------------------------------------------------------------------
class MeinJPanel extends JPanel{
private Image bild;
private int panelbreite;
private int panelhoehe;
public MeinJPanel(int breite, int hoehe, Image bild2) {
panelbreite = breite;
panelhoehe = hoehe;
this.bild = bild2;
setBackground(Color.black);
}
public Dimension getPreferredSize(){
return new Dimension(panelbreite,panelhoehe);
}
public void paintComponent(Graphics g){
super.paintComponent(g);
if(iBild!=null){
g.drawImage(iBild, 0, 0, panelbreite, panelhoehe, this);
}this.setVisible(true);
}
}
//Methode bildladen--------------------------------------------------------------
public Image bildladen(String dateiname){
System.out.println("--> bildzeichen " + dateiname);
Toolkit tk = Toolkit.getDefaultToolkit();
MediaTracker mt = new MediaTracker(this);
Image img = tk.getImage(dateiname);
mt.addImage(img,1);
try { mt.waitForID(1);
}
catch (InterruptedException e) {
System.out.println(e);
} repaint();
return img;
}
//aufruf im Konstruktor-------------------------------------------------
Foto = new MeinJPanel(300,200,bildladen("G:\\java\\uebung31\\vorgabe\\start.jpg"));
rechts.add(Foto);
Pink Orkut
Rated 5 out of 5 stars
Dateiverarbeitung Text Schreiben
try {
BufferedWriter out = new BufferedWriter(new FileWriter(pfad,true));
BufferedReader in = new BufferedReader(new FileReader(pfad));
//for (int i =0;i
To create your own collections, you must have a Mozilla Add-ons account.