35,618 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
29
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
105
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
218
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
131
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
210
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
99
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
109
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
216
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
216
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
115
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
92
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
156
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
108
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
238
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
110
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
69
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
46
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
27
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
57
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
122
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
112
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
102
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
200

The End.