32,204 Topics

Member Avatar for
Member Avatar for psodhi

Hi Friends, i made a window with a Panel and painted a text on it. Now i want to set a background color for the panel but it does not reflect in the window.. i am posting the code here.. Please let me know if anything is wrong with the …

Member Avatar for psodhi
0
276
Member Avatar for nabil1983

Ok got a new problem i've started to implement a GUI for my program but for some reason in the actionlistener metho i cannot pass the method i want to display.. I dont know what im doing wrong because i am not familiar with using GUIs... can somebody please help …

Member Avatar for jwenting
0
146
Member Avatar for rac_engg

Does anyone know how to use JTAPI and JSAPI and how to configure thse two in the system also tell if we want to swith on our phone automatically from phone if any incoming come then what is the procedure does the motherboard have inbuild feature for this?

Member Avatar for rac_engg
0
71
Member Avatar for nabil1983

Ok i got this thing to compile now perfectly no errors, when i run it the menu comes up. The problem is when i use the option in the menu it gives me an exception error?? ne one know where i went wrong on this one.... what i did was …

Member Avatar for DeepZ
0
117
Member Avatar for nabil1983

Hello Everytime i compile this i keep getting an error on non-static method can not bu passed to static method, i understand that. But how can i get around this, without making the non-static method static , because it has variable relating to otha methods ... i also keep getting …

Member Avatar for DeepZ
0
220
Member Avatar for iamthwee

Ok, I've been looking through some of the older threads and noticed some bad things regarding vectors. So what's the deal. Are they worth using in java or should I avoid them like the plague? And if I should, what should I be using instead? The same questions applies to …

Member Avatar for aniseed
0
247
Member Avatar for Mishac

can any one help me with the code for the pop & push methods in the class that implement a Stack with two Queues

Member Avatar for aniseed
0
110
Member Avatar for Zxenobia0

I need help working on my Java project. Any amount is welcome. The project needs to prompt the user for a file input (txt), file output, and five words to search through the input file. Each input needs to be equipped with try and catch code to prevent crashing. The …

Member Avatar for Phaelax
0
149
Member Avatar for mperkins07

Can you help me wlth the following work?: This sample program shows how to print the current month, now using the "Calendar" object (instead of the Date object which has been deprecated, meaning it has been slated for removal from the language). [code]// Program prints the current month import java.util.Calendar; …

Member Avatar for Phaelax
0
151
Member Avatar for sunny82

Hi, I am getting 3 similar types of errors.its saying illegal start of expression in public void makedeposit<int deposit>,public void makewithdraw<int withdraw> and public void showbalance<int a, int balance>{} plz help. here is my code--- [code]public class bank { bank b; public class output{ public output outputobject=new output(); } public …

Member Avatar for sunny82
0
192
Member Avatar for nabil1983

hello. Im having problems trying to get my jframe gui to work correctly i got the window all done fine but when i tell it to display somethis in the code , it comes up with errors when compiled. Can someone please tell me where im going wrong .. apreciate …

Member Avatar for DeepZ
0
183
Member Avatar for K.Duncan

I'm working on a fairly basic program and can not seem to get it to work. I've checked my spelling and all that; the only thing I can think of is my main isn't able to find my class file. Here's the error message: ComplexDemo.java:10: cannot find symbol symbol : …

Member Avatar for DeepZ
0
165
Member Avatar for monisola
Member Avatar for Mishac
Member Avatar for monkeyphonics

Ok this is a homework program and this is my first JAVA course I am stuck on how to pass double values from one method to another I have a menu that appears with this code [code] public static int menu(int curmenuselection, double curitemprice) { while(curmenuselection != 5) { double …

Member Avatar for monkeyphonics
0
153
Member Avatar for mohamad11

hi to all... Plz i wnt a valuable code to append two text files in java i tried alot using WriteBuffered and FileOutputStream(file,true) but without any use i wrote the following code: import java.io.*; public class append{ public static void main(String[] args) throws IOException { FileInputStream Message_File=new FileInputStream ("C:/JBuilder4/lib/input6.txt"); BufferedReader …

Member Avatar for jwenting
0
854
Member Avatar for moon_light

i ve Q which ask me to write method called nodelevel(int k ) which returns how many nodes in level k.. and i write a code but i dont know what is wrong with it ??? [code]public nodelevel(int k){ if(root == null) return 0; else return getnodelevel(root, 1); } private …

Member Avatar for jwenting
0
200
Member Avatar for sam1

hi, which one of these two would be better to design a file transfer protocol FileInputStream or FileReader? i know FileInputStream is meant to be for image type of files........ thanks

Member Avatar for jwenting
0
243
Member Avatar for gkakkireni

Hi to all i have requirment like this the field length is 15 digits but am getting input only 6 digits..means i have to put spaces after the 6 digits position menas spaces after the value.how to do it in java,could u send the sample programe because i dont know …

Member Avatar for vimal_parakhiya
0
81
Member Avatar for behrk2

Can someone please help me convert the following code to C? I am just learning C and this is too overwhelming... the java code basically reads in a file (specifically for this program, a text file or whatnot for assembly language code), and the program is a pretty printer which …

0
80
Member Avatar for bondito

Hi everyone, i am trying to use some java code to encrypt passwords entering a database on the system i am building, please could someone explain what the code below is doing and if it would be useful for encrypting passwords. Thanks [code]import java.util.StringTokenizer; public class Encryption { public static …

Member Avatar for hooknc
0
480
Member Avatar for sam1
Member Avatar for iamthwee
0
66
Member Avatar for peter_budo

I have already working client-server messenger which is using threads. I can easily do plaintext username and password but I wish to use encryption on password. How can this be done?

Member Avatar for peter_budo
0
140
Member Avatar for Forsal

Hi everybody Can you please explain me the weakpoints of c++ language? I think it is very difficult to create GUI in C++, isn't it? I also would like to know is there any method to combine C++ program and Java Program.

Member Avatar for Ancient Dragon
0
233
Member Avatar for LEGACYONE_2006

I am trying to get this program to return the index value of the number that is input by the user. It is currently returning whatever number the user inputs. [code] import java.lang.Math; import java.util.Scanner; class Arrays { public static void main (String [] args) { int A[]= {3, 1, …

Member Avatar for LEGACYONE_2006
0
113
Member Avatar for wanda

I need help writing pacman with NGP for a school lab. I just started with java. I am NOT trying to have the project written for me, just need help getting started. There are two classes and an interface we need to use listed on the site below. The game …

Member Avatar for wanda
0
151
Member Avatar for Phaelax

I'm using a JEditorPane and StyledDocument, which automatically wraps text to the window. I cannot have this, I need the window to allow horizontal scrolling of the text. I've been all over yahoo and google and cannot find an answer on how to disable word wrapping. And before anyone tells …

Member Avatar for server_crash
0
190
Member Avatar for Dibrowse

I am having a problem with my browser. When I click on a link, a javescript error or void/null page appears. I downloaded pc onpoint, thinking that would help. It helped some, but not exactly what I was looking for. I am still getting these javascript error pages. If there's …

Member Avatar for server_crash
0
56
Member Avatar for ganesh.vadivel

Hi all, this is ganesh,working on struts,like to clear my doubt in struts. My coding is : ActionErrors errors = new ActionErrors(); errors.add( ActionErrors.GLOBAL_ERROR,new ActionError("err.nodatafound")); saveErrors( request,errors); this coding is working fine but it shows waring named as "deprecation" ,letme know how to clear this,thanks in advance. hereby, ganesh.

Member Avatar for Phaelax
0
96
Member Avatar for Phaelax

Does anyone know how the compareTo() in TreeSet is implemented? I needed a sorted list of String elements and was going to use a binary chop method to find if a search key was in the list. Is this how the TreeSet does it already? Reason I'm asking is because …

0
68

The End.