43,549 Solved Topics
Remove Filter ![]() | |
I want to enable/disable a table cell based on the contents of another cell. e.g. if the reference cell value is "true", then enable the cell, otherwise disable the cell. I have set up isCellEditable() to do this and it works if the reference cell already has a value when … Software Development java java-swing | |
Write a Java Class file for the class Account that represents a bank account. Usually, a bank account has a unique account number that is used to identify it. Your class should generate the account number automatically whenever a new account is created. The class should also store the account … Software Development java | |
Hi all, This is a script that reads in text from a file and separates it into characters. It works fine as long as MAXSTRLEN is under 610000. However, I need it to read in whole books of text. Whenever I try to bump that number up above 610000 or … Software Development c | |
Hello, I am opening a new Form in my application and want to pass along a variable to Form2. I think I am pass along it correctly but are not sure how to receive it in Form2. How will that be possible ? [code] String^ ForwardVariable; private: System::Void button1_Click(System::Object^ sender, … Software Development c++ | |
I have been trying to figure out for the life of me what I am doing wrong here, and I am coming up blank. My operator is returning the correct value in temp - as you can see highlighted in red, however, when I use the operator in main - … Software Development c++ | |
So far no one has been able to tell me why this code is not working, or what I need to do to THIS code to make it work. Can someone simply show using MY code below where the problem is, and why it's not working properly? Problem: I am … Software Development api c++ windows-api | |
Hello, I'm curious to know whether it is possible to expose the functions of a C# application so that they could be used by another C# application in runtime. The thing I am referring too is quite similiar([I]might even be the same[/I]) as using an API. I have searched on … | |
Guys, I really need your help !! I am using VB.Net & I have a Data Grid View in which I have 3 Columns and Dynamic Rows (user can insert rows based on their requirement). My problem is, I want to populate the value's in the rows that are being … Software Development vb.net | |
Hi, I'm trying to use the built in gcd method to calculate the gcd for two values. Unfortunately I can't seem to import the right module to get the method. [code=python] from fractions import Fraction ... x = gcd(a,b) [/code] Software Development python | |
I'm trying to code the game of minesweeper. For some reason, the image won't display properly--and it isn't a case of a missing file, b/c I have a try-except code snippet that is set to print out an error message should this occur, and that isn't happening. So either it's … | |
I need to use Scanner and StringTokenizer to find a word then print that line in text area when found it. This is the Search Button's coding : [CODE]private void btnSearchActionPerformed(java.awt.event.ActionEvent evt) { try { Scanner scan = new Scanner(file); String search = txtSearch.getText(); while (scan.hasNextLine()) { line = scan.nextLine(); … Software Development java | |
Hi everybody, I'm new at Python and this forum has been a great help so far, so I hope someone is willing to help me on the following problem. It can count the number of sentences and words in a text, but after I have split up a text into … Software Development python | |
Hello, I have to use an array, but its length is unknown at the beginning of the program. Is it possible to create such array and after that give it the desired length? Thank you! Software Development c++ | |
I've got this game almost working. When I run it in my complier is "blows" up at this line: [CODE]if (facesInHand[numberInHand2][1] != 0 && facesInHand[numberInHand2][2] != 0 && facesInhand[numberInHand2][3] != 0 && facesInhand[numberInHand2][4] != 0 && facesInhand[numberInHand2][13] != 0) straight = 1; else straight = 0;[/CODE] and continues through the … Software Development c | |
please check the attach file. here I don't understand the .mhf file. how it make or any alternative way to do this project. please any body help me. Software Development visual-basic | |
I have a wx app that I would like to actively debug (even after it is compiled via py2exe). Is there a way to hook all methods(without having to manually add code to each one) and have it print their names' as they execute. I've looked into both the "inspect" … Software Development python | |
Hello all, I'm really struggling to find a way or method to convert my TimeSpan data type into an Int so I can put the value into an Array. Now I know you can't actually convert the TimeSpan variable into Int, but is there some sort of work around? This … Software Development | |
hi,i need some help on vs 2005 form,i have 1button,1textbox,1datagridview.i want to make a search button with it to search for student id..any help pls...i use ms access..example i type 12-200705-0005 on the textbox,then i click search button,then the data with student id will show at datagridview...thanks.. :S Software Development vb.net | |
Hello, everyone! I have a program (a tcp server for text messages exchange), and i want it to do the following thing: if a port is already in use - choose automatically a new one (via rand() function) and inform me about that. I'm testing it on Solaras 5.9 if … Software Development c | |
I wanted to use a window style that was border-less or had a 1 pixel wide border, but was re-sizable. It was not actually possible so I tried changing the window style with SetWindowLong() then using SetWindowPos() with SWP_FRAMECHANGED and AdjustWindowRect() It allowed me to resize the window but it … Software Development c++ | |
Hello everyone, Ok, well I am faced with the challenge of creating a scouting program for my robotics team so we could keep a track of how other teams do at competitions to compare and contrast their designs. I have 95% of the program done, it reads and adds info … | |
Hi Everyone. I am taking a class on java, and have made it to chapter 7 without many problems. I am having really bad problems with this, getting an illegal start of expression where it says public void sort....I have tried so many things, I probably even have things out … Software Development java java-swing | |
hi i tried to search from a dataset but when i try to add from a dataset to a datagridview it is not adding to the datagridview. here is my code. moreover if i try a messagebox the result found is being displayed. [CODE]con.Open(); cmd = new SqlCommand("sp_getUsersDetails", con); cmd.CommandType … Software Development dataset | |
Hi all I am enrolled in abeginners class and am having problems with methods. I keep getting a .class expected and do not know how to fix this. It is at this line that the message appears `total = Circle.area(int radius);`. import javax.swing.JOptionPane; public class Circle { public static void … Software Development java java-swing | |
Hello, I have a file where the data layout is known. Suppose it's like this: image1 SomeData ... image1000 SomeData ... I want to get an access to the line I want without the necessity to move across all the lines. Let's say I wanna access directly to the line … Software Development c++ file-system | |
![]() | I converted a program from vb6 to vb.net, I used a propertybag to clone my recordsets and after I would filter them to navigate threw my data and then show the result in a gridview, but I have a problem in vb.net with my filter. In vb6 the program would … Software Development vb.net ![]() |
Hello, This is my first post to the community. I have never really been one to ask of much help but I am stumped. I was asked to asked to write a word count program that received input from a scanner object. The input could consist of one or more … Software Development java multithreading | |
Good evening everyone, I have been working on a base\derived class C++ program in which I am trying to compare the areas of a couple of Rectangles, and once I get past the errors I am currently having, I wouldn't mind comparing the Square to the rectangle, but first things … Software Development c++ file-stream | |
how can a make the floating variable show just 4 digits i mean : 8.6540098 to just 8.654 i guess what i'm trying to say is "less decimals" :D Software Development c++ | |
I am having problems with my code it says that the value compare is not being intitalized please help. I need to enter seven words total then sort them out.please help. [CODE]// it might work2.cpp : Defines the entry point for the console application. // #include "stdafx.h" /* Inputs a … | |
Hi, Here's a part of the code: [CODE]#define S 1000 /* rows */ #define T 200 /* columns */ int main() { int n, i, j; float **x; x=(float**) malloc (T*sizeof(float*)); for(i=0; i<T; i++) x[i]=(float*) malloc (S*sizeof(float)); memset(x, 0, sizeof(x[0][0])*S*T); return 0; }[/CODE] This was compiled well (gcc) and had … Software Development c | |
Hi, I'm creating a Java Swing application that lets the user enter the usual details one would expect in an address book then click the save button. The current JPanel will then be hidden while another JPanel is shown. This second panel is used for viewing all the contacts added … Software Development gui java java-swing | |
[CODE]# PURPOSE: to calculate the sum of the first (n) odd counting numbers # # INPUT(S): the number (n) which will be the last number added to the sum # # OUTPUT(S): the sum of the first (n) counting numbers # # EXAMPLES: input: 23 ; output: 144 # input: … Software Development python | |
The title maybe a little bit confusing, I will explain it. I am using opensuse. Usually I work in a shell like this: $vim test.py $python test.py >>>running... >>>running... >>>running... >>>running... $ Here the program end, but I cannot make further change nor access to the variable. I know I … Software Development python | |
I haven't got any luck finding why this program wouldn't work. Here's the code. [CODE]int main (void) { ifstream file; char *streamer = NULL; file.open("now.txt", ios::in | ios::binary); if (file.is_open()) { while (!file.eof()) { streamer = new char[33]; cout << "Prestream: " << streamer << endl; file.read(streamer, 32); cout << … | |
Hi, I am writing a program that has a listbox which is bound to a dataset. When I click a button (e.g. delete) the item is deleted from the database ok using an SQL query but is still shown in the listbox. How do I get the listbox to refresh/update … | |
I am using vs.net 2008 vb and mysql I am using datasets alot in this application, however I am having a few small snags I am running into. I created a login system that works quite well, but I need using the db or settings or a variable keep the … | |
Hi.I am very new to the vb.net programming. Now I am trying to connect the database that is sql server 2005 to the vb.net code so that I can add the data to my database, which is already in the sql server and retrieve the required data from the database. … | |
I'm trying to clean up my coding a bit for a program I'm working on. Here's an example of my code (not my exact code, but I've adapted it to an example): [CODE]class Example { private: double* group; int number; public: Example() {group=new double[1]; number=0;}; Example(const Example& ex); Example& Example::operator=(const … Software Development c++ | |
Hello, I am still green to the C programming language. I am writing a multi-dimensional array program to store strings into an array. The program requires error checking to avoid overflow. I am using Visual Studio 2008. I am using a Windows O/S. The program runs fine on the first … Software Development c visual-studio | |
[CODE]class BinarySearchTree { public: BinarySearchTree (void); bool addRecursively // calls addRecursive (see private) (BinarySearchTreeNode* newAdd); bool addIteratively (BinarySearchTreeNode* newAdd); void writeRecursively // calls writeRecursive (see private) (ostream& outfile) const; void writeIteratively // if implemented, requires a stack - (ostream& outfile) const; // - see oop06 private: void addRecursively (BinarySearchTreeNode* currentRoot, … Software Development c++ | |
In my program I am creating a class instance then writing it to a binary file. I do this several times so I have several instances of this class in my file. Then I want to access them individually, read them back into an instance in the program, change its … Software Development c++ file-system ios | |
(a) [CODE]def main(): maze= open('maze.txt','r+') for line in maze: line = line.strip() print line maze.close() print start(maze,x,y) print maze[y][x][/CODE] (b) [CODE]def start(maze,x,y): for x in range(0,len(maze)): if maze[y][x] == "s" print maze[y][x] return x, y[/CODE] question (b): write a function that walks through the maze and attempts to find exit. … Software Development python | |
hey guys i wrote a code for honework problem...the code works fine however everytime user puts more number than the static array it keep those number in the memory and later in the program if i do cout and cin it will ignore that and assign the number to the … Software Development c++ | |
[CODE]Private Sub btnBill_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnBill.Click item = txtItem.Text duration = txtduration.Text Dim fmtstr As String = "{0, -15} {1, 17:c2}" '----------------------------------------------------------------------------------------------- lstResult2.Items.Add(" Receipt from Eddie's Equipment Rental") Select Case item.ToUpper & duration.ToUpper Case "1", "h" lstResult2.Items.Add(String.Format(fmtstr, "Rug cleaner", 16)) Case "2", "h" lstResult2.Items.Add(String.Format(fmtstr, … Software Development vb.net | |
I need to load a single jpg image to a windows form at run time. file name / path is a given. Any insight on how to do this? Software Development image | |
So I have one problem and I put in the code for you to see. This is the code that i am having problems with: [code]int main (void){ FancyDateClass myDateObj(24, 2, 2008); cout << "\n\n"; cout << "The date is "; myDateObj.displayDate(); cout << "\n\n"; cout << "The month for … Software Development c++ visual-studio | |
Hello. This is my first posting so I will try to be as detailed and clear as possible. I am running into a problem with a method returning an incorrect value and I can't quite seem to figure out why. I'm building a Rolodex which is really just an object … | |
hello! I have run into a brick wall trying to write a traffic light program. The program must display a traffic light (so far I have tried painting it on a Graphics) and use radio buttons (red, yellow, green) to change the color of the light. So far, I've got … Software Development java java-swing | |
I have encountered a problem with the following function when I use it. I do not know what is going on, and would like to ask for advise. The program compiles without any error, but when I execute it, it just freezes and exits. [CODE=c] typedef long long unsigned int … Software Development c |
The End.