36,051 Topics
![]() | |
![]() | Hello Everybody, I am learning Java from a few days.i am getting an error in one of my programs wherein i am trying to print thr sum of "n" numbers..the code is as follows..please help me [code]import java.math.*; import java.util.*; import java.io.*; public class Add1{ public static void main(String args[]) … ![]() |
[CODE] import javax.swing.*; import java.awt.*; import java.awt.event.*; public class ExpressionCalculator implements KeyListener { private JFrame frame; private JLabel label; private JPanel boxLayout,panel0,panel1,panel2,panel3; private JTextField TxtInfix,TxtPostfix,TxtPrefix,TxtResult; private Font font; public ExpressionCalculator() { boxLayout = new JPanel(); font = new Font("Serif",Font.BOLD,12); //For infix notation panel0 = new JPanel(new FlowLayout(FlowLayout.CENTER,5,0)); panel0.add(label = new … | |
Hi FOlks can any one share the code snippet of opening any format of microsoft office document in IE browser, on a click of a button Kindly do share the JSP and server side eventing too.. Thanks RK | |
Hi; The below page validates the user. if the groupid of the user is null into the database,it forward the user to accessdenied.jsp page. The below code works fine without closing [B]rs[/B] If i had tried to close rs.close(); [B]it show the compile error: rs might not have been initialised[/B]. … | |
Being new to java am trying to understand the terminology and works around... If i have a simple text file userdetails.txt which contains users name, password, home_dir_context (this is just for questioning).. Which function between the two do i use to get the path where this is located : c:/Java … | |
hey is anyone know how to change background color when you click a button.... please tell me. im creating a applet.. need sup | |
hi all i m working on the java program and i already have hashmap but now i have to add collection sort with that. any help please. | |
Hi, I’m writing a program in Java that uses rxtx for serial communications. Every time I start the program the communications object has to look for a specific port, acquire it, open it and only then can I start using it. The first part of the process, looking for the … | |
i just starter to learn jsp and i have few questions. 1) in my jsp project i have jsp page and java classes that defined as jsp beans. my jsp page contains submit button. is there a way to define that each time i press the button the program will … | |
Hello progers There is a big question in my mind I know that now PHP is popular but JSP is also known . . . so can you answer which language will be popular in future | |
i am fresh student in sofware engineering and now my lecturer want me to do mini project "cab meter reader" apply with java.i don't know how can i start the project.i also really weak in java.can u please help me.. | |
i need some different projects (names and details) related to java which has to be done in 1 month and also the related guidelines for that projects..could u please provide us the same asap. | |
Hi all, I am designing a website related to news channel, in which i ve [U]e-news[/U], here i want everydays news to be updated,please can canbody help me i shud submit this before four o clk.. | |
Hi ,everybody i am trying to use beans in jsp.....but i am stucked in first step... i have copied code from somewhere ......here beans uses a package .Beans is compiled successfully and called bean by this tag in jsp <jsp:useBean id="MyConnectionBean" scope="session" class="UserPack.ConnectionBean"/> Here UserPack is package of bean now … | |
I'm building small application, im kinda newbie in jsp..I use the MVC n servlets concepts.. My problem is after from servlets, the page i want to go (change to another place) cannot shown in the address bar correctly(the addressbar still showing the servlet page), but the view is exactly d … | |
I have tried printing both a word document on a local drive using java DocFlavor and have had no success. What DocFlavor do i need to use for Word docs?? I converted the document to a PDF and used the DocFlavor.INPUT_STREAM.PDF and lookupPrintServices(flavor, null) and found no print services. I … | |
Hi, I'm having trouble connecting to the OVID database using jzkit. I get the following error message: [code]log4j:ERROR No appenders could be found for category (Z3950Origin). log4j:ERROR Please initialize the log4j system properly. java.lang.NullPointerException at com.k_int.z3950.IRClient.Z3950Origin.incomingSearchResponse(Z3950Origin.java:543) at com.k_int.z3950.util.ZEndpoint.notifyAPDUEvent(ZEndpoint.java:169) at com.k_int.z3950.util.ZEndpoint.run(ZEndpoint.java:481) Result: Search complete 0 records[/code] I can connect to other … | |
Hi again (I'm annoying i know, but i just get stuck with things). I'm using this tutorial: [url]http://www.netbeans.org/kb/61/web/jsf-jpa-crud-wizard.html[/url] I'm using it in combination with [B]mysql+tomcat[/B] not java database+classfish. I have imported the following libraries (after googling what is needed for persistance in tomcat and mysql): JSF 1.1 JSF 1.2 JTA … | |
Below is my code in which c1.menu() gives my values from database in Rmenu. but when compilation proceeds downwards, there is another line ResultSet Rmenu1 = c1.menu1(); which gives me another result set Rmenu1 which have values from database through menu1(); function. But after execution of its while(Rmenu1.next()) when the … | |
Hi all, I am no-voice programmer, who has done Programming in Java as subject based only. I am doing project which consist of extensive java programming. I need to built prototype model of working electronic voting system using Java with security, usability and privacy issues in concern. I need help … | |
the sun tutorials doesn't include anything on how to extend JDialog to make a dialog like this: [url]http://www.oucs.ox.ac.uk/windows/exceed/input.jpg[/url] can anyone point me to a tutorial that included this? my attempts to try making a frame into a dialog result in 100% cpu and infinite loops how do you make the … | |
hi! I need a list of final year projects in Java.I would like to know whether computer games can be developed using Java(JDK ) without using J2ME.Reply as soon as possible. | |
Hi, I want to execute some shall scripts from within java code.Can i directly execute the script by using [ICODE][COLOR="Green"]Process proc = Runtime.getRuntime().exec("myScript.sh");[/COLOR][/ICODE] thanks in advance, debojit | |
I was working through an client side struts from the internet, everything worked fine, until the alert came up displaying "???en_GB.errors.required???" instead of the values from the MessageResource.properties file. Does anyone know what the problem could be? | |
Dear JSP friend, I'm new in JSP. I would appreciate if someone can help me in creating inner joint 2 table from MySQL DB and display the result in JSP as report. Please help me.... | |
hi everyone i m new to this site..... i have problem ....... i m trying to insert data which is in jsp page int bale but it is not happening my problem scenario is: i have one jsp page ,in which i m displaying data from one table say table1 … | |
I tried to store session using.. String UserId=request.getParameter("username"); session.setAttribute("username", UserId); and when I try to access it in some other jsp/servlet using request.getAttribute("username") it is showing incompatible data types and showing value null.. but request.getParameter(); is working fine .. wht to do if I need to access this variable in … | |
hi we have to create a soda vending machine. so they asking a interface. i have designed the interface using netbeans. but i dont know hwo to code in there. if anyone can help me regarding this. and in this interface it has radio buttons and combo boxes so please … | |
Hi All, I am newbie to java, trying to connect to linux server using my vista window, network admin has opened the port for me, and I am using an API built by colleague to connect to server remotely. I got the following exceptions, anyone know how to make it … | |
| |
Good day! hello! lately i've been working on a project of mine and im almost done. but right now i have a problem. in my hangman program i cant seem to make thing that hangs the hangman appear, it will only appera after ive clicked the check button. can anyone … | |
...[CODE] Hello everyone i have some csv files that are the result of the inspection machine... these CSV files have the following layout[/CODE] [CODE],SRFF File: D:\SPI Master Program List\200-34-02\200-34-02-B-01-R.SRF ,Panel Name: Panel Description ,Units: Microns ,Date,Time,PanelId,Board,Location,Part,Package,HeightAvgResult,HeightAvg,HeightAvgUpFail,HeightAvgLowFail,HeightAvgTarget,HeightRangeResult,HeightRange,HeightRangeMax,AreaAvgResult,AreaAvg,AreaAvgUpFail,AreaAvgLowFail,AreaAvgTarget,AreaRangeResult,AreaRange,AreaRangeMax,VolumeAvgResult,VolumeAvg,VolumeAvgUpFail,VolumeAvgLowFail,VolumeAvgTarget,VolumeRangeResult,VolumeRange,VolumeRangeMax,XOffset,YOffset,Rotation,Scaling,HAVFailedFeatureResult,HAVFailedFeatures,HAVFailedFeatureMax,RegFailedFeatureResult,RegFailedFeatures,RegFailedFeatureMax,BridgeFailedFeatureResult,BridgeFailedFeatures,BridgeFailedFeatureMax ,07/19/2008,00:48:55,#280,Module 1 ,IC2,TSOP8,SOP8_1,F,138.539642,238.000000,84.000000,140.000000,P,9.226400,140.000000,P,427747.781250,729933.140625,243311.046875,486622.090000,P,26717.400391,486622.093750,P,60986780.000000,122628772.800000,34063548.000000,68127092.600000,P,3087930.000000,68127096.000000,-22.886625,-23.317499,-0.039985,-0.131595,P,0,1,P,0,1,P,0,1 ,07/19/2008,00:48:55,#280,Module 1 ,C38,0402,0402_1_3,P,131.077194,238.000000,84.000000,140.000000,P,12.636800,140.000000,P,265426.750000,470565.468750,156855.156250,313710.320000,P,5929.500000,313710.312500,P,36161180.000000,79054999.200000,21959722.000000,43919444.800000,P,2340260.000000,43919444.000000,-26.636499,-28.285000,-0.201710,-0.635564,P,0,1,P,0,1,P,0,1 ,07/19/2008,00:48:55,#280,Module 1 ,C66,0402,0402_1_3,P,146.934555,238.000000,84.000000,140.000000,P,4.062300,140.000000,P,266860.500000,470565.468750,156855.156250,313710.320000,P,15511.000000,313710.312500,P,40048568.000000,79054999.200000,21959722.000000,43919444.800000,P,235260.000000,43919444.000000,-32.004501,-21.340000,-0.163571,-1.147347,P,0,1,P,0,1,P,0,1[/CODE] so i need some help … | |
hello everyone. CAn anyone tell me where I can get a tutorial for developing a simple strut application. ps: I am completely new in struts | |
I've got a tag file, "nav.tag" with the following attribute: [code=jsp] <%@ attribute name="navigation" rtexprvalue="true" type="java.util.Map" %> [/code] I get nothing when I attempt to assign a Map value to a variable like this: [code=jsp] <c:set var="articleSection" value="${navigation['ARTICLE']}" /> [/code] However, this works: [code=jsp] <c:forEach items="${navigation}" var="s"> <c:choose> <c:when test="${s.key … | |
Hello everyone, I am new to this forum and help will really be appreciated.hope that you'll will help me. I am working on a project using jsp,servlet,ms-access as database. I have to prepare a login page which should be validated with the database and i have done the coding for … | |
Hi there, Now I am doing a project which using JSP calling Crystal Report (version XI) and whenever the report popup. it is always show an IE error message something about printcontrol.dll. So does anyone ever come across this problem before, and pls let me know how to solve it. … | |
hi i am trying to add a picture to jsp page. i'm using netbeans software. the problem is when i run the page the picture is shown with red x mark. the picture is available from ie and i restored my security settings to default. | |
hi , can i update multiple tables on submitting one form, i ve a form which includes vehicle details and driver details like driver name vehicle no,vehile type booked for the date DD/MM/YYYY from some place to another place,these details shud be updated in the driver table , vehicle table … | |
I am a beginner in java. I need basic informations on data base connectivity programs. | |
hi all, I ve a requirement for standalone travel software dat is not web based which involves rentung vehicles,arraging drivers, generating bill, making a picture of bus seats n which shows seat nos available.. i want to do it on java platform. can i do static html page using dreamweaver … | |
Hi all, Can anybody suggest to me a compelling reason to use any of the programming languages [C,C++ and Java]. Under what circumstances would you use one over the other. I am developing an application that will run on mobile device and for this I am wondering which one will … | |
hi all I'm dean. newbie bout Java, i mean i got too basic knowledge about it. I want to learn it because i wan to create a Morse code converter which it will automatically convert alphanumerical words to Morse code. i had read something about java swing. the question is … | |
Hello, My name is Joe. I know very little about JAVA and I rarely drink coffee, but it rolled off the tongue pretty easy and it sounds cool. I am an IT recruiter and founder of Gold Star Recruiting Please stop by and visit me at my site. I am … | |
Hi I am designing a web application. the structure is like this. request for product -> controller.jsp ( based on URL forward the request) -> products.jsp Here request can come from any of the pages and products.jsp refer to different jsps for different product. In general, there will be so … | |
Hello, everyone. I've been working on an application that will be able to accept customers and bills of an electrical service company. While testing this application, I've come across an error message saying Null Pointer Exception. Okay, here are the details. The application is actually an entire GUI project. It … | |
what java code for output repeated continuously by requesting the user to input data&number? | |
main manu 1 for Addition 2 for Subtraction 3 for Multiplication 4 for Division 5 for Choice not in list | |
Hi! i just want to ask how to end a session after a transaction. Here's the flow of my app...after updating information in the database, a confirmation page is invoked, in this page, a button which will display the first page is displayed. when i click that button, the text … | |
Can someone point me in the appropriate direction to learn the proper use of tagging Information on data with Java Annotations? I've used them before (@Override, @Deprecated and @SuppressWarnings(sp) ) but I'm interested in creating my own for testing-purposes and possibly for medium-to-big projects. I need to understand when to … | |
I have constructed a source code for Java Payroll Part 3: I'm receiving the following error when I try to compile my program: PayrollPart3.java:56: 'else' without 'if' ^else Any advice would be appreciated to why I am getting this error. Thanks! [code=java] // Fig. 1.3: Payroll Part 3 // Program … |
The End.