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

java.lang.NullPointerException in My SwingWIthCommonFeatures program

The program is suppose to display : -->Frame with six labels -- Each label with white background -- Foreground of the labels to black, blue, cyan, green, magenta, and orange, respectively -- Font of...

View Article


Image may be NSFW.
Clik here to view.

parseInt and subString commands for Hexadecimal Conversion

Hello all, just a quick question. As far as I can gather from the APIs the parseInt should convert from a string to an integer following the base you give it (i.e. base 16). Similarly, the subString...

View Article


Ideas on saving PDF files while opening it in embedded form in vb6

Hi everyone, I am new to programming. Someone introduced me to VB6 and it worked for me so far in achieving what I want to achieve so far. Until recently, I discovered that I need to save PDF files...

View Article

OpenFileDialog issue

Hey so basically i did a lot of research on this but could not find a solution. I need a function to occur if one or more files are opened by an openfiledialog So if 1 file was selected i need...

View Article

Getting the object from a wpf Image control

Hello all, Here is my problem I am working on a homework assignment for class. I have the image control source set to the flag image property of my country object. I have the ComboBox control binding...

View Article


Selecting from on Datatable in memoy into another.

I am almost 100% positive I cannot do what I want with this particular piece of code but I thought I would ask for either A)Suggestions on an alternative approach of B)Someone to say "Well actually you...

View Article

Inheritance, timezone will not set back to 0 when greater than 12

Instructions: Valid Time Zones are integers ranging from -12 to +12 (including 0, so we will just ignore the zones that are not integers or that are greater than +12 even though some unusual zones with...

View Article

My java programe is not displaying all the images correctly

Hello, I have a small problem with my program not displaying images correctly. I have small image(20x20 pixels, white image with a black border)which i want to display 100 time, in a 10x10 grid....

View Article


StringOutOfBoundException Occurs.

package strings; public class File { String rootAdd; int locateSlash,locateDot; public File(String address){ setRoot(address); } public void setRoot(String address){ rootAdd = address; } public String...

View Article


Question about using array

question about using array. 1. using array that accept 5 input nos.that compute for its average and sum. 2. Using array that accept 5 input nos. that display the highest and lowest nos.

View Article

problem to create java program using array

problem to create java program using array in the following 1. Accept 5 input nos. & compute for its average and sum. 2. Accept 5 input nos. & display the highest and lowest number.

View Article

Displaying Random Cards

I need to create a frame that contains three labels ---> Each label should display a card images named 1.png . . . 54.png stored in some directory. ---> All three cards must be distinct and...

View Article

Search function Infinite loop problem

I am a bit stuck on this one. My loop gets stuck in an infinite loop when it finds the 'team'. Here's the code. //overlaoded operator bool operator == ( const FootballTeam& team ) { if ( city ==...

View Article


Not seeing my error

error is: extractMessage.c:9:31: error: expected ‘;’, ‘,’ or ‘)’ before ‘.’ token my code is here: #include "bmp.h" void extractMessage(BMPfile picture.bmp, char* msg) { unsigned char temp; int width =...

View Article

Deep Copy Help

This is the question... When writing an aggregate class, you should be careful not to unintentionally create "security holes" that can allow code outside the class to modify private data inside the...

View Article


Calling a method of an object inside an array

OK, so basically I have a GHexagon (custom using the acm library, in case that is necessary). I have an ArrayList of GHexagons for each GHexagon that has its neighbors listed in order. One of the...

View Article

Java List Not Displaying Proper Values

The output from my code here is [0.0, 396.0, 297.0, 198.0], which is all correct except for the 0.0 . What I do not understand is why everything works exactly how it is supposed except for this. Thank...

View Article


printf Queries

While I know printf() returns the number of characters it prints, I am having problem with the & (or any other character in fact) in this code: printf("%d",printf("%d %d",2,2) & printf("%d %d",...

View Article

A Project idea, thoughts, challenging, possible?

Hey everyone first of would like to thank you all for reading this (If you go to the very end I presume this will be a fairly long post). I don't want to make it too long and boring for you guys so...

View Article

Java Palindrome Recursion Help Needed

Hi! This is my first time posting on this forum as alot of you have helped me with programs earlier in the year, I am currently in AP Computer Science at my school and we have a project to do where we...

View Article
Browsing all 51036 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>