473,538 Members | 10,904 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Java Forum

Java programming language (Sun Microsystems) - Ask questions about java programming, OOP, JRE, SDK, Swing, Plugins, Java Virtual Machine(JVM), Java Libraries: Collection, XML Processing, Security, JDBC, JNDI, RMI, CORBA, AWT (GUI) and more.
1
2,546
karthickkuchanur
thread by: karthickkuchanur | last post Mar 19 '13 by: r035198x
Hi, I am trying to send mail using java api.But i am getting exception.Please find the below code.package com; import java.util.Properties; import javax.mail.Message; import javax.mail.MessagingException; import javax.mail.Session; import javax.mail.Transport;
16
3,203
thread by: joelpawns | last post Mar 18 '13 by: Rabbit
This is my code that keeps on having the illegal start of expression error. Have included error messages at the bottom. import java.awt.*; import java.applet.*; import java.awt.event.*; public class Prog extends Applet implements ItemListener { Label alabel = new Label("MDAS Game Program"); Label slabel = new Label("Choose the...
1
1,387
thread by: parwaaz sandhu | last post Mar 18 '13 by: r035198x
import java.awt.*; import javax.swing.*; import java.awt.event.*; class RetrieveDataFromTextFields{ public static void main(String args){ JFrame f=new JFrame(); JLabel label1=new JLabel("Name: "); JLabel label2=new JLabel("Address: "); final JTextField text1=new JTextField(20);
7
1,879
thread by: BiboyFar | last post Mar 13 '13 by: BiboyFar
Im having trouble on how to call another non GUI class and run it when I click the button inside my GUI program,I have two programs one is GUI and another is not.My problem is how to call a class of non gui program and the program will appear when i click the button inside my GUI program.Im not familiar of the code being used.. any advice will...
3
12,329
thread by: thetechie | last post Mar 13 '13 by: r035198x
i am new in Java. i would like to know how to find the nth root of any positive number using recursion. Is there any way i can do this without using math.pow()?
1
1,766
thread by: Supermarklcable | last post Mar 12 '13 by: r035198x
How Can I Make a Simple Inventory Program (GUI) on Java? pls , help me i don't know where to start ?
1
1,844
thread by: pratik adsul | last post Mar 11 '13 by: r035198x
i am tried to send email using jsp in my project but there is problem occurs that "unknown SMTP host:25".so how can solve it.please give me solution for it.
1
1,175
thread by: urankababu | last post Mar 11 '13 by: r035198x
I create one class singleton in java 1.5,after change the same class in java 1.6 singleton work or not
0
1,190
thread by: anastasia | last post Mar 8 '13 by: anastasia
I have a jsp page with an IE9 only issue. On page load, the page partially displays even though the user is led to believe the page is finished. The only 3 ways I can get the rest of the page to show is if I hold down my mouse and drag my cursor across the area that is missing...resize the window by dragging it smaller or larger, OR moving the...
1
1,943
thread by: waseem201 | last post Mar 8 '13 by: r035198x
i want to detect the com port number of connected device what is the java code for it???
2
1,465
thread by: jschra | last post Mar 8 '13 by: r035198x
Trying to parse some Java code in a middleware tool but somehow determining which numeric value in a string is larger does not work. The input variables are: - TRDT and VLDT are strings and contain the date in format YYYYMMDD - OWOVHE_R contains a string read from a file - oOWOVHE contains the output value - iOWOVHE contains the input...
1
1,790
thread by: kelly456 | last post Mar 8 '13 by: Rabbit
Hello, I have a hard drive full of ISO files that I want to convert to work with my Roku 3. A) Does any software allow me to do that? And I hope I can manually adjust the file size. B) Will the file names stay the same during batch converting? *I would want Avatar.iso to become Avatar.mkv and so on.Thanks,
1
1,637
thread by: broception | last post Mar 6 '13 by: r035198x
What i have so far. I'm trying to get it to where i can enter anything for example: lajflho142323kjlkhaf but the program blows up if i do a mix of letters and numbers import javax.swing.JOptionPane; public class morePractice { public static void main(String args) { String str;
1
2,479
thread by: TKotter | last post Mar 6 '13 by: r035198x
Hello I'm having a little trouble with a programming assignment for a class. Everything compiles fine but I'm not getting the output that I want. It seems that my tester class is calling the format() from my Card class, however I want it to call the format() from the IDCard, CallingCard, and DriverLicense classes. I included all of my code...
1
2,001
thread by: praver235 | last post Mar 6 '13 by: r035198x
I need to extract ONLY those publications from the web page http://www.informatik.uni-trier.de/~ley/pers/hd/r/Rao:Rahul.html, where the first author is Rahul Rao. I have tried the following code ,but it doesn't give me any output. for( Element element : doc.select("table span.this-person.title") ){ System.out.println(element.text()); } ...
1
1,514
thread by: bernouli | last post Mar 6 '13 by: r035198x
can someone tell me what is wrong with this code. it prints "Data Inserted Successfully" but does not insert the values to database <%! int empno;double salary;String name; Session session1 = null; %> <body>
1
1,642
thread by: srikanthneel | last post Mar 6 '13 by: r035198x
Hi i have a method which returns 'image' and i need to display the same image in UI and am using jsf1.2 , icefaces 1.8.2 , Jboss seam. Am adding the snippet i used to display image in UI, but am unable to get image in UI. public BufferedImage imageReturn(String taskId) throws IOException { byte bytes; EntityManager em = (EntityManager)...
1
1,160
thread by: broception | last post Mar 6 '13 by: r035198x
I been working on a program for class, and I finished it but I was wondering if I could put the code into a while statement to make it easier to read. If it's possible, can someone show me how? import java.util.Scanner; public class Problem3 { //*** User input amount then print out amount in fewest number of bills public static void...
1
1,563
thread by: akamps | last post Mar 6 '13 by: r035198x
Example 222-222-222-222 how do i add separators automatically in a text box in java programming not javascript
1
1,272
thread by: broception | last post Mar 5 '13 by: Rabbit
I'm trying to count how many letters and how many numbers are in a user input string. For example: Number01: should display 2 numbers 6 letters So far, I've counted how many letters there are but I don't know how to add numbers to the string. import javax.swing.JOptionPane; public class morePractice {
1
2,025
thread by: Shepard | last post Mar 2 '13 by: PreethiGowri
I have been learning java for 4 months now..but struggle to even write simple programs and codes... I know each and every concept of core-java but not know how to use them. Is there any particular way to develop my programming abilities?? Can anyone suggest me some steps to improve the same?
1
1,726
thread by: PreethiGowri | last post Mar 2 '13 by: PreethiGowri
I have to code for capturing and sending data via Ethernet from a java application using T FTP protocol, can someone help me by telling which libraries to use? if possible provide me some links or sample codes to start on.
1
1,160
thread by: veerjeet | last post Feb 25 '13 by: Rabbit
I have created two tables in database to store data of user in table1 and admin in table 2 Table 1 ......... name password role .................. Table 2 ........ name password role ..................
1
1,453
thread by: jay123 | last post Feb 25 '13 by: PreethiGowri
Hello, As title states, i have a DropdDown and i need to stop user submitting form if he hasn't selected anything in Dropdown i am using (for testing purpose) alert($("#DivId option:selected").val().length); and it return 0 if nothing selected and length of selected option (if selected), but when i use same command in If like if...
2
2,630
thread by: praver235 | last post Feb 25 '13 by: PreethiGowri
The string is Ian A. Wood is name of first person followed by a space and then name of second person P. M. Visscher. Similarly for the next string.I want to split the string person wise and store it in an array.For example a=Ian Wood , a=P. M. Visscher ,a=Ian Wood ,a=L. Mengersen and so on..Every time when I would give input, the names...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.