- AMD K6-III, és minden ami RETRO - Oldschool tuning
- Projektor topic
- TCL LCD és LED TV-k
- OLED monitor topic
- NVIDIA GeForce RTX 5080 / 5090 (GB203 / 202)
- Gyárátalakításokkal kaszálna nagyott a memóriapánikból a Samsung
- Multimédiás / PC-s hangfalszettek (2.0, 2.1, 5.1)
- Házimozi belépő szinten
- AMD Ryzen 9 / 7 / 5 7***(X) "Zen 4" (AM5)
- Amlogic S905, S912 processzoros készülékek
Új hozzászólás Aktív témák
-
n00n
őstag
A legegyszerűbb, ha ideírom a forráskódot:
class Copy extends SwingWorker<Void, Void> {
private File selectedfile = new File("D:/Adatok/proba.file");
private File chosenDestination = new File("D:/Adatok/ide/proba.file");
@Override
protected Void doInBackground() throws Exception {
try {
FileInputStream fileInputStream = new FileInputStream(
selectedfile);
BufferedInputStream bufferedInputStream = new BufferedInputStream(
fileInputStream);
ProgressMonitorInputStream progressMonitorInputStream;
UIManager.put("ProgressMonitor.progressText", "Mentés másolása");
UIManager.put("OptionPane.cancelButtonText", "Mégse");
progressMonitorInputStream = new ProgressMonitorInputStream(MentesPanel.this, "Fájl másolása folyamatban", bufferedInputStream);
File outputFile = new File("" + chosenDestination);
FileOutputStream fileOutputStream = new FileOutputStream(
outputFile);
BufferedOutputStream bufferedOutputStream = new BufferedOutputStream(
fileOutputStream);
int data;
byte[] buffer = new byte[1024];
while ((data = progressMonitorInputStream.read(buffer)) > 0) {
bufferedOutputStream.write(buffer);
}
bufferedOutputStream.close();
progressMonitorInputStream.close();
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
return null;
}
@Override
public void done() {
JOptionPane.showMessageDialog(MentesPanel.this, "A mentés másolása befejeződött!", "Kész", 1);
}
}
}
Új hozzászólás Aktív témák
A topicot kiemeltem. Valaki nem akar egy nyitó hsz-t írni?:))
- A fociról könnyedén, egy baráti társaságban
- Apple iPhone 17 Pro Max – fennsík
- Gitáros topic
- Xiaomi 17 Ultra - jó az optikája
- Samsung kuponkunyeráló
- AMD K6-III, és minden ami RETRO - Oldschool tuning
- Jövedelem
- Projektor topic
- Android felhasználók OFF topikja
- Samsung Galaxy S24 Ultra - ha működik, ne változtass!
- További aktív témák...
- Apple iMac 21,5" 2015 Late / 8GB DDR3 / 1TB HDD / Bill+Egér 6 hó garancia, számlával!
- Honor MagicPad 2 12.3 " Elképesztően jó tablet , újszerű , 1,5 év Garanciával !
- Corsair Water RGB PC - Aorus Z390, i9 9900k, 32Gb RGB PRO, 2080 Super, 1Tb M2, WiFi - Windows 11
- Samsung Galaxy S25 Ultra 512GB, Kártyafüggetlen, 1 Év Garanciaval
- Lenovo Thinkpad P15 Gen 1,i7-10850H,32 gb,512 gb
- Honor 90 256GB, Kártyafüggetlen, 1 Év Garanciával
- Apple iPhone 11 Pro 64GB,Újszerű,Adatkabel,12 hónap garanciával
- Dell Precision 7550,15.6,FHD,i7-10850H,16GB DDR4,256GB SSD,Quadro T2000 4GB VGA,WIN11,LTE
- HIBÁTLAN iPhone 14 Pro 256GB Deep Purple -1 ÉV GARANCIA - Kártyafüggetlen, 100% Akkumulátor
- Apple iPhone SE 2022 64GB - Kártyafüggetlen, Éjfekete, 91% Akku - 1 Év Garanciával
Állásajánlatok
Cég: Laptopműhely Bt.
Város: Budapest

