36,051 Topics

Member Avatar for
Member Avatar for abdulraqeeb33

i need to display the contents of a database(table) MS access db, on to the screen. how do i got abt it??? the data keeps changing dynamically...the program should be able to refresh it self

Member Avatar for Ezzaral
0
174
Member Avatar for kumar.vsv

Hi, I am kiran I have a task like If I click one option box like country then corresponding states to appear,than I click states than next option box must display cities.please see this link you will get an idea [url]http://www.bharatbloodbank.com/search.php[/url] How to do it in struts. If I want …

Member Avatar for jwenting
0
74
Member Avatar for luisator

:?: Hi: I am postin in this forum because someone told me all the windows applications were developed in visual basic. I need to know which is the DLL associated with the sound recorder. I nedd to use the record method to call it from a java application. I hope …

Member Avatar for jasimp
0
71
Member Avatar for saintb

following masijade advice i tried busting my head abit. i have written the following code import java.awt.event.*; import java.awt.*; import javax.swing.*; import javax.swing.border.*; public class Game extends JApplet implements ActionListener { //Creating a new JPanel called panel1 JPanel panel1 = new JPanel(); //Creating a JLabel for panel1 JLabel header = …

Member Avatar for masijade
0
132
Member Avatar for KimJack

Hi, I am working on a sort of stack calculator. If anyone can suggest a better method please advice: Basically, using the stringtokenizer to break the string into tokens. If the token does not equal "add" or "sub" or if the token is a digit push it onto the stack... …

Member Avatar for javaAddict
0
818
Member Avatar for abdulraqeeb33

this is the output on server init: deps-jar: compile-single: run-single: checking the client of ip 169.254.86.65 checking the client at port 59000 checking the client at hostname RAF System with169.254.86.65is online probing the client of ip 169.254.86.65 creating the client of ip 169.254.86.65 whose hostname is RAF at port 59000 …

0
110
Member Avatar for Kusno

I'm able to set UIManager for UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel") and UIManager.setLookAndFeel("com.sun.java.swing.plaf.motif.MotifLookAndFeel") but for UIManager.setLookAndFeel("com.sun.java.swing.plaf.metal.MetalLookAndFeel") I get an error like this : java.lang.ClassNotFoundException: com.sun.java.swing.plaf.metal.MetalLookAndFeel What's wrong with my code ?? Thanks, Kusno.

Member Avatar for Kusno
0
246
Member Avatar for oakdale95

im having problems with my java homework. I really need help. I need to use a loop make sure what the user input for their grade is vaild the grade has to be between 150 and 0. So can somebody show me the code to use import java.util.Scanner; // Needed …

Member Avatar for jasimp
0
111
Member Avatar for chickenmcnugget

to anyone who can help me out with this its of no big importance i was stumbling one day and this came across this little snit bit of what looks to be like a program or something so i tried starting it and i have no idea whats going on …

Member Avatar for chickenmcnugget
0
82
Member Avatar for abdulraqeeb33

hi, i am new to java... i need to start two programs in a server just after user clicks a button in the jform. for this i may require multi threading.. can any one plz give me a small example or a link where i can see threads created, each …

Member Avatar for abdulraqeeb33
0
114
Member Avatar for pinoyboi619

I need help with this coding because I am having trouble with a lab of my class. I am up for any hints/tips and techniques... and code if desired. Well I am hoping that someone will respond and thanks.

Member Avatar for jasimp
0
66
Member Avatar for dimples09

> Using a Binary Search Tree > Using the LinkedBinarySearchTree class in the jss2 for chapters 12 and 13, write a program that exercises all of the operations except: > removAllOccurrences > findAgain > replacement > Details > Your program will read instruction from the file: numbers.txt > The file …

Member Avatar for dimples09
0
165
Member Avatar for welbyobeng

Hey I am a newbie in java and I was wondering if someone can help me. Where would I place [QUOTE]int [] qDifference = new int [3]; for(int i = 0; i < 3; i++) { qDifference[i] = q[i + 1] - q[i]; }[/QUOTE] in the code below to show …

Member Avatar for welbyobeng
0
90
Member Avatar for yassar

Hi, I get the following exception when i try to run the following code segment. [code=JAVA] stmt = (Statement) conn.createStatement(); rs = stmt.executeQuery( "SHOW TABLES"); if(rs.first()) { stmt.execute( "DROP TABLE " + rs.getString(1)); while (rs.next()){ stmt.execute( "DROP TABLE " + rs.getString(1)); } } [/code] And the exception i get is: …

Member Avatar for Ezzaral
0
151
Member Avatar for abdulraqeeb33

/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package server; /** * * @author 007 */ import java.io.*; import java.sql.*; import java.util.*; import java.util.Random.*; import java.net.*; import java.lang.String.*; import java.io.InputStream; import java.lang.Object.*; import java.net.ServerSocket.*; public class aptserver implements Runnable{ …

Member Avatar for abdulraqeeb33
0
244
Member Avatar for paurik

I am using [B]Java Wrapper Service API[/B] to launch my application as service. i have been already installed my application as for Linux and Widnow os. but i have no proper idea for mac os if some body have and idea then please Replay me.

0
67
Member Avatar for Xctive

Here i need to write this code for class and i am getting the missing return statement error. Heres my code : import java.util.Scanner; import java.text.DecimalFormat; public class derived extends Foreign { Scanner keyboard = new Scanner(System.in); private String date; public void vertDisplay() { super.vertDisplay(); System.out.println("Date = " + date); …

Member Avatar for Xctive
0
79
Member Avatar for nare_splen

Hi, I had a jsp which is built using struts. It is 54 Kb. [B]Problem is page is not getting loading in JBoss server. Server console error is : “Code too large for try statement”.[/B] When I see the java file what server generates for the jsp, all the (form)fields …

Member Avatar for jwenting
0
88
Member Avatar for nsuleiman

Hello everybody I am doing a project on PDA PalmOSo and am using SuperWaba to develop the application however, since I am not more familiar with this tool I need help. So please any who has a experience on this tool help me on the following questions. My question is …

Member Avatar for Ezzaral
0
137
Member Avatar for tehpirate

Hi i want to read words form a text file placed in the same folder as the java file and then hold the information in an array. so far ive written code to read the text file (i think) im trying to teach my self so if ive done this …

Member Avatar for Ezzaral
0
89
Member Avatar for paurik

Hi i am using java wrapper service api to launch my application as os service. i already configure this service for window os. but ther is problem for linux os. when i run myapplication.sh file it gives me java.lang.noclassdefFounderror error. i put my config my file follow if if some …

Member Avatar for blufab
0
208
Member Avatar for Amitji

Hi all Cn any one help me to find out the full path of Current Running Application using java? Thanks

0
77
Member Avatar for ramankrishna

hi this is ramakrishna, i am in my 3yr and i want o develop a project for my jwellary shop which would be standalone project connected to 4 systems in our office with following fields as 1)Transaction - Purchase, Sales, Debit/Credit note, Account voucher, Goods Issue recept, issue to Karigar(worker), …

Member Avatar for Jens
0
123
Member Avatar for sosuave

public class Student { private String name; private String address; private String phone; private String major; String[] classesTaken = new String[100]; double[] gradesRecived = new double[100]; public void addClassesTaken (String classID) {} public void addGradeReived(float classGrade){} public void changeGradesRecieved(String classID, double newGrade){} public double computeGPA( ) { } } I …

Member Avatar for javaAddict
0
107
Member Avatar for NycNessyness

I have an important question at the moment. I wanted to know how I can go about multiplying or adding checkboxes to display information on a label. For example if I have 3 checkboxes labeled chkMovie, chkAmusement and chkConcert and I have 2 checkbox groups called chkChild and chkAdult. How …

Member Avatar for VernonDozier
0
104
Member Avatar for antony_24

Hi ,I am experiencing a problem with QT Java 6.1 on Windows XP using Java1.4.2 (_2, _3, and _4) where a QT Component (as Component()) created from a Movie Controller placed in a window or frame will sometimes freeze when another window is placed in front of it or removed …

0
46
Member Avatar for K504K

[B]Background:[/B] Modify the Payroll Program so that it uses a class to store and retrieve the employee's name, the hourly rate, and the number of hours worked. Use a constructor to initialize the employee information, and a method within that class to calculate the weekly pay. Once stop is entered …

Member Avatar for K504K
0
194
Member Avatar for sidemon

[code] if (usrPass.length() >= 6) { for (int i = 0; i < usrPass.length(); i++) { passCh = usrPass.charAt(i); if (passCh == ' ') { b = true; //Bad System.out.println("got a space at" +i); } if (Character.isUpperCase(passCh)) c = true; //Good if (Character.isLowerCase(passCh)) d = true; //Good if (Character.isDigit(passCh)) e …

Member Avatar for sidemon
0
86
Member Avatar for harisagar

[B]hai i need example code for an project i am developing in gui student management i need code for add,delete,edit student using arrays or files not database[/B]

Member Avatar for jasimp
0
139
Member Avatar for Venks

Hai I want to set my time to system in our application, how to set the time and to get the time?

Member Avatar for Ezzaral
0
97
Member Avatar for Thirusha

Hi I have a collection which is the resultset of a sql query. when i write out the collection (using system.out.println(col)) my collection is in the correct order. -- which is great. But when i iterate through the collection in order to populate my linkedhashmap, the items are inserted into …

Member Avatar for Thirusha
0
96
Member Avatar for lordx78

[code=Java] package midp.firstAid; import javax.microedition.lcdui.*; public class AboutCopy extends Basic { public AboutCopy() { super("About Product"); append("Copyright 2008\n " + "\n Nanthikesvaran\n" + "\n" + "This product based on Java Technology " + "to give and provide sufficient information " + "of a knowledge on First Aid.\n"+ "It's still under …

Member Avatar for lordx78
0
81
Member Avatar for Katherine692008

How do I get this to ignore negative number and terminate when the number 0 is entered? Please HELP public void productTokenizer()throws IOException { System.out.println("Enter numbers to accumlulate their total.");//Prompt user to enter data //System.out.println("Zero and all negative numbers will Exit the Program:"); double sum = 0; int num = …

Member Avatar for Samudricka
0
111
Member Avatar for eranga262154

Hi all, How it is possible to make curved vertex of a swing container like JDialog. Say I the property setUndecratoed() to true, so there is just a rectangular shape window I have. I want to curved a vertex there. Any suggestions really appreciate.

0
66
Member Avatar for jimJohnson

I was sick the day on our review for this programming assignment so I am in kind of a dillema with a jerk for a professor...What I am going to do is after each section show you guys what I have and I don't think I should have too many …

Member Avatar for jimJohnson
0
185
Member Avatar for Kusno

Dear all, I have query like this : SELECT ID, NAME, BEGINNINGBALANCE FROM TRXBUDGET ORDER BY ID BEGINNINGBALANCE is numeric field type in MySQL. Jasper Report / iReport recognizes this field as String, when I change the field type to Double, raises error like these : net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file: 1. Cannot cast from String to Double value = (java.lang.Double)(((java.lang.String)field_BEGINNINGBALANCE .getValue()));//$JR_EXPR_ID=14$ <----------------------------------------------------------------> …

Member Avatar for Kusno
0
305
Member Avatar for Karkalash

Hi all: I'm a newbie at Java and having fun :) So I'm doing a pattern program, so far so good, but I wanted to ask if there is any console specifier for spaces only and not width between integers. I'm using only integers so I thought I should use …

0
63
Member Avatar for unkno

I currently have Java RE Environment 6 update 1, Java 6 update 2, and Java 6 update 3 on my computer add/remove program. Can i remove the earlier updates (1 and 2, but keep 3)?

Member Avatar for crunchie
0
17
Member Avatar for jimJohnson

I know this is a C++ forum but I have a java question that I am stuck on...it really isnt a big one but would it be ok if I post it in here because noone in the java forum is responding...I have most of the program finished...is that ok?

Member Avatar for Ancient Dragon
0
56
Member Avatar for dakrous

I'm really knew to this programming thing, and need a little help. My objective is to read data from a file like 2 2 0 0 wwdd 0 1 wwxd 1 0 ddwd 1 1 ddww I have read the file line by line, but I do not know how …

Member Avatar for dakrous
0
125
Member Avatar for ultimate_fusion

as above. e.g int[] array = new int[can be any size] joptionpane.showmessagebox(null, "what to put here is the question" "messageboxtitle" joptionpane.informationmessage}; //dont correct the message box crap i was in a rush i know how to do it e.g array 1 = 1 array 2 = 5 array 3 = …

Member Avatar for franchav
0
3K
Member Avatar for anbuhikaru

So i'm a java student in 9th grade and my code gives me an error i have never encountered before... time is off the essence, so quick help is loved!: it says: Play.java:5: Play is not abstract and does not override abstract method keyReleased(java.awt.event.KeyEvent) public class Play extends JApplet implements …

Member Avatar for jasimp
0
160
Member Avatar for reena22

Hi all i just want to know where i can get any java program of about 1000 lines of code BUT it should be open source. looking forward to your help thanks

Member Avatar for reena22
0
109
Member Avatar for irtiza

Hey Guys.....I am new in web development and this was supposed to be my first Servlet but I am getting java.lang.ClassNotFoundException: servlets.HelloWorldServlet Now in my Apache tomcat folder C:\apache-tomcat-6.0.16\webapps\ServletExamples I have the WEB-INF folder.....which has the web.xml.... Web.xml is something like this... [CODE] <?xml version="1.0" encoding="ISO-8859-1"?> <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee …

Member Avatar for sinan.yumak
0
104
Member Avatar for nickclark3

We have to create a spellchecker for a class project. I've written code for a binary search tree, but need to update it for a tertiary search tree according to my prof. other then adding a third child, what should I do? Thanks for the help. Here's my code for …

0
90
Member Avatar for Neablis

Hello, ive been working on this code to evaluate infix notation for a while now, and i cant get it to work no matter what. I keep getting back 195 and it much be something that i just cant see... Thanks for any help. [code] public Character evaluate( String input){ …

0
87
Member Avatar for beatlea

Hello, I created an ArrayList with lists and arrays (randomly chosen) of queues and now need to get access to these lists and arrays to add, remove and display elements in them. How could I do this? I tried ArrayList methods like get(int index) and iterator(), but it just shows …

Member Avatar for beatlea
0
173
Member Avatar for obscured47

Hello gurus! I have a very annoying problem with the font on a server-client program I'm working on. Probably that it's a server-client thing doesn't matter. Anyway, I want to use custom font on the client side. I have the.ttf and try to use it with Font.createFont() and deriveFont(). I …

0
69
Member Avatar for DickLaurent

Hello, here goes. I am receiving the following three errors when compiling my new template matching plug-in in imagej C:\Program Files\ImageJ\plugins\Template_Test.java:61: '}' expected. } ^ C:\Program Files\ImageJ\plugins\Template_Test.java:63: Statement expected. public double match(String addr) ^ C:\Program Files\ImageJ\plugins\Template_Test.java:93: Class or interface declaration expected. } ^ 3 errors, 1 warning I'm pretty sure …

Member Avatar for DickLaurent
0
142
Member Avatar for brr

in the below text sum the amount to those FLAG & MA_NAME fields are same and put them in one array, and unique item append to that array i did some work but difficult to get unique items [TEX] FLAG MA_NAME SUM_AMT -------- ---------------------------------------- ---------- Credit CASH 7777 Credit Salaries …

Member Avatar for jwenting
0
91

The End.