 |

|
When posting your question please:- Choose the correct forum for your message. Posting a VB.NET question in the C++ forum will end in tears.
- Be specific! Don't ask "can someone send me the code to create an application that does 'X'. Pinpoint exactly what it is you need help with.
- Keep the subject line brief, but descriptive. eg "File Serialization problem"
- Keep the question as brief as possible. If you have to include code, include the smallest snippet of code you can.
- Be careful when including code that you haven't made a typo. Typing mistakes can become the focal point instead of the actual question you asked.
- Do not remove or empty a message if others have replied. Keep the thread intact and available for others to search and read. If your problem was answered then edit your message and add "[Solved]" to the subject line of the original post, and cast an approval vote to the one or several answers that really helped you.
- If you are posting source code with your question, place it inside <pre></pre> tags. We advise you also check the "Encode HTML tags when pasting" checkbox before pasting anything inside the PRE block, and make sure "Ignore HTML tags in this message" check box is unchecked.
- Be courteous and DON'T SHOUT. Everyone here helps because they enjoy helping others, not because it's their job.
- Please do not post links to your question in one forum from another, unrelated forum (such as the lounge). It will be deleted.
- Do not be abusive, offensive, inappropriate or harass anyone on the boards. Doing so will get you kicked off and banned. Play nice.
- If you have a school or university assignment, assume that your teacher or lecturer is also reading these forums.
- No advertising or soliciting.
- We reserve the right to move your posts to a more appropriate forum or to delete anything deemed inappropriate or illegal.
When answering a question please:
- Read the question carefully
- Understand that English isn't everyone's first language so be lenient of bad spelling and grammar
- If a question is poorly phrased then either ask for clarification, ignore it, or mark it down. Insults are not welcome
- If the question is inappropriate then click the 'vote to remove message' button
Insults, slap-downs and sarcasm aren't welcome. Let's work to help developers, not make them feel stupid.
cheers,
Chris Maunder
The Code Project Co-fou
|
|
|
|

|
Hello Experts,
I have PDF files with tables.
I am required to extract text of the file and identify the tables.
I am using iTextPDF as my PDF parser. I receive the text in tables as strings.
Can someone suggest me a good approach for this?
Please help me.
Thanks
Raesa
|
|
|
|

|
What kind of "approach" are you thinking of?
Sounds like you've got the issue covered.
regards Torsten
I never finish anyth...
|
|
|
|

|
Hello Torsten,
I need to identify tables in PDF.
The text in a page comes like a single string. I am not sure how to go ahead with this.
I have to identify the table header and data in each row and column and i am not sure how to do this.
It would be nice if I could get some advice me on this.
Thanks
Raesa
|
|
|
|

|
Have you tested some? You might be able to identify the table in the stripped text by some special character( or combination).
regards Torsten
I never finish anyth...
|
|
|
|

|
I tried but it simply comes as text string with new line separator.
I am not sure how to go forward on this.
Raesa
|
|
|
|

|
hmm, then you're running into some problem.
PDF have no tables. It's text with some lines drawn around.
Please check if you can figure some additional spaces in the text, e.g. 3 spaces ( " " ) would be the place where a line of the table was placed.
If you cannot find anything like that and work with it, you would have to reject that ticket.
regards Torsten
I never finish anyth...
|
|
|
|
|
|
|

|
I have a problem with constructors ... I never understood how they work.
At Caine c=new Caine();
Animal c1=new Caine();
Pisica p=new Pisica();
Error: Constructor Caine in Caine class cannot be applied to given class
package test2;
public class Test2 {
public static void main(String[] args) {
ListaAnimale lista= new ListaAnimale();
Caine c=new Caine();
Animal c1=new Caine();
Pisica p=new Pisica();
lista.adauga(c);
lista.adauga(p);
c.faceZgomot();
}
}
class ListaAnimale{
private Animal [] animale = new Animal[5];
private int index=0;
public void adauga(Animal a){
if(index <animale.length)
{
animale[index]=a;
System.out.println("Un nou animal pe pozitia " +index);
index++;
}
}
}
abstract class Animal{
private String nume;
private int varsta;
public Animal(String n, int a){
this.nume=n;
this.varsta=a;
}
public void faceZgomot(){System.out.println("ce zgomot face");}
public abstract void mananca();
public void doarme(){
System.out.println("Doaermee");
}
}
class Caine extends Animal{
public Caine(String n, int a){
super(n,a);
}
public void faceZgomot(){System.out.println("wooar");}
public void mananca(){System.out.println("caarne");}
}
class Pisica extends Animal{
public Pisica(String n, int a){
super(n,a);
}
public void faceZgomot(){System.out.println("miau");}
public void mananca(){System.out.println("lapte");}
}
|
|
|
|

|
Caine c=new Caine(); Animal c1=new Caine(); Pisica p=new Pisica();
Your constructors are demanding some values:
public Caine(String n, int a){ super(n,a);
}
so your main would initalize those as following:
Caine c=new Caine("String", 0);
Animal c1=new Caine("anotherString", 1);
Pisica p=new Pisica("oneMoreString", 2);
Constructors are not that complicated. it's just some OOP as in any other method that you write.
http://docs.oracle.com/javase/tutorial/java/javaOO/constructors.html[^]
regards Torsten
I never finish anyth...
|
|
|
|

|
I am trying to get the font data(coordinate points) from some font file such as ttf, Is there a pre-defined mthod in java works same as pre-definedGetFontData function, where this function retrieves font metric data for a TrueType font
|
|
|
|
|

|
i have two executable file 1. s.exe and 2 p.exe. i want to create a single installer that will install all two exe in sequential. any body help please
|
|
|
|

|
What does this have to do with Java?
|
|
|
|

|
hai friends............
i want the source code to receive the string in java based mobile phone via bluetooth from computer............
pls help me friends.................
|
|
|
|

|
usic vicky wrote: i want the source code Then you need to write it yourself, or use Google to search for samples[^].
|
|
|
|

|
I want source code in java for room allocation and auto optimisation for rooms in any training institute according to number of students and room capacity and according to future requirement rooms are optimised itself
|
|
|
|

|
Member 10325645 wrote: I want source code in java for ...
Really? You've been here six months, and you haven't worked out that this site doesn't work like that?
If you need specific help with part of some code that you're working on, then we can help. If you just want someone to write some code for you, then you're in the wrong place.
It's even up there at the top of the page:
- Be specific! Don't ask "can someone send me the code to create an application that does 'X'".
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|

|
A homework question! Do your homework yourself. For specific problems, you may ask questions here, but it is up to you to learn to understand how things work, and hence you must try to write some simple programs instead of just copying code!
|
|
|
|

|
can anyone please help me with this.. ive created a class for gui..in which the frame consists 3 button and two text fields.. one button is to start server.. another button is to connect server.. and another button is for sending messages.. i have another server class... now how do i link the start server button object to server class inorder to start the server...???
startserver button say B1: gui class
link to server class?? can someone help me please..??
|
|
|
|

|
Write an event handler for the button, which creates a server object and starts it. Or is that too obvious?
|
|
|
|

|
You have need to implements ActionListener add actionlistener event like this
JButton btnStartServer = new JButton(" >> Start Server <<");
//Add action listener to button
btnStartServer.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e)
{
//Execute when button is pressed
Server svr=new Server()
svr.startServer();
}
});
In Server class you have to create a startServer() method to do backend processing part.
Like This Example Code:
public void startServer() {
keepGoing = true;
/* create socket server and wait for connection requests */
try
{
// the socket used by the server
ServerSocket serverSocket = new ServerSocket(port);
// infinite loop to wait for connections
while(keepGoing)
{
// format message saying we are waiting
display("Server waiting for Clients on port " + port + ".");
Socket socket = serverSocket.accept(); // accept connection
// if I was asked to stop
if(!keepGoing)
break;
ClientThread t = new ClientThread(socket); // make a thread of it
al.add(t); // save it in the ArrayList
t.start();
}
// I was asked to stop
try {
serverSocket.close();
for(int i = 0; i < al.size(); ++i) {
ClientThread tc = al.get(i);
try {
tc.sInput.close();
tc.sOutput.close();
tc.socket.close();
}
catch(IOException ioE) {
// not much I can do
}
}
}
catch(Exception e) {
display("Exception closing the server and clients: " + e);
}
}
// something went bad
catch (IOException e) {
String msg = sdf.format(new Date()) + " Exception on new ServerSocket: " + e + "\n";
display(msg);
}
}
/*
manoj kumar
|
|
|
|

|
hi guys please help any body
|
|
|
|
 |