Hi everyone!
I would like to know if i use the following code, how can i decide if the char i read in is the linebreak or not.
while( ( c = in.read( ) ) != -1 ) {
char ch = (char) c;
...
Anyone knows?
Thanks!
Ok, i have another problem then:
Unlike List, the size of JTable can't be changed after it's constructed(at least i didn't find a way to do it). The function addLine only writes in a cell, "Line" only indicates that i write in a line of information. I have to make my program in MVC model, and...
What can i do if i already extend from JFrame?
This is my code so far.
import java.util.*;
import java.util.Vector.*;
import javax.swing.*;
import javax.swing.table.*;
import java.awt.GridLayout;
import java.awt.Dimension;
public class View extends JFrame {
private JFrame...
Cool, that takes care of the view. But how can i download the whole page(functions doesn't interest me, but pictures would be important for showing)?
What i mean like when i'm downloading a page with IE using "save as". It saves other files as well not onlz the htm.
1. What i wanted to know if i can download it completly(including pictures for example).
2. If i have the files, how can i print it out? I thought of opening a Window/Canvas/Frame/whatever, and put it in. Is that possible, if yes, how?
Aeren
Hi everyone!
I would like to know if it's possible(and how it is) to download a webpage completly with Java(like this thread you're reading now :) ) then show it in a window. I've read the big book of Java but all i found was:
URLConnection openConnection(URL)
parseURL(URL, String, int...
TBH, i didn't even know if it was possible to define where the break shall lead us. I saw it on a java lesson, but i don't remember. I know you can define a label and use that for breaking, but i don't know what a simple break does. Oh well, let's try...
Hi everyone!
This might sound a noob question, but i never used a for cycle this way before.
I have a Vector which contains self defined Classes. These classes have 3 variables, i want to choose the Element which has the lovest sourceIndex. Then i would like to remove it from the Vector and...
Hi everyone!
I tried to make a Thread, but it doesn't work.
I have a class called NetMyThread, which implements Runnable.
Has a: private Thread myThread; as a variable, which is initialized in the init as follows:
myThread = new Thread( this ); (init is called from the constructor)...
As i said, i'm not very good with package and stuff. Since i'm not using any big editors and projects, i don't think i'm using any packages at all(self made packages that is).
My file is:
import java.util.*;
import java.util.Vector.*;
import java.io.*;
public class NetMyThread...