35,618 Topics

Member Avatar for
Member Avatar for andypop

Hello Daniweb, I am working on a program, a basic poker game. I've run into a problem I can't seem to solve for the life of me, after hours of googling I thought I'd ask here. I have a Dealer class that basically controls the back end of the came, …

Member Avatar for BestJewSinceJC
0
3K
Member Avatar for JavaOwnsMe

Hey guys and gals, So for my Java class, (which I have been struggling all semester with) we are supposed to break down a code and say which park of the code does what and why. I selected a simple program that creates a bar graph. If anyone could give …

Member Avatar for BestJewSinceJC
0
159
Member Avatar for Murderality

Hi there, I'm relatively new and I'm making a program that reads reads a txt. file stores it in an array, validates and finally displays back. However I'm not getting the desired display when I tell my program to display txt. file contents, I get some of the correct content …

0
61
Member Avatar for Himerz

Hi all, I cant get my brain around the logic of making a check box add a specific color when it is checked. Also, when the other boxes are check, it will add that color to the selected color as well. here is my code: [CODE]import java.awt.BorderLayout; import java.awt.Color; import …

Member Avatar for adams161
0
99
Member Avatar for joewazen

Hello, I have an interface containing a table, i need to link that table to the DB Table so that it will automatically reflect the changes done in the DB Table to the Interface table. i.e: if someone (manually or another WEB Application) updated the DB table i want the …

Member Avatar for MxDev
0
144
Member Avatar for YingKang

I am writing a java applet that calculate heat index and wind chill. it requires the user to input temperature , wind speed and humidity, and then let the user choose either Metric ( kph, °C) or English (mph, °F) I have some problems with the code. First, the Calculate …

Member Avatar for YingKang
0
123
Member Avatar for glenlivet

I'm pretty new to java but have lots of coding experience with ruby, c and gui with gtk2 and qt. I'm trying to understand (and get rid of) the dead space to the far left portion of the window. The split panes have white backgrounds to separate it from the …

Member Avatar for glenlivet
0
186
Member Avatar for arunjassiar

Hi Guys, any one can reply me on if we can do some thing like in java or not sure for example [url]http://www.screentoaster.com/[/url] click on ?start recording?. [url]http://screenr.com/[/url] click on ?Record your screen cast now? [url]http://www.screencast-o-matic.com/[/url] click on ?Create? button. , basically i want transparent frame on top of any …

0
52
Member Avatar for adams161

Hi, I'm doing a bouncing ball game. i'm using y=mx + b I want to know when y hits certain numbers. that means it had a collision. the numbers are whole numbers like 539 etc. I increment Y slowly because i also want to not let x move much. when …

Member Avatar for adams161
0
91
Member Avatar for Archenemie

Ive been told that i can make Iphone Apps using java, but what IDE/File Extension/Code Structure do i use? can i simply use a converter program to swap my current java code into an iphone App or would i need to code from scratch? Any and all advice is greatly …

Member Avatar for jbennet
0
118
Member Avatar for intelnf09

I am taking an IT course and need help desperately. I have referred to several different resources and am having a hard time grasping OOP. I came across this site and thought I should give it a try. Please bear with me I am new to the site. I am …

Member Avatar for intelnf09
0
127
Member Avatar for mahkris
Member Avatar for peter_budo
0
36
Member Avatar for paolo_romeo13

Hi hoping for some help with what is wrong with my code. Basically i have 2 sets of arrays that need to be compared. I'm creating a computer shop so there is a set of arrays giving descriptions of the computer like CPU speed etc and there is another set …

0
54
Member Avatar for Beasts

I have a main class that sets up a blank JFrame, it adds a method from the GUI class I made... that takes 4 arguments, all arraylist… so the first arraylists sent are empty. Then in my game I made a “guiInstance” that calls the same GUI method. It is …

0
54
Member Avatar for Antenka

Hello, everybody. I had a problem while connecting to Oracle. Got messages: [QUOTE=Error]ORA-00604: error occurred at recursive SQL level 1 ORA-12705: Cannot access NLS data files or invalid environment specified[/QUOTE] And found solution for this - setting the default locale in java code: [code=java] Locale.setDefault(Locale.US); [/code] This works just fine …

Member Avatar for Antenka
0
145
Member Avatar for Perveance

Hello, I'm trying to create Frame with 2 JButtons and 1 JList. Buttons are Add and Remove. After clicking Add button JFileChooser creates and user choses a file. The file then must to be added to the JList. [CODE]public class GmFrame extends JFrame { private JButton bAdd; private JButton bRemove; …

Member Avatar for Perveance
0
243
Member Avatar for Sarah-perkins

Can you help me modify this program so that it contains loops within loops somewhere. I have a while loop but that is only one. To pass my task my program MUST contain Loops Within Loops somewhere. Thank you. [code] import javax.swing.*; class team { public static void main (String[] …

0
46
Member Avatar for NickT80

I have this simple project that I'm sure has come throught here before. I am take input from a user using JOptionPane, make sure it is >15 Chars, and count the uppercase. Here is what I have so far. I am having trouble setting the first loop correctly. [CODE] import …

Member Avatar for MxDev
0
132
Member Avatar for poorquality

I'm currently trying to create a client program that sends location variables (x and y) to a server, which then passes it on to another client and vice versa so when one client moves the object, the other client see's the change immediately on screen. I think get and set …

Member Avatar for poorquality
0
137
Member Avatar for jralexander137

First here is what I need to accomplish: --------------------------------------------- The program In this program you will create a direct access file on a simulated disk. A number of sectors will be allocated for the file and records will be written to the sectors using hashing. The sectors will be buckets, …

Member Avatar for ivakadfc
0
177
Member Avatar for tnccjavaMatt

My code outputs the correct answer to both the GUI and to a text file, but it displays it in a list format instead of a clean looking table. What modifications have to be made to assign formatting of output correctly? [CODE]import javax.swing.*; import javax.swing.border.*; import java.awt.*; import java.awt.GridLayout; import …

Member Avatar for BestJewSinceJC
0
713
Member Avatar for Sandar Khin

Hi all I want to know what player can I use at my java application(at my JPanel) for playing rtmp streaming.I do need your help.Pls help me.Thank in advance.

0
64
Member Avatar for new_2_java

Hi all, I have a program, which is invoked from a shell script. I need to return back to the shell script a status, whether the program succeeded or failed, so the shell script determines whether to continue with its normal course of actions or to stop upon faileur. So, …

Member Avatar for pbHINF
0
827
Member Avatar for cabosun

I have this program that I am working on that I am trying to insert user entered integers till a "-1" is detected and it will stop inserting the integers into the Tree and print it out inOrder. I am geting 2 errors: File: S:\makeup1.java [line: 9] Error: S:\makeup1.java:9: cannot …

Member Avatar for mellowmike
0
130
Member Avatar for wrenz.go

the error...[CODE]Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at javaapplication1.memberTable.AddMember(memberTable.java:21) at javaapplication1.GUI3.memberAddActionPerformed(GUI3.java:2345) at javaapplication1.GUI3.access$000(GUI3.java:28) at javaapplication1.GUI3$1.actionPerformed(GUI3.java:352) 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:6041) at javax.swing.JComponent.processMouseEvent(JComponent.java:3265) at java.awt.Component.processEvent(Component.java:5806) at java.awt.Container.processEvent(Container.java:2058) at java.awt.Component.dispatchEventImpl(Component.java:4413) at java.awt.Container.dispatchEventImpl(Container.java:2116) at java.awt.Component.dispatchEvent(Component.java:4243) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916) at java.awt.Container.dispatchEventImpl(Container.java:2102) at java.awt.Window.dispatchEventImpl(Window.java:2440) at java.awt.Component.dispatchEvent(Component.java:4243) …

Member Avatar for JamesCherrill
0
86
Member Avatar for Xiek

Hi, I am using the OR operator in my while loop and its not very responsive: [CODE]while (transaction != 'Q' || transaction != 'q' ){}[/CODE] The user previously entered a character for the variable transaction, however when the user enters 'Q' or 'q', the while loop is not skipped. Can …

Member Avatar for Xiek
0
83
Member Avatar for nevets04

[code] import java.util.*; import java.lang.*; class sub { public static void main(String[] args) { String a = "1"; String b = "2"; String c = "3"; String d = "4"; String e = "5"; String f = "6"; String g = "7"; Scanner sa1 = new Scanner(System.in); System.out.println("1) Encrypt"); System.out.println("2) …

Member Avatar for nevets04
0
199
Member Avatar for ajy27
Member Avatar for gibson.nathan

im working on this program and im getting really stuck. i was hoping to get it done soon, but it is dragging out. i have completed the first half of the instructions, i believe. [CODE]2. Create an abstract class called Student. a. Student will need instance variables name , qz1, …

Member Avatar for VernonDozier
0
220
Member Avatar for arem4sure

i want to create Java program that accepts 3 numbers (num1, num2, num3) and sort them in ascending and descending order. Example: Enter num1: 8 Enter num2: 3 Enter num3: 9 Ascending: 3, 8, 9 Descending: 9,8,3 can anyone help me for this (sorry for my bad English)

Member Avatar for mahkris
0
111

The End.