32,204 Topics

Member Avatar for
Member Avatar for PRANOTI_N

Hello, I am new to java. I want to display the database records in JComboBox. I have 2 combo boxes. say color and object,whenever i'll select any color from combo box, next combo box should display the objects of that color. I have write one code for it, I use …

Member Avatar for NormR1
0
118
Member Avatar for susheelsundar

[I]Hi, Sorry for coming back again and adv thanks for guidance My tutor gave me a assignment, couple of days before he taught me the work flow of java in eclipse, i am getting through it and i was asked to use constructors for the arithmetic operations as methods in …

Member Avatar for yangtao
0
3K
Member Avatar for solomon_13000

Why is the output 10 and not 9?. According to my understanding the count value is assign to b. Then the count value increment. Hence the output should be 9 instead of 10. However in this case the output is 10. Why?. [CODE] package com.nowhere.blogger.core.junit; public class Bunnies { static …

Member Avatar for AnkitKumar
0
207
Member Avatar for kesh1000

Hi All, I was wondering if any of you would know of how can i change the interface of a java program to a web based interface using html5. I know i could do this easily using jsp/java.net but my requirement states to change the java desktop program application interface …

Member Avatar for mKorbel
0
202
Member Avatar for Tellalca

Hey; I am following CoreJava and came to Event Handling chapter. I am trying to show a popup menu when the red button is clicked, but not works. Background color changes but no popup menu is shown. What is the problem? [CODE]/* * To change this template, choose Tools | …

Member Avatar for Tellalca
0
92
Member Avatar for hfx642

I've been coding in Java for about six years now (personal projects only). I follow the... [I]Java, How to Program[/I] (Deitel, 5th ed.) book. For a particular project, I've coded several Record structures, each in their own class file. Is it possible to put ALL of my Record structures into …

Member Avatar for hfx642
0
435
Member Avatar for kanhakv

hello all members! i have just written a java application about menu. i got error that: cannot find symbol. could you all tell me all possible causes of this problem. i have tried to follow some of instructions on internet, but no help. thank in advance for your help. p.s: …

Member Avatar for kanhakv
0
597
Member Avatar for tracydo

Hi, So I just done this class for the semester but am still having this problem in the back of my head that I need your help to clear it out of the way. Basically, the program here about covert the Octal number to Binary number which Octal number will …

Member Avatar for NormR1
0
175
Member Avatar for ssdeep

[url]http://sparrow.ece.cmu.edu/~adrian/projects/secure-routing/ndss03.pdf[/url] I want to know if we can implement this paper entirely with java.It is a security mechanism for routing protocols---we cannot afford routers so thinking of simulating them.

Member Avatar for rubberman
0
104
Member Avatar for tracydo

@NormR1 or anyone please help, This program is to convert the input octal to output the binary in multiple number within the octal (ex: 24546, not 4 or 2 in single input)using an array. Thanks I converted it to integer, but how do I read one integer at a time …

Member Avatar for bibiki
0
467
Member Avatar for scoobie

Hi, i was wondering if anyone can help me. i am new to php and was wondering if it was possible to embed javascript in php. i was trying to get an alert/msg box up to explain an error to the user. i have written the following code <?php ............. …

Member Avatar for shridharshenoy
0
631
Member Avatar for Aepexx

Hi everyone, I've been working on this for a couple of days now. I need to make sure that an error message is given if txtname has a numerical value in it, and I also need to make sure that an error message is given if txtscore has a non-numerical …

Member Avatar for mKorbel
0
213
Member Avatar for ridif

Hi, Now i'm doing my Machine Learning job about k-NN and k-Means. I need to create graphics about my data coordinate. Basically, i don't have any idea to create this. Is there anyone can help?

Member Avatar for mKorbel
0
173
Member Avatar for tultul

Hi..! i need to make a trial period software. Do anyone knows how to do it. I have gone through many links and still searching in google, but everywhere i found only some points mentioning about the way of doing it, but no one explains about how to do it... …

Member Avatar for tultul
0
1K
Member Avatar for jet101

Hi guys, I've been working with a project that requires me to use mutiple jcombobox. I did try to relate three jcombobox but failed to show all necesarry drop-down lists. in one of my combobox I have lists of Banks (Bank1, Bank2), the other one is the list of all …

Member Avatar for jet101
0
684
Member Avatar for newbie14

Dear All, I have string where I want to get its checksum value specifically using crc-16 (modbus) in java. Any help or tutorial on how to do it? I saw some links saying lookup tables but I am not quite sure about it. Thank you.

0
75
Member Avatar for newbie14

Dear All, I have snippet of code as below. It is a listener which is waiting for the data so I use local to telnet to this program in the same machine. Nothing gets printed unless after sending the data I press enter. On the other hand if I use …

Member Avatar for newbie14
0
99
Member Avatar for bangor_boy

Hi, Trying to get this bit of code to work so that a train goes up the track, leaves the track and then a train comes down the track, leaves and then a train comes up the track and so on. Only one train is allowed to go onto the …

Member Avatar for NormR1
0
281
Member Avatar for themanman

hey i am new here i am working on a school project where i am building an applet.. i have encountered a problem i cant solve, i have 2 classes... the first class i very simple it has to methods which return an string array for table column and Object …

Member Avatar for mKorbel
0
346
Member Avatar for JJHT7439

Alright, I have the bad practice of not commenting my code very often when I write it so I'm going to try to explain what the problem is as clearly as possible. In this program I have to set up a battleship like grid of buttons. In order to determine …

0
72
Member Avatar for Amr ElGohary

please if any one has java tutorials for the beginner programmer in java (sites , vedios ,etc..)

Member Avatar for Amr ElGohary
-1
61
Member Avatar for aanders5

So I imported a project over from my school comp, and it seems to run ok, but I got these errors, and i don't know what they mean, or how I can fix them. [IMG]http://i421.photobucket.com/albums/pp296/rskom/issue.png[/IMG] Thanks for the help! -Austin

Member Avatar for kane06
0
122
Member Avatar for NipunaDK

Hello. I am New Here and This is my First Post :) I'll Start with a Question, That is I know java, But not much. And I know how to build a Program if some one tell me to make a program that calculates area of a Square and something …

Member Avatar for NipunaDK
0
179
Member Avatar for ibn_sumal

Hello guys i've been learning java for a short while and have come upon a problem which i cannot seem to solve. I have a boolean array of 11 values, now i want to prompt the user into entering the number 1 or 2. If the user enters 1 I …

Member Avatar for jon.kiparsky
0
537
Member Avatar for caswimmer2011

Hi, I'm trying to set a background image of a JFrame. I researched on google but i haven't gotten anything to work. My idea is to make monopoly with the board in the background and have the pieces move around on top of the board. Thanks in advance

Member Avatar for Ezzaral
0
110
Member Avatar for Tankadin

Hi all I am having a problem with my method in my linked list class to split linked lists into two sublists. The issue is that for some reason my first sublist has 3 more elements than the second sublist when I split a linked list with a total of …

Member Avatar for jon.kiparsky
0
158
Member Avatar for cabosun

So im setting up this gui, but im getting this Nullpointer exception: [CODE]Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at addressbook.dnDisplay.jButton1ActionPerformed(dnDisplay.java:222) at addressbook.dnDisplay.access$600(dnDisplay.java:22) at addressbook.dnDisplay$7.actionPerformed(dnDisplay.java:128) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236) at java.awt.Component.processMouseEvent(Component.java:6289) at javax.swing.JComponent.processMouseEvent(JComponent.java:3267) at java.awt.Component.processEvent(Component.java:6054) at java.awt.Container.processEvent(Container.java:2041) at java.awt.Component.dispatchEventImpl(Component.java:4652) at java.awt.Container.dispatchEventImpl(Container.java:2099) at java.awt.Component.dispatchEvent(Component.java:4482) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577) at …

Member Avatar for jon.kiparsky
0
319
Member Avatar for ceyesuma

Below is how I set up my JFormattedTExtField. The database (derby) will take the format no prob. The db will then change the form to yyyy-MM-dd If I follow that format from begining to end the JFormatted Field will be fine. However, when a date is queried from the database …

Member Avatar for ceyesuma
0
90
Member Avatar for solomon_13000

I override the equals method in the Friends class, yet I do not see the value "Spring 2002". Rather I see the value "null" instead. Did I miss something in my code? [CODE] package com.n2n.blotter.core.junit; import java.util.*; public class Birthdays { public static void main(String[] args){ Map<Friends, String> hm = …

Member Avatar for JamesCherrill
0
146
Member Avatar for cretaros

i have encrypted some login credentials in mysql database using md5, now i want what i input as login credentials to be encrypted automatically to ease comparison with the encryption in database: This is how far i have done, no errors bt i cant login anymore [CODE]try { Class.forName("com.mysql.jdbc.Driver"); Connection …

Member Avatar for mKorbel
0
137

The End.