PropertyChange Listener for icons.
I am trying to write a PropertyChange Listener which detects whether a JButton has an ImageIcon or not. `"icon"` is a beans property but I can't seem to add iconListener or something equivalent to the...
View Article[HELP] Math.pow
Hi, This is my working code but I want to change the calculations from double to int, but when I change the double with int i get an error. Can someone explain? import java.util.Scanner; public class...
View ArticleWhat the use of TableModel and how to use that properly?
Here I don't understand of how TableModel is working..? I have read @pbl's tutorial about JTable, but still didn't understand.. If to create a simple and static Table (that not dynamic) then no...
View Articlemysql_config No such file or directory
I wasn't sure whether to post this here, to the mysql forum or to the game dev forum. I am using mysql to add and retrieve high scores from an online database in my C++ program. But whenever I try to...
View ArticleHow can i List out the folders under a directory del if X days old
OS: Linux Code wise can be pure C++ or boost::filesystem also can I need to code in my program such it will be able to read the list of available folders under a specific directory and delete them if...
View ArticleUI Automation - Method not working on Windows 2012
Hi Everybody! I use UIA API for testing. I just ran a test on Windows 2012 and it fails when clicking on a button at Invoke()method with error: "System.InvalidOperationException: Operation is not valid...
View ArticleError for Invoke(); method on Windows 2012
I use UIA API for testing. I just ran a test on Windows 2012 and it fails when clicking on a button at Invoke()method with error: "System.InvalidOperationException: Operation is not valid due to the...
View Articlerandomise array for "match" card game problem
hi all ok so i trying to make a match card game , the rules i am given are 36 cars 9 sets of 4 ranging from 2 - 10 , now i have looked at two ways of doing this as below shows int[,] cards = new...
View Articletrying to populate datagrid with data from database
hi am trying to populate a datagrid with data from my database using a search function but i get this error "Index was out of range. Must be non-negative and less than the size of the collection....
View Articlehow to go from one webform to another ? asp.net using vb.net code
in the vb.net for application i used to use formname.show / formname.hide how do i move from one webform to another ? what code do i write in the button code ????
View ArticleLooking for a better answer again
Hello folks, I've got a problem here where I need to take a number stored as a string and split the digits when the string length is two (i.e 10 becomes 1 0) or if the length is one, I need to add a...
View ArticleHow to convert the txt file in XML
I need to convert the .txt file in to .Xml file using c#, I can only able to convert half of the text, But I needed to convert in to a readable xml file containing its roots ant its each child...
View ArticleDifferent results in eclipse and in browser
I made some gui in my applet program. and if user's login success, it should change panel to another one. In Eclipse everything works fine. But why when I do the same thing inside my browser it doesn't...
View ArticleUsing Weka libraries in program
Hi there I have downloaded and installed Weka. However I am unable to compile programs even after editing the environment variable PATH. I am using Windows. I have set the path as C:\Program...
View Articlequotient in loop
hello this is a homework so please dont give me the answer to the problem. int num1, num2; for (num1 = 1; num1 <= 101; num1++) { for (num2 = 1; num2 <= 101; num2++) { if (num1 / num2 == 5)...
View ArticleProblem vs2012 textbox char edit
Hi, what I want to do is to edit every char in a txtbox for ex: txtbox1.text = "Rudi" Now it must take the text length and count each step, when the char (thats being checked atm = R) then...
View ArticleLINQPad mention
Hello. I just want to bring attention to the free application/tool LINQPad. It is fantastic for testing VB and C# (even F#!) expressions and statements, LINQ, etc., - even (sort-of) complete programs....
View ArticleValue of increment variable jumps in vb.net
Hello Friends, I got another problem. I am trying to achieve an AutoHide functionality in my label So I tried to create a Class Library Project named InformationBar Just a look at my code : Imports...
View ArticleBag of Objects : Remove method
Hello! I am creating a program that creates a Bag of different Objects. These can be integers, Strings, doubles, etc. I have created a bag and put in int's and a few Strings. I can display the bag with...
View ArticleC++/SDL/OpenGL crash on windows
Hello, I'm trying to port my program to windows (I program mainly on mac/linux) and I just can't make it work. I'm using SDL for event management and OpenGL for drawing. The code compiles without any...
View Article