36,051 Topics

Member Avatar for
Member Avatar for almualim
Member Avatar for almualim
0
160
Member Avatar for hussainzim

hi..im using ajax to send some data according to the name selected from the combo box to the servlet..i hav managed to get the necessary values from the database to the servlet as a LIST but im clueless on how to send those values to jsp and print in the …

Member Avatar for Thirusha
0
174
Member Avatar for s080072

write a gui program to compute the amount of a certificate of deposit on maturity.the sample data follows: Amount deposited 8000.00 Years 15 Interest Rate 7.75 [B]Hint: compute 8000.00(1+7.75/100)to the power of 15[/B]

Member Avatar for alpe gulay
0
87
Member Avatar for hezfast2

Hello all, I'm writing a program that gets an input string entered and I was wondering if there is an exception thrown so that the string is valid only if it is all letters. I can find exceptions thrown for only doubles, int.... as valid input but none for only …

Member Avatar for hezfast2
0
108
Member Avatar for CCVM

Hi, I'm looking for some assistance to begin coding in Java, and I don't really know where to begin. I'm still attending school, and will be taking Java as an elective, but I still want to try to get a head-start, because I am very proficient in math, love (and …

Member Avatar for CCVM
0
70
Member Avatar for Tigairius

Well, I need a pretty simple code (Lempel-Ziv-Welch compression algorithm) converted from Python to Java. I don't want to run JPython because I don't need it to be interpreted as Java, I need to interpret it myself because I use a scripting language similar to Java, but not exactly the …

0
50
Member Avatar for gangadhar.in

I am new to java coding.I m struggling to make a below project. Can u plz. help on this project. Doctor Online Discussion Form This System is mainly used by Doctors, Dentists, Optometrists, and any medical professional. Medical Professionals use photos on a daily basis in the practice of medicine. …

Member Avatar for ~s.o.s~
0
137
Member Avatar for Ajuddy

here is the question. i have done half of it. > a company has 4 sales persons, who sell 5 different products, once a day each salesperson passes a slip for each product sold. > the slip contains: sales person no., product no., total cash value for the products sold …

0
63
Member Avatar for ntdaycott

Hi, I am trying to put a date in my class which is 2 weeks ahead of the current date. The problem is that is shows the date as april not may? Any help would be much appreciated. Thanks in advance Below is the issue.class in question [import java.util.*; public …

Member Avatar for jwenting
0
89
Member Avatar for surekhavk

i want to insert values selected from multiple selected listbox in to a single column seperated by a delimiter(,) along with this values there are some other rows too in which some other values are inserted a table has prdt_id, empiid 1,3,4,5 45,23 values shld be in this way how …

Member Avatar for jwenting
0
71
Member Avatar for D boss

hi guys i am trying to create a button that sends all the data returned from my ms access database into the fields of my jframe to the printer for a hardcopy, i have created a button to exit the frame, but now i am having difficulties creating a print …

Member Avatar for javaAddict
0
118
Member Avatar for aznnytezx

import java.io.*; import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.util.Random; public class snake1 { public static void main(String args[]) { String name1= JOptionPane.showInputDialog("Enter Player one's name"); Windows myW=new Windows(name1); myW.setSize(800,600); myW.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent event) { System.exit(0); } }); myW.show(); while(true) { myW.repaint(); try{Thread.sleep(60/myW.getLevel());}catch(Exception e){} } } } …

Member Avatar for jasimp
0
99
Member Avatar for alpe gulay

..I made a simple project in java using JCreator.., this is my first time to make a project file,. I made a class named put_data in w/c will put some data in my database then, I made also another class get_data in w/c will get the data from my database!.. …

Member Avatar for alpe gulay
0
75
Member Avatar for regent_royal

Hello friends, I want to overlap two JPanels at same location in the same frame... by clicking button on the same frame. If one panel is setVisible(true) at the same time if I click button and this Panel will be setVisible(false) another will be setVisible(true) but that does not resolve …

Member Avatar for masijade
0
69
Member Avatar for Anime10112

Hello, Im new to Java Programming, and Im trying to create a Web Applet of a Income to Debt Ratio calculator. I think Im missing a Math code, because when i run the applet everything works except the when I click calculate it says my debt to ratio income is …

Member Avatar for jasimp
0
109
Member Avatar for rohanbk

Hi: I'm having trouble trying to place images in a Java GUI. Basically, I have an array that contains a 52 card deck in String form, and whenever I call one entry from the array, I want to display a gif image of that card. For example: [CODE]if(cardarray.compareTo("King of Hearts")==0){ …

0
63
Member Avatar for pattyps36

Help please! I need help putting the timer in the event, and putting it in the class. I am having problems with the class particularly the scoreboard timer. I believe I figured every thing else out..Please view attached.

Member Avatar for pattyps36
0
125
Member Avatar for msnider9

I am not able to click on the menu choices and have them fill out the form. I also am not certain that it is reading from the text file. Can someone check and let me know what I need to change in this program? [code] import java.awt.*; import java.awt.event.*; …

Member Avatar for peter_budo
0
89
Member Avatar for Motvel

Which functions can help me to convert a DATE() into a double or integer number? Can i convert a Gregorian intro Julian date? Thankyou.

Member Avatar for Motvel
0
96
Member Avatar for kimbostun

i want to Write a program that can serve as simple calculater in java programing that can add , subtract , multiply and divide this example that i want to it look like Calculator is on. Result =0.0 +5 Result +5.0 =5.0 New result =5.0 *2.2 Result * 2.2=11.0 Update …

Member Avatar for jwenting
0
109
Member Avatar for anbuhikaru

i need to convert this JApplet program into a JFrame, but dont know how to do it, can anybody help me please? [this is extremly urgent as i need to have this done by tuesday] [code=language] /*Game.java 5.5.08 This program, Game.java, is an educational game that tries to allow the …

Member Avatar for jwenting
0
86
Member Avatar for mattcrow

Hi everyone I need to hand in this assignment today :( Im trying to read from a file and read it onto the screen, my code keeps showing up an error saying 'java.lang.NoSuchMethodError: Main' Here is my code: import java.io.*; import java.awt.*; import java.applet.*; public class Empty_3 extends Applet { …

Member Avatar for javaAddict
0
145
Member Avatar for anbuhikaru

I need to read in text randomly from a text file, so does anybody have code for that? pretend the text file is called CommunityChest.txt i prefer the use of the scanner class or the use of text readers thank you! the text file is included below if anybody needs …

Member Avatar for javaAddict
0
228
Member Avatar for sujith.1728

hi Iam sujith , and i have done B.Tech in information technology and iam at presently working for a small company for 1 and half years. and now i want to switch to a better company . i have applied for many , but no response are comming , my …

Member Avatar for jwenting
0
82
Member Avatar for vanipriya

Hi all, I have two MS-Access Databases. 1.Comp with fields CID, CName, CMarks. 2.Stud with fields SID,SName,SMarks. I use JSP to build the form in NetBeans. I want to create a form which would allow me to choose a CName from a drop down menu. When I submit, it should …

Member Avatar for jwenting
0
488
Member Avatar for tye680

I currently am on IE , but dont know which version. I believe its 7 but im not positive. For the last 2 weeks ive not been able to click on certain links (mostly myspace links but others as well) For instance, Ill click on it, and on the bottom …

0
25
Member Avatar for NycNessyness

Hello. I'm having troubles with my JComboBox calculations. For example, if the strings in my JComboBox were String[] name = { "John", "Tom" }; And Tom was assigned 15% to his name. How can I have the cases in my action performed reach out to a calculation class to perform …

Member Avatar for NycNessyness
0
119
Member Avatar for BBaller1211

I have a Pong game with a level editor (as long as you have the source code) where you can put walls where you want. There are also walls that only balls hit by the player can pass through, walls that only balls hit by the Cpu can pass through, …

Member Avatar for BBaller1211
0
100
Member Avatar for hurly

Ok, I'm stumped and asking for a push. I need help adding an instance variable for my timer in my frame class. After that I need to : Instantiate your timer. Pass in the initial time (in seconds) and a reference to your timer display JTextField object. This can be …

0
61
Member Avatar for BBaller1211

I'm new to Swing, and still relatively new to Java as a whole, and am having trouble with my first Swing program. I'm trying to make a simple Pong game - it will display the title screen with a "Play" button on it that when pressed starts the game. Here …

Member Avatar for BBaller1211
0
82
Member Avatar for Rahul17

I have written this code in Jsp file . [code=JSP]<% Connection con=null; Statement st=null; PreparedStatement ps; String nm=request.getParameter("tnm"); String loc=request.getParameter("tlc"); try { Class.forName("com.mysql.jdbc.Driver"); con=DriverManager.getConnection("jdbc:mysql://localhost:3306/rahul","root","root"); st=con.createStatement(); try { ps=con.prepareStatement("insert into dept(deptname,location) values(?,?)"); ps.setString(1,nm); ps.setString(2,loc); ps.executeUpdate(); out.println("Value inserted "); } catch(SQLException e) { out.println("sql is not executed"); } } catch(Exception ex) { …

Member Avatar for jwenting
0
133
Member Avatar for alannabrittany

Problem Math Input File: MathIn.txt Output File: MathOut.txt Project File: Math Mathematicians on the planet Earth, write math expressions using in-fixed notation. In this notation, math operators are written between the operands they operate on (e.g., 2 + 3). On Mars, math strings are written in post-fixed form. In this …

Member Avatar for javaAddict
0
125
Member Avatar for s080072

I have to write a program that asks the user to input a positive integer. It should than output a message indicating whether the number is a prime number.

Member Avatar for javaAddict
0
94
Member Avatar for aznnytezx

[code] import java.io.*; import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.util.Random; public class snake1 { public static void main(String args[]) { String name1= JOptionPane.showInputDialog("Enter Player one's name"); Windows myW=new Windows(name1); myW.setSize(800,600); myW.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent event) { System.exit(0); } }); myW.show(); while(true) { myW.repaint(); try{Thread.sleep(60/myW.getLevel());}catch(Exception e){} } } …

0
57
Member Avatar for Teckiwi

This is for an assignment, I'm not asking for answer answers/code to help me out but a point in the right direction would help me greatly. I have approximately 250 lines of data (olypics data) that I want to load into a constructor and then make an array of said …

Member Avatar for Teckiwi
0
115
Member Avatar for ceyesuma

I am adding functionality to a tutorial which is a JDesktopApplication(Netbeans6.1)using Entity class from databases with Persistence unit and entitymanager. I have components in place. Can someone help me find out if there is a bean that fires the actionperformed methods? Ican't figure out were it is. I need to …

Member Avatar for ceyesuma
0
72
Member Avatar for hellotreasure

I'm looking for a javadoc script that would automatically generate a javadoc website and update the SVN with it, but I can't find one anywhere, so does anyone know where I can get one? A simple script that runs javadoc would do just as well, because from what I understand, …

Member Avatar for hellotreasure
0
81
Member Avatar for Relegant

[COLOR="Green"]This case, [/COLOR] [CODE]case 18302: if (playerLevel[19] <= 1) { guard(); addSkillXP(19, 50); isNpc = true; updateRequired = true; appearanceUpdateRequired = true; else if (playerLevel[19] >= 1) { sendMessage("You need a shapeshifting level of 1 to do this."); } break;[/CODE] [COLOR="Green"]I made it by myself, and it gives 100 errors, …

Member Avatar for VernonDozier
0
95
Member Avatar for peter_budo

I have some webspace that I used so far for university assegnments. I would like to to convert it to blog website where I will place some rants, codes and some maybe for somebody interesting info that I find along the research path of my MSc project. Website will be …

Member Avatar for jwenting
0
83
Member Avatar for Alistair1

Ok well apart from a little inconvenience, my program runs almost flawlessly given the guidelines of the assignment. I'll tell my problem first and right after paste my code: When you type in the sentence to be analyzed, only the punctuation mark at the very end doesn't get counted towards …

Member Avatar for Alistair1
0
109
Member Avatar for kitsune

Hello, Is there any simple way to add a bar chart in jsp, I have a question and answers tables for a survey and I want to show the result for it like this: QuestionText.............................Result aaaaaaaaaaa............................Yes 70% ------------ ...............................................No 30% ----- Can anyone Help Me....

Member Avatar for jwenting
0
98
Member Avatar for K?!

Hello I'd like to create a hover effect for JButtons, but i can't find it for the moment. It doesn't have to be antything spectacular, it just has to be visible. Thanks in advance. Greets, K?!.

Member Avatar for K?!
0
9K
Member Avatar for alpe gulay

I made a simple program in which will connect to ms sql... then, after running the codes something is error! can you help me to solve this out... here is my code: import java.sql.*; public class connect_sql { public static void main(String args[]) { Connection con = null; try { …

Member Avatar for alpe gulay
0
143
Member Avatar for ebebcb

I'm trying to write a program that first decides if a number is prime, and if it is writes it to a file I created. I'm obviously having problems (or I wouldn't be pulling my hair out and posting this). First, the errors say an identifier expected after the "public …

Member Avatar for javaAddict
0
75
Member Avatar for eec322

I'm suppose to create a problem that displays the contents of a file (that the user inputs), and then displays each line with a number in front and a colon after it. So, line 1 and 2 would print out: 1 lineFromFile : 2 lineFromFile : But, it keeps printing …

Member Avatar for alpe gulay
0
174
Member Avatar for luxmi_gee

hi i received one error when i run jsp page with custom control.the error is cannot find setter method for the attribute <attribute name> of the tag handler <tag handler name> my pgm is. private String dfontSize="12"; public void setDfontSize(String dfontSize) { this.dfontSize = dfontSize; } out.print("<SPAN STYLE=\"" + "font-size: …

0
78
Member Avatar for geisteskrankhei

Basically, I have to make a code that requests user input. The program asks them to tell me how many columns/rows the user wants the magic square to have. I need to then generate random numbers for each spot. ex: user inputs 3, out put looks like 3 7 1 …

Member Avatar for Ezzaral
0
181
Member Avatar for himanjim

[B][I]I've designed a simple applet that works fine on My Windows Xp but when I upload it on my webhost server or run it through any server for e.g. Tomcat It shows the following error in Java Console but no error without server [/I][/B] [B]Java Plug-in 1.6.0_02 Using JRE version …

Member Avatar for jasimp
0
114
Member Avatar for Barman007

Im hoping this is just simple, but I have a main class for my GUI and I do some printing in another class called board, which gets its information from my peg class, which gets its information from my linked list. Is there and easy way to print my pegs …

Member Avatar for Ezzaral
0
186
Member Avatar for fj822

Hello, i am new java beginner and have some problems when i try to add "ListeningPoint" in mye class. I got some error massege like this, but can not fix it: <identifier> expected [javac] myListeningPoint = sipStack.createListeningPoint(port, "udp"); [javac] ^ [javac] 1 error can you please help me ?? Here …

Member Avatar for fj822
0
146

The End.