36,051 Topics
![]() | |
hi friends i want to use php code with JS functi:$ on, please help me | |
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 … | |
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] | |
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 … | |
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 … | |
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 … | |
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. … | |
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 … | |
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 … | |
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 … | |
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 … | |
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){} } } } … | |
..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!.. … | |
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 … | |
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 … | |
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){ … | |
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. | |
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.*; … | |
Which functions can help me to convert a DATE() into a double or integer number? Can i convert a Gregorian intro Julian date? Thankyou. | |
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 … | |
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 … | |
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 { … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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, … | |
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 … | |
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 … | |
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) { … | |
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 … | |
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. | |
[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){} } } … | |
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 … | |
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 … | |
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, … | |
[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, … | |
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 … | |
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 … | |
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.... | |
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?!. | |
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 { … | |
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 … | |
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 … | |
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: … | |
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 … | |
[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 … | |
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 … | |
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 … |
The End.