35,618 Topics

Member Avatar for
Member Avatar for gautampatel151

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 …

Member Avatar for gyannitin
0
98
Member Avatar for gedas

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 …

Member Avatar for gedas
0
87
Member Avatar for akondray

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 …

Member Avatar for Taywin
0
160
Member Avatar for pyprog

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 …

Member Avatar for Taywin
0
81
Member Avatar for flyingcurry

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 …

Member Avatar for Taywin
0
180
Member Avatar for khaled_jawaher

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

Member Avatar for JamesCherrill
0
331
Member Avatar for rje7

[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() …

Member Avatar for javaAddict
0
169
Member Avatar for adams161

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 …

Member Avatar for adams161
0
193
Member Avatar for virendra_sharma

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 …

0
67
Member Avatar for purijatin

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 …

Member Avatar for purijatin
0
101
Member Avatar for qbmike

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 …

Member Avatar for qbmike
0
180
Member Avatar for Bladtman242

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 …

Member Avatar for Bladtman242
0
268
Member Avatar for babbu

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 …

Member Avatar for babbu
0
63
Member Avatar for Chalandria

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 …

Member Avatar for Taywin
0
136
Member Avatar for Razultull

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 …

Member Avatar for Razultull
0
154
Member Avatar for powerson65

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 …

Member Avatar for powerson65
0
108
Member Avatar for joshianurag18

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 …

Member Avatar for SasseMan
0
135
Member Avatar for famida11

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

Member Avatar for stultuske
-1
79
Member Avatar for bkafroboy69

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, …

Member Avatar for bkafroboy69
0
119
Member Avatar for richies

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; } }

Member Avatar for stultuske
0
116
Member Avatar for ceyesuma

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 …

Member Avatar for ceyesuma
0
169
Member Avatar for Robban

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 …

Member Avatar for JamesCherrill
0
188
Member Avatar for shelexelex

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 …

Member Avatar for shelexelex
0
102
Member Avatar for jdiddy

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 …

Member Avatar for jdiddy
0
87
Member Avatar for Andy_Parr

[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 …

Member Avatar for haranaboy
0
90
Member Avatar for sannidhikumar99

plzz help me........... i want to list all the sub directories,files(including subdirectory files) in a particular drive(C,D,E,etc).

Member Avatar for jon.kiparsky
0
281
Member Avatar for soundman107

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 …

Member Avatar for Taywin
0
100
Member Avatar for Me12

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 …

Member Avatar for Me12
0
194
Member Avatar for Rick-KLN

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 …

Member Avatar for Rick-KLN
0
239
Member Avatar for khaled_jawaher

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 …

Member Avatar for khaled_jawaher
0
104

The End.