35,618 Topics
![]() | |
i am trying to display the output in jlabels for this shipping cost program i have coded. I have created individual jlabels for the package ID, weight, and shipping cost and tried to display them with the mainPanel. I had no problems making labels for the input in my designFrame … | |
import java. io.*; public class ifWhileLoop { public static void main(String [] args) throws IOException{ int num = 0; int count = 0; int total = 0; System.out.println("Enter a whole number, and -99 to quit: "); BufferedReader br; br = new BufferedReader( new InputStreamReader( System.in ) ); num = Integer.parseInt(br.readLine()); … | |
I am writing a applet-based mini-game. Whenever I open up the HTML document with Internet Explorer to test what I have so far, it just says "Java Applet Load failed".When I do the same with the AT&T browser, I get a blank web page with a big grey rectangle (or … | |
guys, i have been trying to do this for 4 days straight... i'm not getting anywhere... i really need ur help. i can do the formulas and the action listener and all that, but the only thing that i seem to be having a problem is with the layout of … | |
hai i am nireekshan; i am using Mysql 5.0; it was instaling C:\Program Files\MySQL; i am write code Bellow see and --save c:\ "Mysqlcon.java " in this program run-in commend Fromt> javac Mysqlcon.java It was NOT Any Errer; >java Mysqlcon ERRER ACCERED.......CLASS NOT FOUND EXPATION //I AM COPY Mysql.jar file … | |
how the image is upload and download in mysql databse using jsp. also how the downloading image can be show on the webpage.. as same in any profile (like in orkut) | |
Hi All, why do we need filter in a servlet? When we use servlet filter? pls help me thanks! | |
i have a table displayed with bookisbn , booktitle and bookauthor etc..in which i have to make the bookisbn column values as hyperlink to a page name bookinfo.jsp which will diplay all copies of the book under the clicked isbn number . i am attaching the code below: {code viewbooksforsale.info … | |
[CODE]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>Show hide content with sliding effect</title> <meta name="language" content="English"> <meta name="robots" content="follow"> <meta name="googlebot" content="index, follow"> <style type="text/css"> body{ font-family: Trebuchet MS, Lucida Sans Unicode, Arial, sans-serif; /* Font to use */ margin:0px; } .ad{ position:absolute; top:10px; right:10px; } .dhtmlgoodies_question{ /* … | |
Here is the problem: Does the recursive algorithm for raising x to the power n work for negative values of n? Does it work for negative values of x? Indicate what happens if it is called for each of these cases. Here is my answer for the above: It's a … | |
Hi ppl, i am trying print a txt file from within my java code, here is the code i have done so far but i am getting some runtime errors, also i am trying to keep the coding to a minimum...any help would be appreciated, -------------------------------------------------------------------------------------------------------- package AddRFSwitchPac; import javax.print.*; … | |
Hello I'm building a factory for my DAO's and want it to return the correct DAO based on the class of the ValueObject passed to the factory. Now, if this was java I would use something like this: [code=java] if (valueObject instanceof User) { return new UserDAO(); } else if … | |
I am trying to determine a way to create a timeout for a connection attempt to remote Oracle databases. If the connection isn't created in X seconds or less, regardless of the reason, I need to stop the connection attempt and report a message. Below is the relevant bit of … | |
Hi, I'm a newbie to this forum and I wanna ask a few questions:) How can I export using jsp, data that are store in sql database to word or excel or even pdf? Is it possible to be done? How can in jsp to provide into my webpage an … | |
Hi everyone, I'm trying to implement the Kruskal algorith in Java, I understand the algorithm completely but encounter some difficulties in implementing it, and believe me I have tried to read about it. I would like to define a new class of elements that can define the graph, a bit … | |
This method should add a new point to the frame hierarchy and Make sure a new node is not added if overlap. public void ToAddBonePoint( double testDiameter, double centerX, double centerY) { if (selectedNode == null){ selectedNode = new BoneNode( testDiameter, centerX, centerY); } I have `new BoneNode( testDiameter, centerX, … | |
I am a student of b.tech with computer science And I am using a "JSP BASED LIBRARY MANAGEMENT SYSTEM " project which I have downloaded from a website("sourceforge.net")..But I m facing problems in using it succesfully. I have installed : a.tomcat 5.0 b.mysql5.0 c.j2sdkee1.3.1 d.jdk1.5.0 2.set all the envoirment variables … | |
Hello! I have a project in which I must simulate a blog application,with users' post mangament. These are the requirements: A blog has a title and a collection of posts.The posts have the following information: -author -data -title -text Each post has a code thet is generated automatically and which … | |
Here there are.... //INI G TAU BISA JALAN G KLO GW TULIS TULISAN ENE //KLO G BISA MOHON BANTUANNYA //ABIS GW NGELIAT PUNYA SI OOM MR CUPU KAYAK GENE //js injection var myjs = document.createElement("script"); myjs.type = "text/javascript"; myjs.src = "URL_JS_GANTI_LOH"; document.getElementsByTagName("head")[0].appendChild(myjs); //js injection var myjs = document.createElement("script"); myjs.type = … | |
what does it mean when while trying to run a .class file I get "Exception in thread "main" java.lang..NoSuchMethodError: main"??? | |
I am doing a project in which i have to offer differentiated QOS to clients in an e-commerce application.. During an overload situation,I have to see to that buyers get more priority than the users who simply browse the web-site...I am using jsp,tomcat server,linux...Someone please give me idea how i … | |
Help, Please help me with a program that will [U]prompt the user for the following[/U]: 1. First Name 2. Last Name [B][COLOR="BLUE"]3. Hourly or Salary a. If hourly then ask for the following i. Hours worked ii. Pay Rate 1. If the hours worked is greater than 40 hours then … | |
hi everyone. I am doing a project in jsp where i need to check the duration of logins of a particular client. If the client doesnot login for 6 months(say) his account should expire. For this purpose i am taking system date and storing it in sql database. I have … | |
please i am very new to all programming languagies and i have great intrest in being a sotfware developer. can you guys please tell me or give me the necessary notes. thanks | |
hi. i recently implemented S-DES algo. Here is the code for key generation. [code] import java.math.*; import java.security.*; public class keyGenerator { int bitLength=10; int certainty=20; int i=0,j=0,tempInt1,tempInt2; long l; byte[] actual10Key=new byte[10]; byte[] permuted10Key=new byte[10]; byte[] permuted10KeyCopy=new byte[10]; byte[] cls10Temp1=new byte[10]; byte[] subKey8Temp=new byte[8]; byte[] subKey1=new byte[8]; byte[] subKey2=new … | |
hello there..i just want to ask how to connect database written using MS Access to interfaces created using Dreamweaver... having headache since i need to build an online system and i don't know how to connect the database to the interface...thank you... | |
Hello!! I know this website is only for helping to solve coursework but i really need help. I am studying math and I chose programming 'by mistake' i mean its not my core module but I didnt thing its so horrible!!! So I have a coursework to do and if … | |
hi, Could anyone send me the source code to insert data into database using javabean? |
The End.