32,199 Topics

Member Avatar for
Member Avatar for danie93
Member Avatar for rakchouh

Hi, I am writing the content of a long text file in pdf using PDFbox API in java but only half the page I am able to write please assit me with it asap here is my code: import java.io.IOException; import org.apache.pdfbox.pdmodel.PDDocument; import org.apache.pdfbox.pdmodel.PDPage; import org.apache.pdfbox.pdmodel.edit.PDPageContentStream; import org.apache.pdfbox.pdmodel.font.PDType1Font; import org.apache.pdfbox.pdmodel.font.PDFont; …

0
113
Member Avatar for london-G

Hello, I am getting the error: "Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException:15" There is definetly something I am doing wrong but I cannot figure out what. Any help will be appreciated. The error in the output is poiinting to line 119; if(R[currentState][action] > -1){. I tried to change this but no …

Member Avatar for london-G
0
638
Member Avatar for d.sign

I need help regarding with the computation of what the user order it seems that the options doesn't have a value to be computed please help me how to put values in every options and one more thing is i need help with the codes for the checkbox for additional …

Member Avatar for stultuske
0
368
Member Avatar for Muni123

I am trying to add some text in to a page by using a textarea where text is entered the text gets saved in to a database after clicking on a add button on a page. However, I am unable to achieve this after trying. I have two tables matchreportcomments …

0
223
Member Avatar for oberle1515

Need to write a program that will print two patterns: 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 1 2 3 4 5 6 and 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 1 2 3 …

Member Avatar for pritaeas
-1
472
Member Avatar for lena1990

hi all, i want to create a program that transmit voice something like skype but i have a problem , there some basics like how to get the voice and how to send it i found source code but i did not understand it. thanks in advance.

Member Avatar for JamesCherrill
0
134
Member Avatar for mukta.dhiman

I want to code a client server program using socket programming in which the server returns the client's network information back to the client.

Member Avatar for JamesCherrill
0
172
Member Avatar for shubham.goel.41995

I want to make a project on online examination which have some similar view like amcat and also have a view which run programs online.

Member Avatar for invadev
0
283
Member Avatar for rahul8590

I am able to write a java program to access a particular url , and get the data , but the data is in raw format and the complete source is printed in the terminal . import java.net.*; import java.io.*; public class URLConnectionReader { public static void main(String[] args) throws …

Member Avatar for invadev
0
296
Member Avatar for rose88

1. A company wants to transmit data over the telephone. All of the data are transmitted as four-digit integers. The company has asked you to write a program that encrypts the data so that it can be transmitted more securely. Your program should read a four-digit integer and encrypt it …

Member Avatar for jwenting
0
233
Member Avatar for ckide
Member Avatar for kumar.rupesh

Hi Friends, Please share your's experience about best supporting programming language for BigData & Hadoop. I'm also doing some research about this topic plz contribute your idea & experience for this topic. Regards, Rupesh

Member Avatar for kumar.rupesh
1
228
Member Avatar for snowy365

I know very little aboout coding and less of Java Logic says I should be able to do something like this: int i; String taxFileNumber; System.out.printf(" Enter Tax File Number (TFN): "); for(i = 0; i < TFN_SIZE; i++) { if(i == 3 || i == 7) { taxFileNumber.charAt(i) = …

Member Avatar for JamesCherrill
0
148
Member Avatar for nabilmahesaniya

Hey friends, i have just started with my java classes but im finding it quick tricky so is there any books availabe for dummies

Member Avatar for raj.mscking
0
154
Member Avatar for stikku

Is it possible to call repaint() inside the main()?I have tried the code below.But its not working public mypanel() { initComponents(); repaint(100,150,40,40); } protected void paintComponent(final Graphics g) { final Graphics2D g2 = (Graphics2D)jLabel2.getGraphics(); g2.drawRect(100,150,40,40); } //above code doesnt provide any output private void formMouseClicked(java.awt.event.MouseEvent evt) { repaint(100,150,40,40) } this …

Member Avatar for JamesCherrill
0
257
Member Avatar for ayushi_1

i am pursuing engg. (3rd year).i want some suggestion regarding my minor project.My proofesors want some unique point in my project so suujest me some project with unique in that.

Member Avatar for danie93
0
145
Member Avatar for pankajagar2002

Hi, We are facing font issue in our java swing application in linux. Kindly help to solve issue. In our application we are explicity setting font as 'Arial' for labels and others in swing Application. Since Arial is not available in linux so it picks 'Lucida Sans Regular' as default …

Member Avatar for iamthwee
0
743
Member Avatar for HelpMEPLZ!!!

Hi everyone My code is still a bit messy as I;m pressed for time. I have to write a simple game you play against the computer. I have my StartGUI class which instantiates the GUI and then I have a Game of Life class, which does not have a JFrame, …

Member Avatar for HelpMEPLZ!!!
0
314
Member Avatar for Dae14

Write a program that will allow tutors to record tutoring activities. A tutor needs to keep track of who come for help (name, student ID), started at what time (sign-in time), ended at what time (sign-out time), for what course, his/her professor name, a short description of the problems he/she …

Member Avatar for HelpMEPLZ!!!
0
200
Member Avatar for JavaPadawan

I'm working on what I thought was a straightforward program to accept user inputs and store them in an ArrayList. I created a separate class containing an object and a constructor (first name, last name, and an integer). In the main method, I prompt the user for input within a …

Member Avatar for arnab.batabyal.54
0
22K
Member Avatar for soujanya.bhat.184

Hi All, I am learning Multithreading in Java and came across this code using SwingWorker for GUI multithreading. Here is the modified code done by me. import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.util.List; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.SwingWorker; public class MainFrame extends JFrame { …

Member Avatar for mKorbel
0
361
Member Avatar for Nandomo

So basically I am writing a tic tac toe program in java which is peer to peer using tcp sockets. The data I am transferring has to be encrypted and checksummed. I know how to implement both, yet I do not know in what order to do it in. Should …

Member Avatar for stultuske
0
217
Member Avatar for Jjaus

I need the code for this Pseudocode AccountBalance Begin Get starting balance Get withdrawal amount If withdrawal amount > starting balance Then Display “Insufficient funds” Else final balance – starting balance – withdrawal amount Display “saving account balance is low End If End

Member Avatar for Jjaus
0
211
Member Avatar for Pobunjenik

Hi everybody, I'm back and I bring problems. :D I've done a fair bit of research - I know Android can't run JRE 1.7, and I know JRE 1.7 is needed to get Java to read SQL. I've got this project that says I need to make a way for …

Member Avatar for Pobunjenik
0
320
Member Avatar for jontposton

I am trying to get my method to return to the main. I have tried return statements but when i run it all it gives me is nothing. It just follows what the main method has but the other methods do not get to return to the main method so …

Member Avatar for jontposton
0
196
Member Avatar for brittney_2

So, I am trying to test my if else with two Character.toUpperCase answers and I keep getting this error: 1 error found Error: bad operand types for binary operator '^' first type: char second type: boolean I tried && and & and it won't work. If I don't use anything …

Member Avatar for Pobunjenik
0
137
Member Avatar for pwolf

I was following along to the following tutorial - [Derek Banas Java tutorial 18 - Threads pt2](http://www.youtube.com/watch?v=G2Xd5avyk_0) and as I decided to go over his tutorial series by following along in notepad++ and compiling with the command line, so that I can experiment and test things I'm unsure about, I …

Member Avatar for pwolf
0
1K
Member Avatar for Varunkrishna

Hi all I am writing a java program to display the dob of sportsperson, now I have use the java.util.Date to display the date on to the consloe. But since it is deprecated I wish to use some other method to get and display the date from the user. Here …

Member Avatar for jwenting
0
374
Member Avatar for hira.jehangir.3

if input is given like (5,4,6,3) it returns 4,5,3,6 but i want it to return like 3,4,5,6....kindly help. import java.util.Scanner; public class sort { public static void main(String args[]) { int rows; int cols; Scanner input = new Scanner(System.in); System.out.println("Enter number of rows u want in matrix "); rows=input.nextInt(); System.out.println("Enter …

Member Avatar for JamesCherrill
0
5K

The End.