36,051 Topics

Member Avatar for
Member Avatar for xxmp

When the user finish with the order and pay then i want to create a pdf with the order receipt with email. How i can create this pdf online and sent it to the user? Thank you very much

Member Avatar for peter_budo
0
284
Member Avatar for PratikM

Sup guys, Its been a while since I've been on this but I have a question regarding If statements and strings. I am trying to create a program and I need the user input (yes/no) so i am using strings for that. The problem that I'm having is that whenever …

Member Avatar for JeffGrigg
0
130
Member Avatar for DavidKroukamp

I have recently been interested in Java Swing and Game development, so naturally I began creating many different 2D games. During them I found myself having to rewrite much code, but eventually I decided to write some classes that would help me whenever I wanted to make a game. Here …

Member Avatar for JamesCherrill
3
2K
Member Avatar for rnana

What attributes and behaviors would an object representing a bank account have?

Member Avatar for JamesCherrill
-2
271
Member Avatar for christine.dunne.963

ok Here is where I am now. I had the code written and it displayed correctly as long as salesPerson1 was the highest earner. I added the additional code if total2 > total1 and so on and now I do not get the calculations just display total commission of 1,2, …

Member Avatar for pbj.codez
0
190
Member Avatar for emanhossnycs

Hello, I want to create java application which can run .cmd file. I already write the code which run .cmd file, but my problem is the following: this .cmd file prompts the user to enter his mail and password & I want my program to give these values to the …

Member Avatar for emanhossnycs
0
300
Member Avatar for murali2489

Hi All, I have created a Class named Stock and have declared three Constructor . First constructor with no parameter, second constructor with three parameter, third with Two parameter. When I call my constructor inside a System.out.println(constructor); , it should display the variable Values right ? . but instead it …

Member Avatar for murali2489
0
198
Member Avatar for joma.tioquin

the program should be able to display array (11 22 33 44 55 66 77 88 99 00). then will ask user to input a number that is (only) in the array displayed. then display the new array. sample: input = 44, new array should be 11 22 33 55 …

Member Avatar for joma.tioquin
0
409
Member Avatar for somjit{}

[this](http://docs.oracle.com/javase/tutorial/uiswing/examples/components/TextComponentDemoProject/src/components/TextComponentDemo.java) is the code i was looking at.Its about how to use JTextPane and related swing text Components along with actions and keymaps. my question is that in this part textPane = new JTextPane(); textPane.setCaretPosition(0); textPane.setMargin(new Insets(5, 5, 5, 5)); StyledDocument styledDoc = textPane.getStyledDocument(); if (styledDoc instanceof AbstractDocument) { doc …

Member Avatar for somjit{}
0
222
Member Avatar for Szabi Zsoldos

Hi guys, I want to create a crawler to extract some infomation from a page. The problem is that it is written with the Java Wicket Framework and I don't know how to scrape informations from it because I don't know how to submit some post parameters. Is this possible …

Member Avatar for Szabi Zsoldos
0
391
Member Avatar for abra_ka_dabra

Can somebody explain me the use of "Delegate" and its equivalent in java... I am learning java programming and has encountered a C# program which use "Delegate" and pass on functions as arguments to another function.... I am trying to modify the C# program for use in java...

Member Avatar for sepp2k
0
629
Member Avatar for bhanu1607

Hi All, This is Bhanu Teja M. I have a problem with an object. Actually i have to convert an object into another object. Here in my Category object contains a list of categories (subcategories). The main issues in this code is we have to convert the all subcategories (Category …

Member Avatar for JamesCherrill
0
337
Member Avatar for shockwave4uonly

does java have the good scope in future or there is any other language which is having gr8 demand in coming time

Member Avatar for jwenting
-1
151
Member Avatar for kilermage

[Click Here](http://www.upload.ee/image/3396246/newerror1.jpg) This is what I get when I run the code. Please help me fix this. EDIT: A lot has changed since 2008 so idk how to upload the image so I just made a link for it.

Member Avatar for kilermage
0
205
Member Avatar for afifah.hamidon

Hi, I'm using ` int TxtAge = Integer.parseInt(tfAge.getText().trim());`to get value from my textfield and search it in database. Then, I'm using `Integer age = Integer.parseInt(stringTokenizer.nextElement().toString());` to go to next attributes in my database. I have no problem using those codes for textfield but when I'm using the JComboBox the result …

Member Avatar for afifah.hamidon
0
149
Member Avatar for Mr.M

Hi DW I'm creating an ATM program and now I want to call the Dispensor to dispense the selected amount from the options provided. The main problem here is importing this `import atm.input.CashDispenser; ` the rest of the code is fine. here is the full code: import atm.input.CashDispenser; import java.util.Scanner; …

Member Avatar for Mr.M
0
144
Member Avatar for SAM2012

Hi, I need help in running a software, thay have plugins in the from of jar files. which I dont know how to run and execute. I have JDK installed. Please suggest. Thank you so much.

Member Avatar for SAM2012
0
304
Member Avatar for somjit{}

i saw the docs for both .. but found the terms a bit hard to get. i was hoping to get some simple answers here. thanks for your time :)

Member Avatar for somjit{}
0
327
Member Avatar for Vaspar

I am using Robot's screenCapture method which returns BufferedImage, and then send using Socket to client on Android. If I don't reduce Quality then It works fine but it is very slow as Image is large and takes much time to send. I am trying to Reduce quality of BufferedImage(using …

Member Avatar for JamesCherrill
0
713
Member Avatar for cjap20

The link tied to this post is what I have to do. I could do this if I all the answers and questions were already established. My problem is that I don't know how to make the program start from scratch and make it "learn". This is my code as …

Member Avatar for JamesCherrill
0
2K
Member Avatar for Deve

**Bold Text Here** hey any one can help me sort out my problem.. when i enter the customer id then in tabular format i want its all detail. how to do.. like in textBox i enter customer id as 1 then pressed ok button then in new frame or in …

Member Avatar for peter_budo
0
248
Member Avatar for tanmay.majumdar2

Hi people, I recently learn about 'Saving objects'. In order to practice it a little bit, I started making a problem. However I got stuck by a strange syntax error. It says that I do not have the right amount of braces. But I do have the right amount of …

Member Avatar for pbj.codez
0
170
Member Avatar for 2concussions

Okay, so I've been working on a program where you add planets to a solar system and try to get them to orbit a sun. What I need, and have been having great troubles with figuring out, is a 'guide line' to show you where your planet is going to …

Member Avatar for 2concussions
0
249
Member Avatar for pbj.codez

Howdy Folks; I have decided to begin working on a project, that I personally feel will cover alot of areas, and introduce me to new topics. This is not for a client, or a homework assignment. This is strictly to help me 'learn as I go' and review some old …

Member Avatar for pbj.codez
0
260
Member Avatar for Violet_82

Chaps, today I was reading about exception handling and although the book explains them in sufficient details there is something that I really struggle to understand. Ok, here's the example they analyze: // Fig. 11.2: DivideByZeroWithExceptionHandling.java // Handling ArithmeticExceptions and InputMismatchExceptions. import java.util.InputMismatchException; import java.util.Scanner; public class DivideByZeroWithExceptionHandling { // …

Member Avatar for Violet_82
0
398
Member Avatar for cleve23

Hi I just started to learn Java and when i was reading through the tutorial for building a simple GUI. It says that parseDouble method is not localizable. I don't understand what it is refering to as this method is not localizable. Please explain to me.THANKS!!!!!!!!!!!! :D Code int tempFahr …

Member Avatar for JamesCherrill
0
200
Member Avatar for CoilFyzx

Hello good day. I am designing two JTables; one on top of the other. The first one has nine columns. And the second one has 8 columns (The first column spans the first columns of the topmost table). What I wish to do now is to make the bottom table …

Member Avatar for JamesCherrill
0
478
Member Avatar for abra_ka_dabra

I am trying to download a zip file from a server using the following code but it gives me a tmp.zip of size 1kB. What is the mistake in this program? try { URL url = new URL("http://www.nseindia.com/content/historical/DERIVATIVES/2013/JUN/fo18JUN2013bhav.csv.zip"); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("GET"); InputStream in = connection.getInputStream(); FileOutputStream out …

Member Avatar for JamesCherrill
0
247
Member Avatar for M.Ledovich

A one liner definition of obfuscation from wikipedia: >In [software development](http://en.wikipedia.org/wiki/Software_development), obfuscation is the deliberate act of creating obfuscated code, i.e. [source](http://en.wikipedia.org/wiki/Source_code) or [machine code](http://en.wikipedia.org/wiki/Machine_code) that is difficult for humans to understand. Obfuscated JavaScript code is a widely used technique to hide initial functionality of a given script. There is …

0
394
Member Avatar for patk570

Hey guys, I am new to programming and doing everything on my own here. I have a website that I am working on, and i want to add things to a list that is on the side of the search page, and then i want to have it be able …

Member Avatar for patk570
0
168
Member Avatar for london-G

Hello, I am using Netbeans with JDK7. I was wondering how can I check which compiler is Netbeans is using to compile the program? Thanks

Member Avatar for JamesCherrill
0
149
Member Avatar for Hazuan Nazri

Hello Friends!! I need some help here.... i build a website called E-Maintenance, now i need to make a form that user can choose date and the system will insert into database mysql after the user click submit, im searching on the internet and i found this Javascript calender, this …

Member Avatar for Hazuan Nazri
0
173
Member Avatar for vehement66

[CODE]import java.util.* public class ArrayMinMax { public static void main(String[] args) { Integer[] numbers={8,2,6,7,1,4,9,5,3}; int min=(int)Collections.min(Arrays.asList(numbers)); int max=(int)Collections.max(Arrays.asList(numbers)); System.out.println("Min number: "+min); System.out.println("Max number: "+max); } }[/CODE] Hi guys, me again. Okay so I use this code in a single array if i want to know what the minimum and maximum …

Member Avatar for jwenting
0
5K
Member Avatar for pspwxp fan

The idea is to load an array of objects onto a JComboBox. I have a Class Tournament, which contains an array of Teams. I have serialized an intance 'a' of the Tournament class into a .dat file. try{ ObjectOutputStream oTourn = new ObjectOutputStream(new FileOutputStream(jTextField1.getText()+".dat")); oTourn.writeObject(a); } catch(Exception e){ JOptionPane.showMessageDialog(this, e.toString(), …

Member Avatar for pspwxp fan
0
849
Member Avatar for hackoman96

can someone please tell me how much time will take to learn java , i have already learnt c++ and looking forward to learning java

Member Avatar for iamthwee
0
275
Member Avatar for Violet_82

Chaps, I have just read about java interfaces and there is a nice exercise in my book that I would like to attempt, so I was wondering if you could help me to identify the best way to go about it. Here's the exercise: "Create 3 small classes unrelated by …

Member Avatar for Violet_82
0
6K
Member Avatar for seacase

I am trying to modify my shell sort algorithm to use Hibbard's increments rather than n/2. I know that Hibbard's increments are 2k - 1, but I can't figure out how to incorporate that into my algorithm. Any suggestions to help me move forward with this? I feel like I …

Member Avatar for Mohamed_22
0
4K
Member Avatar for 1bung100

How to write a java program that runs in background but still can detect any key press from the keyboard (with the corresponding keycode)

Member Avatar for JamesCherrill
0
2K
Member Avatar for QuentinTanio

Hi guys, I am developing a software that has to transform a dataset in a graph database. So far I have developed the dataset import. Basically, I open the file and afterward it is displayed in the tab1 and stored in a matrix of Objects. Now I don't have any …

Member Avatar for JamesCherrill
0
196
Member Avatar for pspwxp fan

I have a JTable with two columns in my JFrame. The number of rows this table has should equal a number input in a JForm in a previous JFrame. I cannot find any rowCount mutator function (Using Netbeans), and upon further inspection, the rowCount property in the GUI design view …

Member Avatar for JamesCherrill
0
3K
Member Avatar for game06

need help with design to separate model and gui code? les say i have 3 classes. Main.java BoxGui.java BoxModel.java public classBoxModel { BoxGui bg = new BoxGui(); public void moveBox(){ int x = bg.getX(); bg.setX(x+1); } } public class BoxGui { int x,y,width,height; public void paint(Graphics g){ g.drawRect(x, y, width, …

Member Avatar for JamesCherrill
0
222
Member Avatar for Sweksha

I want to add employee name from database to combobox and i am using the coding while(rs.next()) combobox.addItem(rs.getString("Emp_name")); but the combobox appears consisting elements as Item1,Item2,Item3...and so on how I can add employees names in combobox

Member Avatar for london-G
0
185
Member Avatar for james12James12

HI I have been building a game applet. I have coded as far as getting rectangles to move on a timer and put integers into the rectangles. I am not familar with how to click the rectangles and I also want to get the different numbers going through an ArrayList …

Member Avatar for jwenting
0
260
Member Avatar for bobrown101

Hey guys. I have a simple question about my android app. I know what you are thinking " this dumbass just posted this in the wrong thread". But I did it for a reason. The error that I have is related to java...not android. (I will star every line of …

Member Avatar for stultuske
1
885
Member Avatar for karthikmanda

# my html page # <form action="file_insert.jsp" method="get" name="ff" onsubmit="return validation()" > <tr> <td height="50" colspan="2" align="center"><font color="#CC0033"><strong><font color="#663366"><em><font size="4">Fileupload </font> </em> </font></strong></font></td> </tr> <tr> <td width="117" height="36"><font color="#FFFFFF"><em><font color="#663333"><strong><font color="#400040">Filename:</font></strong></font></em></font></td> <td width="219"><input type="text" name="fn" class="a" /></td> </tr> <tr> <td height="43"><em><font color="#663333"><strong><font color="#400040">File id:</font></strong></font></em></td> <td width="219"> <input type="text" class="a" name="fid" …

Member Avatar for LastMitch
0
283
Member Avatar for Petranilla

Hi everyone, I'm dealing with both JMenu and JPopupMenu in a program. Looks good except when I switch from JMenu to JPopupMenu by right click, it doesnt work. How? Many thanks.

Member Avatar for Petranilla
0
164
Member Avatar for Narayanan87

Hi all, I want to restrict users directly accessing the html and pdf files(as URL) from my application server. When an user requests for this content, it should ask for login credentials. Please share your ideas for this. My application has LoginFilter and so I added <url-pattern>*.pdf</url-pattern> in the web.xml. …

Member Avatar for Banderson
0
132
Member Avatar for Petranilla

Hi Everyone, I have a project that requires to use mouse right click. Upon right click, it should display a list of categories(drop down). How Do I do I use right click? Many thanks, Petra

Member Avatar for Petranilla
0
10K
Member Avatar for mathewshiby

hi friends, I'm Mathew doing my 2nd year MCA in The American College, madurai. now its fourth semester going on. In this semester i have to do projects in Java. i know java better upto swings. Could you please suggest me some topics and its details. you can send it …

Member Avatar for Meir David
-1
318
Member Avatar for ef_mag

Hi, i making a program where I would read data from text files and store them in tables in myslq. In my program I would create the table with the fields and in these fields I would insert the values from the text file. My issue is that i don't …

Member Avatar for jalpesh_007
0
156

The End.