Quantcast
Channel: Programming Forums
Browsing all 51036 articles
Browse latest View live
↧

How can I make an Action Listener to change JPanel icons on var change

In my game I'm making a type of AI or computer. I need labels to change under certain circumstances like a random number generator or something that determines his action. Would I use a property change...

View Article


Help with creating a Program Class for a BASIC Interpreter in Java

I am current working on a Java Project that is due February 20, which is located here: http://science.kennesaw.edu/~dgayler/cs3150/docs/project.html Now, the professor provided me with several example...

View Article


Multiplying Two Custom Big Integers in Arrays

So I understand that I'm supposed to use the "elementary" algorithm to multiply these two arrays but I keep getting hung up on the actual code. My code is rusty this is my first programming class I've...

View Article

Text-Based Video Game ArrayList Problem

Hey guys I just have a quick question about a java program I am working on. So I'm working on a text based video game in NetBeans and I have my GUI class, an enemy class, player class, actor class...

View Article

Java OutputStream Example

Hi everyone! I need to use the java.io.OutputStream in a print method to accept a file input and then print it out. The whole program that I have to do is quite complicated so I was wondering if...

View Article


Loops giving wrong output

Hey guys, new to this website, and fairly new to java. Have an assignment here. I have a correct output for my first output, which is print out the possible number of times a red checker ca jump a...

View Article

Image may be NSFW.
Clik here to view.

Adding New Record To Database And View in Datagrid

Hi, I'm, still new to vb.net and i'm trying to add new record to my database. I use datagrid to view my records in database and textbox to add new records. My code is fine. Every time I insert new...

View Article

Unable to calculate and display part of a class

Hi there! Been a lurker for quite some time, but I really need help tonight. I'm fairly new to Java. The objective of this program is to obtain the length and width of a room from the user. Obtain the...

View Article


Assembly language visual studio simple program help

Hi I'm new to assembly and I'm having trouble getting this simple program to run, I got through the syntax but can't seem to get an output.My assignment was to declare two arrays, add 2 to each element...

View Article


Anybody can give me example insert data using PHP and Oracle database?

I dont have any experience using PHP and Oracle database. Before this i just know using PHP and MYSql. So my problem is i want insert data to database. The user must insert the data at textfield and...

View Article

CD DVD check

i need to make my program to check for a specific file existance on CD Or DVD rom ? here is my code Option Explicit 'Set Dimension DIM fso 'Set Object Set fso =...

View Article

How would I go about starting to create this game?

Hi, I have been taking a VB Class and im on my second semester(in high school). The teacher assigned us an assignment to create any game we want only using Vb. I choose to do something like "The worlds...

View Article

Do I have the wrong line in my try block?

The program is supposed to read in a data file called fruit.dat and store the contents into a vector. Then the user can click on << or >> buttons on the GUI box that pops up to cycle...

View Article


open a PDF in a ribbon in visual studio 2010

To open a existing pdf in visual studio 2010, i made a ribbon using MFC application and i was trying to open an exisiting pdf into that ribbon. i had add a button handler on OPEN FILE button, but i am...

View Article

Illegal start of expression?

Hi everyone, I am currently working on a Connect 4 project and was able to compile the basic program. However, once I tried to get it to be able to restart when the user presses the key 's', my updated...

View Article


Illegal start of expression?

Hi everyone, For some reason, I keep on getting the compiling error of "illegal start of expression." Does anyone know why/how can I prevent this? Thank you import java.awt.*; import java.util.*;...

View Article

Image may be NSFW.
Clik here to view.

What is service?

Hello all, Never really have to code anything related to service before. My company's software does use service, but never really crossed my code, was working mostly on device integration and interop...

View Article


Image may be NSFW.
Clik here to view.

I need the HEX value from a registry like what RegEdit shows.

So I looked around on the interwebs for some help on this but all the threads and posts convert it to some sort of Chinese text. What I am looking to do is find a regkey in the registry and get a value...

View Article

Why I cannot save my picture in my DataBase?

Hi! I wrote this codes to download my pictures. Its works well. Then each time I want I would like to save pictures in my database. But sound that my saving's codes are wrong and there is a red line on...

View Article

How do I play sound in a c++ program

how i attach sound to c++ program

View Article
Browsing all 51036 articles
Browse latest View live