35,618 Topics
![]() | |
I was atteched two file with this poll, I m facing problem when <select> attrib value fetching. email.txt Originally file(email.jsp),where i was connection with database & taking E-mail Field in to <select> dynamically,But when i redirect to otherpage this <select> attrib that time (request.getAttri(...))// Is taking Null value... I can't … | |
hey everyone, well i got a little problem im trying to write input from the JTextField into the file (file4.txt) but the problem is it keeps overwriting the text file each time i make input and any data ther was is changed in to new data.all i need is that … | |
I'm trying to write a program that, after playing a game with the user, asks if they want to play again. For this test, I want to simply test the first letter of the word they input and if it's a "y" then the game will repeat. at first, I … | |
I was just wondering if there is a method or something in Java that, once a URL has been passed, can determine if a webpage under that URL was written in HTML, PHP, XML, and so on. I looked in URL and HTTPConnection classes but didn't find anything. Maybe missed … | |
The program like the title says is supposed to return the largest integer value in an user-inputted integer array, using binary recursion. And in the case of an empty array, return Integer.MIN_VALUE. I am kind of stuck on the logic of this binary recursive algorithm. I know there is errors … | |
how can i associate jar files with java.exe not javaw.exe in window 7,since if jar file is associated to javaw.exe,then console is not displayed. thanx | |
[code] public class Animal { public void eat() { System.out.println("I eat like a generic Animal."); } public static void main(String[] args) { } } class Fish extends Animal { @Override public void eat() { System.out.println("I eat like a fish!"); } } class Goldfish extends Fish { @Override public void eat() … | |
I figured out how to make indentation with [code=java] SimpleAttributeSet style = new SimpleAttributeSet();// = doc.addStyle(null, null); StyleConstants.setLeftIndent(style, 12); StyleConstants.setFirstLineIndent(style, -12); [/code] and then use doc.setParagraphAttributes(doc.getLength(), 1, style, false); after the insert into document. now numbers there doc.getLenght(), 1, i've been changing around but always same issue. The problem is … | |
Hi , i want to fetch company profile using hoover api , i have my java based application in that i want to integrate company related data , like company name , location , contact no , emailid , company picture . can anyone plz help me for some important … | |
Hello I am making an project in Netbeans and the following is my problem: I deleted some of my .java files of my project and later copy pasted the same files. Now the code runs perfectly fine but Netbeans doesnt detect the packages. I mean inside the code it shows … | |
Hi, I am relatively new to JAVA and especially SQL and I am having trouble with a "cannot find symbol error. I believe it is at this line catch: "catch(SQLExeception e)". Any advise would be greatly appreciated. Thanks, Mike NetBeans code looks like this: [code] import java.sql.*; public class Book … | |
This is probably really more of a math problem. I hope I want have to go into too much (for you, boring) detail about the code, as the problem resides in this loops. Please let me know if I provided too little detail :) Now for the problem: I would … | |
Hi, In JSP for some responses from the server the header is null. Is this because the header size becomes very large? If yes then is there a possibility wherein we can increase the size of the header? What is the maximum possible size limit? I am using JSP and … | |
Need help please. This program is supposed to be a do while loop and convert fahrenheit to celcius and vise versa using user defined methods but as of right now it just doesn't work. I need to make a do while loop in main method too, but was just trying … | |
Alright well im trying to code a multiplication table for a webpage im making. This needs to be in a separate java Servlet as opposed to an inline javascript. Basically the code should output embedded html code something like [code] <table> <tr><td>4*0=0</td><td>4*1=4</td><td>4*2=8</td></tr> <tr><td>5*0=0</td><td>5*1=5</td><td>5*2=10</td></tr> <tr><td>6*0=0</td><td>6*1=6</td><td>6*2=12</td></tr> </table> [/code] There is an HTML … | |
Hi i have a program with a JFrame and it has two jpanels on it, one containing the buttons needed and the other which is going to be used for plotting graphs, but when i try to plot an x, y graph on the plotting jpanel it does not show … | |
Hi..i am calling a method where i am selecting a row from DB, this is happening n no of times....bt after somoe no of select statement, connecttion has been lost. Is there any type of limitation with no of select with hibernate. or any issue with .hbm file... my .hbm … | |
how to create a database in Ms Access and connecting it to forms that is created using swings in java using Netbeans 5.5.... can u please explain me with an example in netbeans 5.5 please | |
can anyone help me look over my code? The Course class A Course object should store the department, course number, and course title. It should have linked lists of prerequisites and "subsequents" (the courses for which this course is a prerequisite). The constructor should construct a course given a department, … | |
public class Test { public static void main(String[] args) { int max = 0; max(1, 2, max); System.out.println(max); } public ststic void max( int value1, int value2, int max) { if (value1 > value2) max = value1; else max = value2; } } | |
Hello I am trying to get to a Component On a JInternalFrame. I have a reference to the frame on the frame there is a panel. on the panel there is a JTabbedPane. to add a tab to the JTabbedPane I need to reference the Pane. Is there a way … | |
Hi, I have a javaproblem that I just can't solve. "Write a [B]recursive[/B] method who returns the largest value in an array with the signature: [CODE]public int max(int[] v)[/CODE] (Hint: If you need to, use a private help-method) It would be easy if it was allowed to change the signature … | |
hi everyone. my name is chris..i am new to javw pogramming i just have the feelings that i can get what i hv been looking for here.. i startd reading java sometimes ago and i got chocked whn i got to evnt handling... i relly wantto be a java pogrammer..i … | |
hi, i am creating a small program for an assignment to store and retrieve information from a database. I have created arraylists to add and retrieve the data. just wondering if i am going about it the right way. One of the problems is that when the information is displayed … | |
[CODE] public void mouseClicked(MouseEvent e) { store clickedStore = null; for (int i = 0; i < stores.length; i++) { if (stores[i].isClicked(e.getX(), e.getY())) { clickedStore = stores[i]; break; } } } [/CODE] Is it possible to display the result of the above loop as a string? I have tried various … | |
plzz help me........... i want to list all the sub directories,files(including subdirectory files) in a particular drive(C,D,E,etc). | |
I keep getting a"Can't find symbol" error and code will not compile. Assignment already late and need help ASAP. [CODE]//Inventory Program Part 3 //IT215 week 6 class Inventory { String itemNumber; //stores item number String name; //stores name int stockQuantity; //stores quanity in stock double pricePerunit; //stores price String departmentName;//Department … | |
Hi, I am having a problem in using radio checkbox to change the color of a graph. The main Idea was to add checkboxes to a graph and also add different shapes to the graph code which was given. The code I tried is the following : [code]import java.applet.*; import … | |
Hi guys, I really need some help with this, I've spent hours looking for a solution. I have 4 classes of which 2 are important right now. 1. The user enters his username in the JTextField userF, if I print that userF.getText() in the class where userF is created I … | |
i creeat a jar file,i used system.out.println to display records on screen.but the problem when i click on jar file nothing is displayed.it is displayed only when i am opening command prompt and entering java name of file.so result is displayed on console (msdos) but i want result to be … |
The End.