35,618 Topics

Member Avatar for
Member Avatar for jjiceman

Hi, I'm developing an application, with a main GUI and another GUI that gathers some information. Upon clicking a button in the main GUI, it initializes a second GUI object that has fields for input and then an "OK" button. I need to be able to return the information in …

Member Avatar for JamesCherrill
0
224
Member Avatar for daudiam

I used the following code to download HTML files and subtitle files over the Internet. But when I give the url of a Youtube video, the download stops very quickly and though some file IS downloaded, it doesn't open. Why ? [CODE]class read { public static void main(String aa[])throws IOException …

Member Avatar for NormR1
0
258
Member Avatar for AndreiDMS

Hi, I have a printable class that needs to print some text only on 1 page. The thing is that when I hit print the printer prints 3 pages: page 1 - with correct content page 2 - empty page page 3 - page with content translated some how then …

Member Avatar for queen123
0
783
Member Avatar for neera

steps to configure php/java bridge on xampp 1.7 on windows with all the files location (if possible screen shots too)

-2
36
Member Avatar for R.DanielRaj
Member Avatar for peter_budo
0
490
Member Avatar for karuppas

Online examination system I need Entrance Exam Registration system through online using jsp. Please need for help to me. thank you

Member Avatar for peter_budo
0
70
Member Avatar for raul8

In the code below, the updates are performing successfully, but the page is not redirecting Please Check: [CODE] out.println("<html>"); out.println("<head>"); out.println("<script>"); out.println("function redirect()"); out.println("{"); out.println("window.location='EmpForm.jsp'"); out.println("}"); out.println("</script>"); out.println("</head>"); Class.forName("org.gjt.mm.mysql.Driver"); con = DriverManager.getConnection("jdbc:mysql://192.168.101.98:5501/TestNJ", "testnj","testnj"); st=con.createStatement(); query="UPDATE emp1 SET E_Name='"+EName+"',E_Address='"+Add+"',E_Dept='"+Dept+"' WHERE E_ID='"+EID+"'"; st.executeUpdate(query); out.println("<body onload='redirect()'>"); out.println("</body></html>");[/CODE]

0
70
Member Avatar for hazeeel

Greetings! The below is an example of a text file from PDB. ATOM 2 CA ASP E 423 [B]-50.931 46.011 -16.062[/B] 1.00153.24 C ATOM 3 C ASP E 423 [B]-51.314 44.692 -15.381[/B] 1.00152.70 C ATOM 4 O ASP E 423 [B]-52.175 44.673 -14.497[/B] 1.00153.08 O ATOM 5 CB ASP E …

Member Avatar for jon.kiparsky
0
622
Member Avatar for Guest51

I have a DVD inventory record program that creates a DAT file if none exists and then stores the user input. As long as the program is running the user may then advance one record at a time (forward or back) through the files, skip at anytime to the first …

Member Avatar for Guest51
0
4K
Member Avatar for Danny_501

Hi all, Is there any way to get the location of the CLASSPATH environment variable within a pragram. I need to get the location of rt.jar so that I can dynamically load the classes within that jar file using URLClassLoader. thanks in advance.

Member Avatar for Danny_501
0
100
Member Avatar for Ghost

Hi Everybody, Is there a way to have a picture of the 3 or 4 sq. pixels you're mouse is hovering over appear in the bottom of the screen? Thanx.

Member Avatar for volvo14
0
1K
Member Avatar for dylgod

I am working on a code to read N user input numberb and then display the largest and the smallest of them. The inesgers have to fall in between -999999 and 999999, I have been tinkering with this for a few days now and can't seem to figure out how …

Member Avatar for jon.kiparsky
0
116
Member Avatar for mukulnimker

hello frnds....i am mukul working on a java project using mysql database and swings in netbeans ide can anyone tell me how to retrieve data from mysql and show tha data in JTable......in netbeans....... i know how resultset and statements commanda.......but dont know how to show that data in JTable

Member Avatar for mukulnimker
0
151
Member Avatar for onako

I store matrix entries in std::vector<double>, such that the reading is row by row. This means, for matrix 1 3 4 8 9 3 3 6 8 1 1 2 2 0 9 8 7 6 the std::vector<double> would have entries: {1,3,4,8,9,3,3,6,8,1,1,2,2,0,9,8,7,6}. To transpose the matrix I use the naive …

Member Avatar for jon.kiparsky
0
110
Member Avatar for yan_izumi

ijust learn java ..for me its quite interesting to discover ...now,i got my first asgmnt ...i still searching how to do it ..i got a asgmnt on how to read a capital letter n print the output in reverse order with lower case form ...can u help n quide me …

Member Avatar for NormR1
0
39
Member Avatar for NewOrder

i was looking at this code and thinking when is it a good idea to use the do-while method. [CODE]import java.io.*; class ValidHex { public static void main(String[] args) { Console console=System.console(); String hex; boolean valid; do{ System.out.println("Please enter a valid hexadecimal number"); hex=console.readLine(); if(hex.length()==0) valid=false; else valid=true; for(int index=0;index<hex.length() …

Member Avatar for NewOrder
0
119
Member Avatar for skylarkinoz

I have a txt file with continuous binary data. That is: no separators. How do I read 1 bit from this file or read 7 bits come to that.

Member Avatar for NormR1
0
69
Member Avatar for dresposure

I am workin on a project relating to multipart file transfer. However I need to compress the file before transferring the files. Can som1 help me wid the code for compression of the files. The platform is JAVA

Member Avatar for NormR1
0
62
Member Avatar for Mkaveli

I want to get information on all the running windows thats running under windows. I know this can be done in C++ but i really want to make it work in java. So if anyone can help me i appreciate it. Thanks!

Member Avatar for NormR1
0
81
Member Avatar for sid.maths

I have made a series of programs, and I am facing a similar problem. This however is very strange, and maybe if you can get me around this I can find a way through the other ones: Look at this code: outside loop: int iter=0; loop: { blah blah -- …

Member Avatar for sid.maths
0
103
Member Avatar for supra

Hello Everyone, I want do a project on Java Applet/Swing for my final yr. Can anyone give me suggestions what kind of projects , specifically on what topic I should choose which can help in campusing. Frankly, I love programming in Java. Hope to get a reply from you. Thanking …

Member Avatar for peter_budo
0
210
Member Avatar for coroll

Hi, i get the following error java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Syntax error in FROM clause. this is my code [CODE] import java.sql.*; public class DetOrderNum{ public static void main(String[] args){ Connection con=null; ResultSet rs=null; Statement stmt=null; int pkey=0; String itemn="jin"; try{ Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); con=DriverManager.getConnection("jdbc:odbc:MY-PIZZA","",""); String q="select order_num from Order where …

Member Avatar for javaAddict
0
315
Member Avatar for friendship

hi... i want some advanced project topics for BE computer engineering..

Member Avatar for peter_budo
0
15
Member Avatar for mith_cool

I wrote a program to get first 100 no. which are divisible by 3. Heres the code [CODE] import java.io.*; class app { public static void main (String args[]) { for(int i=0; i<=100; i++) { int x; try{ BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); System.out.println("Enter your no."); x= Integer.parseInt(br.readLine()); if(x%3==0) { System.out.println("The …

Member Avatar for javaAddict
0
122
Member Avatar for coroll

Hi, i want to call another jsp from a jsp.lets say one.jsp and two.jsp. So one.jsp has a form. two .jsp need to get that values from one.jsp. Can 'request.getparameter()' be used in two.jsp to get the parameters sent by the one.jsp.please can any one help me? this is my …

Member Avatar for javaAddict
0
6K
Member Avatar for jet101

Hi everyone... Im having problems running my servlet using netbeans 6.8, It's just a simple Hello World application but I always encountered error "java.lang.NullPointerException", not sure why since the Hello World apps is already available in netbeans when you add a servlet. I dont have problems deploying my web-apps in …

Member Avatar for jet101
0
164
Member Avatar for coroll

HI this is my code.it uses access database.But givs me this error java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Syntax error in FROM clause. import java.sql.*; public class DetOrderNum{ public static void main(String[] args){ Connection con=null; ResultSet rs=null; Statement stmt=null; int pkey=0; String mn="jin"; try{ Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); con=DriverManager.getConnection("jdbc:odbc:MY-PIZZA","",""); String q="select order_num from Order …

0
81
Member Avatar for jjhames
Member Avatar for jjhames
0
735
Member Avatar for NewOrder

my code should accept 5 numbers, sum them up , average them.. and print the numbers that are below the average it doesnt appear to be working..why? [CODE]import java.io.*; class Pra1 { public static void main(String[] args) { Console console=System.console(); int size=5; int number=0; String allNumbers=""; String Snumber=""; int sum=0; …

Member Avatar for tong1
0
208
Member Avatar for cjmartin

I have a JComboBox that is set to editable and has a keylistener attached. The input comes from a scan gun. What I am trying to do is if there are more than one item in the JComboBox, I need to scan a barcode that represents the # sign and …

Member Avatar for cjmartin
0
214

The End.