36,051 Topics

Member Avatar for
Member Avatar for 117

Hello, I have worked on a project to make a custom-like Internal Frame. There are also other classes which extends it, instead of JInternalFrame. The project works quite good, but there is a problem. The discription of how the JPanel window works: _______________________________________________________________ There is a main JPanel which contians …

Member Avatar for JamesCherrill
0
284
Member Avatar for uday_2

In main.html i will have two text fields one is the name of the html page i need to create and another is number of text fields, once i enter number(for example three) in main.html, within the same page dynamically 3 text boxes should be created using javascript... now if …

Member Avatar for uday_2
0
213
Member Avatar for bostondevin

I have two instances of Tomcat running on my server. I'm in the process of getting them to run as Windows Services (using the services.bat file in the bin - making sure the two service names are unique) and i'm getting stuck getting the second instance to work as it …

Member Avatar for stultuske
0
264
Member Avatar for KhubaibQaiser

I want to know how can i use a servlet to generate a table (time table for example) dynamically in a jsp page? The result should come between header and footer inside a div (see the picture) http://img191.imageshack.us/img191/8942/nbo6.png <html> <head> <title>Time Tables</title> <link href="default.css" rel="stylesheet" type="text/css"/> </head> <body> <div id="header"> …

0
125
Member Avatar for <sum>

I am using JQplot and I need to download these in form of image is there any way to convert JQplot to image and simontaniously it save to any folder

Member Avatar for dilang
0
71
Member Avatar for Benjamin_4

below's code is a code i wrote to get the value of 'monthly Depreciation' when i select the row on my jTable by either mouse-clicked or key-pressed. but it only selects the first value for 'monthly depreciation' when i click on the rows or key-press.the problem i know is coming …

Member Avatar for mKorbel
0
283
Member Avatar for java_programmer

I am trying to develop an application where user will upload a file from screen, the file will be processed in server side. I am using Adobe Flex for UI, Spring 3.2 as middleware and Java 5. I can successfully upload the file and in server side can get the …

0
165
Member Avatar for asif49

Class A private X x; public Method(X x) { this.x = x; } public void stuff() { Method2 m2 = new Method(); m2.doThis(x); } Class B public Method2() { } public void doThis(X x) { X copyOfX = x; // MAKE CHANGES TO copyOfX here } What happens is. When …

Member Avatar for JamesCherrill
0
152
Member Avatar for lauraroxi

Hello! I have to implement a Java project using Session Java. Do you have any idea from where should I start and what exactly implies Session Java?

Member Avatar for stultuske
0
86
Member Avatar for manel1989

Hi everyone I'd like to know how I can fill a matrix [n] [m] from a vector of size n * m Thank you very much every one

Member Avatar for jackmaverick1
0
253
Member Avatar for ChPravin

Hello All, Is there any way to add a text file while creating an executable jar file in eclipse? Regards

Member Avatar for devin.mcknight.102
0
8K
Member Avatar for anestistsoukalis

I would like to make clearly that i do not ask somebody to write the code for me. This is useless for me and also annoying for you: I have to do the following task. Create a Java Frame for some functions in my java project. So here is the …

Member Avatar for JamesCherrill
0
268
Member Avatar for sasikrishnasamy

Hi, I would like to know which closing and which if statement is more advisable and why below mentioned conditions. Condition1: while(iterator.hasNext()) { roDetailsVO = (RODetailsVO) iterator.next(); callableStatement = connection.prepareCall("{call testpac.test(?,?)}"); callableStatement.setInt(1, roDetailsVO.getInboxHdrId()); callableStatement.setInt(2, roDetailsVO.getUserId()); callableStatement.close(); } OR Condition2: while(iterator.hasNext()) { roDetailsVO = (RODetailsVO) iterator.next(); callableStatement = connection.prepareCall("{call testpac.test(?,?)}"); callableStatement.setInt(1, …

Member Avatar for aruru49
0
123
Member Avatar for Hanyouslayer

Ok, before everyone gets mad at me for not looking around the board for these topics, I have, but they weren't my problem. My problem I am having is calling the Polynomial class. I know how to call classes in a different class, but this is a bit different. I …

Member Avatar for JamesCherrill
0
1K
Member Avatar for malkani.ji.73

Please help to create a driver file of the given code becoz i dont know what should i do to create a driver file. import javax.swing.*; class Product{ private String PId; private String PName; private String PPrice; private String Pcategory; private String PQuantity; private String PDescription; public Product(){ PId=null; PName=null; …

0
213
Member Avatar for nathaniel23456

Here is my code import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) { String[] name= new String[10]; int[] mark=new int[10]; int n=0; System.out.print("#Number of students: "); try{ BufferedReader bufferRead = new BufferedReader(new InputStreamReader(System.in)); n = Integer.parseInt(bufferRead.readLine()); } catch(IOException e) { e.printStackTrace(); } for(int …

Member Avatar for stultuske
0
219
Member Avatar for enakta13

Hello, I am currently struck! I need a way to stop an already ongoing process by a button, using another button. Explanation:- 1st Button Action private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { . . some actions which is a ongoing running (for ex: timer countdown) . . } 2nd Button Action private …

Member Avatar for stultuske
0
383
Member Avatar for nasaha

please help me as i m new to java i want to write a java code for Caesar cipher. the instuctions Cryptic This class h0as only class methods that encrypt and decrypt a String with a Key. The encryption and decrypting is done by using the encode and decode method …

Member Avatar for stultuske
0
144
Member Avatar for Layki

Hello everyone , I'm trying to update an existing Excel file(.xls) and add some rows in it . I already can open an xls and display it in a jTable, but i want to add rows to a specific sheet that i choose in a combobox . My xls have …

Member Avatar for JamesCherrill
0
344
Member Avatar for hhenali

#include<iostream.h> #include<conio.h> #include<string.h> #include<stdlib.h> // define maximum number of patients in a queue #define MAXPATIENTS 100 // define structure for patient data struct patient { char FirstName[50]; char LastName[50]; char ID[20]; }; // define class for queue class queue { public: queue (void); int AddPatientAtEnd (patient p); int AddPatientAtBeginning (patient …

Member Avatar for kal_crazy
0
1K
Member Avatar for ghfeyn

Hi everyone, I am having trouble with getting output from the console onto a file, for example a .TXT. I suspect that I have to make use of the System.out function, but I can't quite figure out how I might use it. Thanks for the help

Member Avatar for JamesCherrill
0
6K
Member Avatar for nathaniel23456

Ok basically i have the expected output. I have tried part of the code however i am confused as to how i am meant to input the students name and their module mark. Example Input: Commentary: A N Other The Students name 50 Their module mark B N Other The …

Member Avatar for stultuske
0
103
Member Avatar for malkani.ji.73

Aoa... i m new to java.. please help me to correct this program given blew. it shows error of illegal start of esxpression.. how could b it seems as correct program please help me.. thanks alot **error: illegal start of expression JOptionPane.showMeassageDialog(null, "ID: " + ID + "name: " + …

Member Avatar for stultuske
0
261
Member Avatar for IIM

I tried using Daniweb OAuth for android application but didn't able to understand as it requires redirect url but in my case it is a standalone desktop application interacting with dani webapi's. Do i have to create a webapp and then my application instead of contacting daniweb,contact my website and …

0
89
Member Avatar for madhura_1

hiii.. I got this strange problem.i m refreshing my jframe after every second.This jframe contains a button called addbutton.This addbutton opens another jframe.and that jframe contains a JComboBox .The problem is after every second the JComboBox is getting refreshed.I dont understand why.Before the user gets time to select any item …

Member Avatar for madhura_1
0
404
Member Avatar for Violet_82

Hi all, as some of you might know the API is my nightmare. I know it's important and therefore I am trying to use it as much as I can. Today I am looking at a program that uses buttons to change the font of some text. So, I have …

Member Avatar for Violet_82
0
161
Member Avatar for MariannJ

How to Compare a radio Selection in JSP. I want to make radio selection unselectable depending on the another radio selection. Below is Jsp Code. The JSP Page is linked with some Java files where the retrieve and display is done from the database. Below is the link which contains …

Member Avatar for stultuske
0
178
Member Avatar for johnmecanse34

Hi, What is the default value of float and double datatype in Java? Its my interview question anyone know the correct answer? anyone..

Member Avatar for stultuske
0
228
Member Avatar for ObSys

Trying to return Multiple Card objects from a hashmap Currently using the following code private HashMAp<Integer,Card> allCards = new HashMap<Integer,Card>(); public Card getAllCards() { Collection col = allCards.values(); for(Card c: col) { return c; } } This works but only returns 1 Card object from many. How can I change …

Member Avatar for ObSys
0
170
Member Avatar for kyriacos1986

I have been asked to count the overal time of an album. The user enters minutes and seconds in the formmat of mm.ss. I have wrote the folowing code but I don't get the result I supposed to get. I.E : 1st:3.55, 2nd 3.55 I got 7.1 instead of 7.50. …

Member Avatar for kyriacos1986
0
135
Member Avatar for kyriacos1986

I am trying to calculate the overall time of an album. The user enters the track length (double) in format mm.ss . Then convert this in a String so I can calculate min and sec separately. public void overallRunningTime() { int min = 0; int sec = 0; for(int i …

Member Avatar for kyriacos1986
0
112
Member Avatar for manel1989

Hi everyone! I have in my GUI and two radio button **choco** and **gecode** and under each button (choco or gecode)I have 2 radio buttons *solution optimal* and *Feasible solution*: my problem lies in the selection buttons. Let me explain: when I click the radio button **choco**, I …

0
158
Member Avatar for sk8ergirl

Hi, I'm trying to load four file File1 contain 50 first name File2 contain 50 last name File3 contain 50 dpeartment File4 contain 50 id number I want to load these file for example when the files load I want to generate (randomly) this output id,first name,last name, department but …

Member Avatar for stultuske
0
140
Member Avatar for murali2489

Dear All, I am trying to understand RMI Concept and have tried the sample steps and programs written in Oracle website [http://docs.oracle.com/javase/tutorial/rmi/compiling.html](null) In this URL they have mentioned to run the command as below javac -cp c:\home\jones\public_html\classes\compute.jar client\ComputePi.java client\Pi.java mkdir c:\home\jones\public_html\classes\client cp client\Pi.class c:\home\jones\public_html\classes\client I have tried the exact command …

Member Avatar for murali2489
0
280
Member Avatar for london-G

Hello, I am currently using jtatoo to improve the look and feel of my GUI. The thing is that sometimes it works perfectly while sometimes it does not. I don't get any errors and I think this might be a bug with it. Is someone here aware of how to …

Member Avatar for mKorbel
0
68
Member Avatar for Neon Tetras

Hi guys. I decided to post this simple Photo viewer application. Its strictly for beginners, and cab be improved. /** * * @author Neon Tetras */ import java.awt.Image; import java.io.File; import java.io.IOException; import javax.imageio.ImageIO; import javax.swing.ImageIcon; public class ImageViewer extends javax.swing.JFrame { /** * Class constructor: ImageViewer */ public ImageViewer() …

Member Avatar for stultuske
3
5K
Member Avatar for Benjamin_4

i want to convert the value of my date into an integer value, i am using a jDateChooser in netbeans(swings) currently in my code below the value for inputDate is fixed or assingned but i want it to be based on the date a user picks using the jDateChooser. public …

Member Avatar for stultuske
0
24K
Member Avatar for Liam Stover

I followed this code im new to programing and i wanted to make someones elses program then chnage it to my liking, i finesd the code and i tryed running it and all it send in the console was "<terminated> Main[Java Application] C:/Program Files(86x)/java/jre7/bin/javaw.exe (Nov 19, 2013 11:15:54: PM)" the …

Member Avatar for Liam Stover
0
103
Member Avatar for hbhatti18

How can I write a program that reads in a bar code (with : denoting half bars and | denoting full bars) and prints out the zip code it represents. Print an error message if the bar code is not correct. Once again I am very new to java and …

Member Avatar for arronlee
0
635
Member Avatar for Mr.M

Hi Dw This is my second time asking this question but now I will just make it straight forward because I didn't get any response from my other question. I want to know how can I write a program or a script in java that will be burnt/embedded to a …

Member Avatar for JeffGrigg
0
137
Member Avatar for ThisIsMeOrIsIt

Hi all - I need to write a program that reads in an array of strings from a file and uses a radixSort method to sort and print the array based on what characters they are composed of. The implementation should be able to handle strings of characters. The characters …

Member Avatar for mas971
0
4K
Member Avatar for murali2489

Dear Team, I am Using Eclipse to Run my java programs. But when I try to run a Simple hello world program from Command prompt, I get the below error "Could not find or load main class Test" Test.class resides inside C:\ I Went inside C:\ in Cmd and typed …

Member Avatar for murali2489
0
2K
Member Avatar for 2butawil

write the psuedocode for a computer program that computes the sum of the numbers on the diagonal of a 10 x 10 integer array named *numbers*. Here is what i got but i'm not sure: int SIZE = 10; int [ ] numbers = new int[SIZE] [SIZE]; for (int I …

Member Avatar for JamesCherrill
0
125
Member Avatar for amalcolm96

So I just began a college course in Java, and our first assignment was to write a text-based Mastermind game in Java. I was able to lay out all the necessary framework, but the area that still has me in a fix is getting the computer to check the secret …

Member Avatar for jwenting
0
394
Member Avatar for fuhanspujisaputra

Hai everyone, i have a problem, currently i am developing software using Java (netbeans): Currently my database looked like this: Username and UserType Fuhans and Administrator Nies and Member When i login with Username: Nies The program respond, but it gave me the dialog box where both Username are displayed. …

Member Avatar for stultuske
0
269
Member Avatar for anuj_sharma

Hey Guys, I am interested in web development but i am confused in which platform to choose, Java or .NET. I have done core java but i got to know from somewhere that Java is basically for software development and DotNet is specifically for web development but Java can be …

Member Avatar for rumisa
0
343
Member Avatar for jethro.njini

i have downloaded a number of web page templates and i want to use one or more of them in netbeans. ho do i go about this. do i have to replace the already existing index.html file in my project with the one i downloaded, or where do i copy/import …

Member Avatar for mmcdonald
0
218
Member Avatar for mcoliver88

Hi I am creating a java applet for an assignment, but if hit a snag. I have had to create a sales table for different sales people. I have made it that people can click "sales person 1" and it will display his sales. The issue is when you click …

0
111
Member Avatar for ravsau

I am trying to create a menu GUI. I am having problems with the action listeners Any help would be great. Thanks Write an GUI application that display a menu system. The menu system should allow the user to select one package, one phone, and any of the options desired. …

Member Avatar for Justin_7
0
3K
Member Avatar for Kalamari

First time posting, so if I have formatting problems I'm sorry int randNum=0; Scanner in= new Scanner (System.in); Random randNumlist= new Random(); System.out.println("lowercase letters [a]"); String input= in.next(); System.out.println(" how many letters max 14"); int input2=in.nextInt(); if ( input.equalsIgnoreCase("A")) while( !(randNum>= (char)97 && randNum<= (char)122)) { for (int n=1; n …

Member Avatar for JamesCherrill
0
106

The End.