35,618 Topics

Member Avatar for
Member Avatar for syfr

Hello. Me and my classmates are working on a project and we ran into some trouble. We are making an online storage system and for the storage we need a map. We decided to do it with a table (letters from A-Z are rows, numbers from 1-10 are collumns) that …

Member Avatar for anand01
0
119
Member Avatar for Maymac

I am new to java programming. I am trying to create a GUI which includes JLabels, JPanels, JButton, text fields and labels. I am not using layout manager. Is there a particular structure in laying out the code that I should follow.? Thanks .

Member Avatar for JamesCherrill
0
115
Member Avatar for mcddewitt

Hello I am learning JSP authentication and am having issues. I think my code for this simple test looks pretty good but everytime I try to login I get my login error page: web.xml <!-- Define security roles --> <security-role> <description>administrator</description> <role-name>administrator</role-name> </security-role> <!-- Restrict access to all files in …

0
67
Member Avatar for Rvjain99
Member Avatar for velr

Hello! I am working on a server program that has a connection to a MySQL database. In one of my sql:s i need to use [URL="http://dev.mysql.com/doc/refman/5.0/en/user-variables.html"]User-Defined Variables[/URL] but i can't get it to work. The sql looks something like this: [ICODE]"SET @rank=0; SELECT id FROM (SELECT @rank:=@rank+1 AS rank ..."[/ICODE] …

Member Avatar for JamesCherrill
0
2K
Member Avatar for _Brooksy

** Having trouble running this code as the compiler keeps having issues with the method 'public void mannipulate()', I'm new to java so forgive my ignorance, but I've been trying to rearrange everything in every which way to please this thing and its just not turning out right. I'm sure …

Member Avatar for JamesCherrill
0
310
Member Avatar for Jaydenn

How exactly would I go about doing the following in C#? public class Test { public static void main(String[] args) { Test(new TestInterface() { @Override public void SomeMethod() { //create instance of the interface within parameters of a method. } }); } public static void Test(TestInterface _interface) { } } …

Member Avatar for Jaydenn
0
228
Member Avatar for daravindm

please give the code for searching a value from mysql databse in jsp page?... i created **1.search jsp 2.searchAction.jsp 3.searchBean.java** and created **DBConnection.java** for db connection and i need to view the search result in new page which is **searchresult.page**

Member Avatar for anand01
0
69
Member Avatar for ausops

Lets say we have an 1d array called array. Now I know array.length gives me how many primitive types or objects are in a 1d array but what does it do for a 2d array with rows with different rows? {1, 2, 3, 4} array.length would be 4 but if …

Member Avatar for JamesCherrill
0
2K
Member Avatar for trishtren

Hello, Iv been working on a project in java and i want to implement an export to HTML 5 feature. I have looked around and not seen many useful discussions on how to implement this feature. A number of software products i looked into such as scirra construct and adobe …

0
84
Member Avatar for ganges
Member Avatar for jackbauer24
0
107
Member Avatar for sammoto

So it's my first time trying to do a loop and I've come across something that I'm not experienced enough to explain... My program compiles fine, but after I enter my third number (variable "a", see code below) it just skips a line and does nothing. It just lets me …

Member Avatar for sammoto
0
241
Member Avatar for rohit_static

Hi, I need to build a rating system for a travel community . It will contain user preferences such as say average time of the aircraft,aircraft age,legroom,number of stops, route quality. These might be modelled as checkboxes on my web page. The user can then select which all criterias he …

Member Avatar for emilo35
0
159
Member Avatar for anisha.silva

HI, I have a spec for a golf tournament report. in it it says that to generate a report for less than 200 players the processing time of the report should be within 15 minutes. how can i test this in junt the uril for the SRS is below (section …

Member Avatar for anisha.silva
0
65
Member Avatar for anisha.silva
Member Avatar for anisha.silva
0
88
Member Avatar for bibiki

I believe the title of my thread explains what I am trying to do... I have a .class file, I need to look at the code has generated the .class. is this possible, and if yes, can you tell me how?

Member Avatar for stultuske
0
229
Member Avatar for riahc3

Hey How do I correctly validate that a email is in the correct format? I tried using the Apache Commons Validator library but, since Im using a web service, it seems not to want to fix it up and use it. I comply the code, make the aar, put it …

Member Avatar for riahc3
0
178
Member Avatar for Cross213

I have an array of objects but when i traverse throught it to display its contents, it gives an error, but only if it is not full. Any suggestions? Below is the code snippet: for (int k = 0; k < array.length; k++) { msg += String.format(array[k].toString()); } JOptionPane.showMessageDialog(null, msg);

Member Avatar for Cross213
0
303
Member Avatar for sid78669

I am trying to find the point of intersection of a circle and a line through its center. I want to put an arrow on the point actually, to make a directed graph. After some calculations, I found that the math that would go in is, ![formula](/attachments/large/1/formula.JPG "formula") The figure …

Member Avatar for JamesCherrill
0
2K
Member Avatar for venkat arun

I am a recent immigrant from c++ to Java. I have this problem: I have an array of objects (not yet initialized using the new operator), that I need to pass to a member function of another class for storage. In c++ I would have made a pointer to the …

Member Avatar for sbp94
0
164
Member Avatar for gedas

Hey, i was wondering whether anyone ever came accross developing something that would allow to have a software installed on the vm. What i mean by that is that i would want to install ie (internet explorer)/or any other windows application whithin my java app. so it could be opened …

Member Avatar for NormR1
0
96
Member Avatar for new_2_java

Hi all, I have a java program when I compile it, it compiles fine, without any error or warning. However, when I run it, I get the following warnings. [code] bash-2.03$ javac CountSessions.java bash-2.03$ java CountSessions Writing data to file... Data written to file !! log4j:WARN No such property [maxFileSize] …

Member Avatar for NormR1
0
4K
Member Avatar for GeekTool
Member Avatar for Upoma

I am going to build a desktop software with client-server facility.What are the things i need to do for client-server? 1.Should i make 2 different version of the software?One with database for the server and one for client without database. 2.Or should i have some options in one software inside …

Member Avatar for JamesCherrill
0
805
Member Avatar for jeetudaljit

Pl. help in handling button events in JSP like calling a servlet on Button click or executing java code.

Member Avatar for ethar.ammar
0
1K
Member Avatar for john_beginner

hello all how can i clear the DOS screen through java program i hava search so many web site but i can't found the proper ans. thanx in advance [:)]

Member Avatar for stultuske
0
13K
Member Avatar for NestaMarley

The Application should be able to add an entry , view an entry and delete and entry.. All other functions are working properly but my applica tion cannot delete.. Please assit where i shuld place my delete method import com.jjpeople.addressbook.action.actionresult.ShowAddressActionResult; import com.jjpeople.addressbook.actionargument.ShowAddressActionArgument; import com.jjpeople.addressbook.actionargument.DeleteAddressActionArgument; import com.jjpeople.addressbook.businessdelegate.AddressBookDelegate; import com.jjpeople.addressbook.businessdelegate.AddressBookDelegateException; import com.jjpeople.addressbook.businessdelegate.AddressBookDelegateImpl; …

Member Avatar for stultuske
0
382
Member Avatar for Stein102

What I'm doing is making a game and I need to do this for my items: - Have an "Item" Class - Have other superclasses such as:Weapon,Armor,Food - Read XML file with items on it. - Create appropriate Item classes with the correct extended class. - Fill the fields with …

Member Avatar for JamesCherrill
0
198
Member Avatar for sammoto

Hi everyone, I'm trying to write a basic program to find the root of an equation. I just tried compiling it for the first time and I get the following error: RootFinder.java:6: <identifier> expected public static double searchValue(double x0, x1, a) { ^ RootFinder.java:6: <identifier> expected public static double searchValue(double …

Member Avatar for sammoto
0
102
Member Avatar for anand01

hi all , I know how to develop Mvc architectur application , Now I paln to learn frameworks, which one will be best choice structs or spring? , should I learn both ?

Member Avatar for anand01
0
111

The End.