36,051 Topics

Member Avatar for
Member Avatar for aryowap

How to change this applet to swing? [CODE]import java.applet.Applet; import java.awt.*; import java.io.PrintStream; public class Hounds extends Applet { public String getAppletInfo() { return "Hare and Hounds"; } public String[][] getParameterInfo() { return parameterInfo; } public void init() { String s = getParameter("bgColor"); try { BG_COLOR = s != null …

Member Avatar for jon.kiparsky
0
190
Member Avatar for iamacup

How to listen for key presses that are not on a focused window Ok, so my problem is I have a tray application written in java and I want to apply some user configurable hotkeys. User presses F10 for instance and something happens... I started to google for key loggers …

0
30
Member Avatar for beanboy

I'm a computer graduate, working on java programming since an year.I'm just writing programs all the time and didnot get a chance to implement any of the engineering practices that I have studied at college. Now I've got a month free time and tell me some interesting things I could …

Member Avatar for WargRider
0
106
Member Avatar for Sunshineserene

[CODE] package com.ibm.compbio; public abstract class DynamicProgramming { private Cell prevCell; private int score; private int row; private int col; protected String sequence1; protected String sequence2; protected Cell[][] scoreTable; protected boolean tableIsFilledIn; protected boolean isInitialized; public Cell(int row, int col) { this.row = row; this.col = col; } /** * …

Member Avatar for WargRider
0
219
Member Avatar for rlhh

[CODE]package ATM; // ATM.java import javax.swing.*; public class ATM { private boolean userAuthenticated; // user authentication private int currentAccountNumber; // current account number private Screen screen; // JOptionPane (pop-up(s)) private CashDispenser cashDispenser; // virtual cash dispenser private DepositSlot depositSlot; // virtual deposit slot private BankDatabase bankDatabase; // account database private …

Member Avatar for rlhh
0
2K
Member Avatar for aditya027

class C{ public static void main(String a[]) { int i1=9; int i2; if(i1>3) { i2=8; } System.out.println(i2); }}

Member Avatar for WargRider
0
132
Member Avatar for Mylsamy

Hi all, I am using Java Servlets with XML and XSLt, I am getting the values from text area in XSL , the value is using Escape method in Javascript. The code is Like [code] src = frm.txtFeedBackDsc.value; src=rtrim(src,' '); src=ltrim(src,''); dest= escape(src); frm.hsFeedbackDsc.value=dest;[/code] And the Value is stored in …

Member Avatar for masijade
0
211
Member Avatar for Stefano Mtangoo

I have tried whatever I can but i'm yet to find a definition I can understand. Would anyone try to "educate" me on what is enterprise java beans?

Member Avatar for Stefano Mtangoo
0
121
Member Avatar for nihar.budumuru

i need some project topics in image processing and image compression to do my final projects send me some list plaese....

Member Avatar for masijade
0
100
Member Avatar for dylgod

I'm trying to write a program that prints out the largest and smallest of four numbers that are inputted using a JOptionpane, but I cannot figure out how to sort out the integers with if and if else statements. Anyone have any advise?

Member Avatar for WargRider
0
110
Member Avatar for killblazer

Ok, I'm new to java and I need a little help with this if statement. Or possibly a different approach on how to write it. The if statement first needs to determine what type of package the user has so they may be charged a base fee. (Package A, B …

Member Avatar for killblazer
0
217
Member Avatar for abbyo

Ok, I'm having the hardest time writing this code for work. Any suggestions on how to get me going in the right direction on this code would be great!!! Project: I need to make uninstalled fonts available for viewing for my co-workers. Therefore, I'm to write a code that can …

Member Avatar for NormR1
0
217
Member Avatar for java_programmer

I have installed Tomcat 6.0.28 in my machine. But when trying to start it, it is not being started. A command window open for a fraction of second and then closed. No log or error is written in log. I have set up the JAVA_HOME, CATALINA_HOME, classpath and path variables. …

Member Avatar for NormR1
0
116
Member Avatar for bnasah

PLEASE HELP. Hi I get the following error when I compile my java code and I have been trying to resolve this for past 4 hours without a solution. Java code import java.util.*; /**********************/ /* Class Subscriber */ /**********************/ public class Subscriber implements Runnable { String phoneNumber; String name; Integer …

Member Avatar for NormR1
0
93
Member Avatar for manikandan_dani

Hi, I am developing web application using JSF2.0 along with netbean6.8 IDE. In this project, i use rich faces 3.3.2. when i run the application, it throws the following error deploy?path=C:\Documents and Settings\workplace\JSF3\build\web&name=JSF3&force=true failed on GlassFish v3 Domain C:\Documents and Settings\workplace\JSF3\nbproject\build-impl.xml:598: The module has not been deployed. BUILD FAILED (total …

Member Avatar for ahmed.faraz
0
158
Member Avatar for -Ice-

this is my test data : {5,1,3,6,1}, {4,1,3,3,2}, {6,2,1,4,1}, {5,1,4,1,3}, {4,2,1,5,2} i want it to be output like this : 5,4,1,6,1,3,5,2,3,6,4,1,1,3,1,2,4,4,2,1,… this is my coding : [CODE] public int[] linear45(int[][] A){ int[] l = new int[A.length * A[0].length]; for(int i=0; i <3; i++) { for(int j= 0; j <= i; …

Member Avatar for NormR1
0
110
Member Avatar for ashwiniku

hi, i am getting below error plz help java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer at com.kotak.autoblocknb.transaction.Transaction.main(Transaction.java:38) [code]ArrayList<Integer> db2Crns=new ArrayList<Integer>(); ArrayList<Integer> oracleCrns=new ArrayList<Integer>(); ArrayList<Integer> leftOverCrns=new ArrayList<Integer>(); db2Crns=testDB2Connect.getDb2LoggedInCrns(); oracleCrns=testOracleConnection.getDataFromPartyAuditInfo(); for(int i=0;i<db2Crns.size();i++) { int x=db2Crns.get(i).intValue(); int y=oracleCrns.get(i).intValue(); if(x!=y) { leftOverCrns.add(db2Crns.get(i)); leftOverCrns.add(oracleCrns.get(i)); } else if(x==y) { leftOverCrns.add(oracleCrns.get(i)); } } int lastIndexOfOne=db2Crns.size(); for(int i=lastIndexOfOne;i<oracleCrns.size();i++) …

Member Avatar for ~s.o.s~
0
4K
Member Avatar for namritha rajesh

I am doing my final year of undergraduation and I need a java simulator that simulates a parking lot. Can anybody provide me with a simulator or suggest a open source simulator? I have no backgroung in building simulators. Is it easy? If I had to build a simulator on …

Member Avatar for jon.kiparsky
0
239
Member Avatar for kishore sy

how to read 25 digit number in java???? i want to write a porgram to perform addditon and substraction between 25 digit numbers

Member Avatar for kishore sy
0
557
Member Avatar for ashwiniku

i wanaa compare 2 array list and find the uncommon data in 3rd arry list i have written below code ArrayList db2Crns=new ArrayList(); ArrayList oracleCrns=new ArrayList(); ArrayList leftOverCrns=new ArrayList(); db2Crns=testDB2Connect.getDb2LoggedInCrns(); oracleCrns=testOracleConnection.getDataFromPartyAuditInfo(); int array1Size = db2Crns.size(); int array2Size = oracleCrns.size(); System.out.println(db2Crns.size()); System.out.println(oracleCrns.size()); for(int i=0;i<oracleCrns.size();i++) { String val=oracleCrns.get(i).toString(); int k=0; for(int j=0;j<db2Crns.size();j++) …

Member Avatar for masijade
0
112
Member Avatar for akilank

Hi.. I'd like to learn java.. Can anybody give me a link for online study or link for pdf or ppt??? If so, you will b thankful..

Member Avatar for ~s.o.s~
0
71
Member Avatar for fieryeagle

Hi ppl, I wanna write a supply chain management system using JSP and Oracle database. Anyone got experiences in coding SCM or similar systems in JSP? I wanna ask about the functionality aspect.

0
47
Member Avatar for mcsrekha

i am final year mca. i need to do mini project on java. please suggest me some ideas

Member Avatar for mcsrekha
-1
28
Member Avatar for srdva59

hi, i looking for a way to change text field date using up/down keys i have looking on google but i not find nothing working in both browsers any one know something like this? thanks for your help

0
58
Member Avatar for ryathegr8

how can i print an array element using [COLOR="red"]showMessageDialog[/COLOR] [CODE] for(int k=0; k<aSiz; k++){ JOptionPane.showMessageDialog(null,"New Array is \n"+array[k]); }[/CODE] i dont want "New Array is" to be repeated...... tell me fast.....

Member Avatar for javaAddict
0
123
Member Avatar for djenoe

i know i need to post properly using (code) (block codes),, this is my understanding of that rule if i'm wrong pls teach me, i will abide. thank you I have been trying to get this code right for 4 days, i am losing hope. i know you'll understand me. …

Member Avatar for djenoe
0
113
Member Avatar for vkuruvi
Member Avatar for djenoe

this is my whole code hi NOrmR1 would you give me a hand mate please [CODE] import java.util.*; class Property { private String ID; private String description; private String location; private double weeklyRR; private char status ; private boolean visibility; public Property (String pID, String pDesc, String pLOc, double weeklyR …

Member Avatar for djenoe
0
104
Member Avatar for HaveFun

Hi All, I need help. I want to make a background processing program. The idea is, the program will start in start up and every about 10 seconds the screen will pop up something. I wrote the code below. The program is starting when simulator begin. In console the timer …

Member Avatar for Jayavardhan
0
211
Member Avatar for interist

Hello all, how can I pass some input from Java ti C++ using sockets. The input is only two int numbers. Any help with the sockets, please. I'm new but I need them.

Member Avatar for VernonDozier
0
201
Member Avatar for riju_sh02

How is dialog box control used in net beans java?i know how to get it but not how to display some text or message in it. Please help.

Member Avatar for NormR1
0
43
Member Avatar for prem2

Hi , I want to get a String from command line argument and add the values. [code] class Sample { public static void main(String args[])throws IOException { String Given_Id=args[0];//Getting input int Add=0;; int Store=0; System.out.println("The length of the String is "+Given_Id.length());//Calculating length for(int i=1;i<Given_Id.length();i++) { Add=Given_Id.charAt(i); Store=Store+Add;//Adding values } System.out.println("The …

Member Avatar for kdmuk10
0
520
Member Avatar for bonett09

Whats wrong with my program? class Hw7{ public static void main (String args[]){ String s = "Hello"; int v = String s; System.out.println(v); } } This is the error thats brought up: --------------------Configuration: <Default>-------------------- C:\Users\Stephane\Documents\JCreator Programs\Hw7.java:5: ';' expected int v = String s; ^ C:\Users\Stephane\Documents\JCreator Programs\Hw7.java:5: not a statement int …

Member Avatar for WargRider
0
93
Member Avatar for kdmuk10

Here is my code, i am getting the following error message. How do i handle it? [code]package simp; import java.io.*; public class fCase { public static void main(String [] args) throws IOException { BufferedReader readObject = new BufferedReader(new InputStreamReader(System.in)); System.out.println("Enter your expressions here"); String userEntry = readObject.readLine(); String [] toki …

Member Avatar for kdmuk10
0
1K
Member Avatar for blueman:-0

i have alot of forms , when i press in button that's open the other form in new one how i can make it open in the same form & not open it in new one

Member Avatar for WargRider
0
167
Member Avatar for venkata krishna

hi friends which is easier to do programmming for speech recognition is it java or .net

Member Avatar for WargRider
0
58
Member Avatar for askreiyna

i want to make image detection system using java. dont know the specific area yet...anyone have any idea??? please help me..=)

Member Avatar for askreiyna
0
144
Member Avatar for Priya123M

Hi I'm a Javascript newbie. I am displaying list of things in my Jsp page. each row has two drop down menus and a radio button. When the submit is clicked it sends the index of the radio button clicked as a hidden parameter. I need to get the drop …

Member Avatar for javaAddict
0
4K
Member Avatar for har58

Exception in thread "AWT-EventQueue-1" java.security.AccessControlException: acc ess denied (java.util.PropertyPermission oracle.jserver.version read) hi, i m building an online examination application. The code is getting complied .but it throws an exception.Below i m pasting d code as well as exception.plz help me. It is a simple program for login. It matches d …

Member Avatar for har58
0
946
Member Avatar for emclondon

hello guys, I am trying to add an image to java panel. I have tried Paint, ImageIcon and every other sort of methods and failed. can someone explain me how do I add an image onto a panel? thanks for your time. cheers!

Member Avatar for emclondon
0
570
Member Avatar for tldorr

I need some assistance with my calculator code. I have developed a fully funcitoning mortgage calculator up to this point. I have one small change that I want to do. Right now this is considered an applet and I want it to be considered an application. It is my understanding …

Member Avatar for NormR1
0
403
Member Avatar for maieutiquer

I have 3 text fields and a button, and when a user presses the button, I would like to check if he has inserted integer values in the first two of them. If yes, then the sum of both of them is shown in the third one. If not, then …

Member Avatar for maieutiquer
0
116
Member Avatar for the reporter

i have to filter the user input in the comboxbox under my "search tab" eg. if the user were to type "y", "YAHOO" or any words related to "y" will appear on the filter list and allow the user to select. anyway my combobox values are taken from text file …

Member Avatar for Darryl.Burke
0
1,000
Member Avatar for ekofo

Hi clecer people! I am new can i have a little help here please. I wanted to mcuh the name and password of employee, entering and exiting the building ( it works but not completely) The task Implement a system that restricts which members of staff that have access to …

Member Avatar for NormR1
0
120
Member Avatar for dupowdis

Thanks for the help in advance. So basically I have some Strings (lets call these Strings "Numbers") that looks like this. [CODE] Numbers1 = " 3.74343E-01 4.82245E-01 1.95635E-01 -1.05565E-01 3.81702E-02" Numbers2 = " 2.23965E-01 1.29925E-01 4.08791E-02 -4.21790E-02 -1.21410E-01" Numbers3 = " -2.73593E-01 8.63407E-02 -1.37682E-01 -3.01382E-01 -1.51439E-01" [/CODE] My program is …

Member Avatar for NormR1
0
95
Member Avatar for SHARKASI

i've just 3 days to give the full program to the doctor but i've a problem and i'm tired to find this problem could anyone help me to fix it please this program is currency converter the code is here: import java.awt.*; import javax.swing.*; import java.awt.event.*; import javax.swing.event.*; import javax.swing.Icon; …

Member Avatar for jon.kiparsky
0
212
Member Avatar for bonett09

So I have this question: Write a program that creates a constant MULTIPLE of type int. Set MULTIPLE to 3. Output the times table between 1 and 10 for MULTIPLE. Modify the program to output the times table of 7. And so far I've written this: //5. - Homework class …

Member Avatar for jon.kiparsky
0
121
Member Avatar for Maria5683

I'm using the Scanner class and need help in setting up get and set methods for where the program asks the user to enter a first name and a last name as String type.( 2 methods, 1 for first, 1 for last) I need to know how to store the …

Member Avatar for NormR1
0
186
Member Avatar for john butler

Hi All! Can anybody please tell me that how closely Android Application Development is associated with Java. That is, is it possible for a person working in Android Development to work on Core Java or J2EE oe J2SE ever? Let me make my question a bit more clear: " As …

Member Avatar for emclondon
0
131
Member Avatar for linkingeek

Here is a code for writing a text file from console but i have problem regarding its portability. [CODE]import java.io.*; class KtoD { public static void main(String args[]) throws IOException { String str; FileWriter fw; BufferedReader br = new BufferedReader( new InputStreamReader(System.in)); try { fw = new FileWriter("test.txt"); } catch(IOException …

Member Avatar for jon.kiparsky
0
117

The End.