Student
23 Posted Topics
Hi all I have been following a tutorial on creating win32 GUI applications. I'm having a problem getting a dialog box to pop up on top of my main window ...the CreateDialog() method returns a NULL for some reason. Would really appreciate some help with this. Here is a zip … | |
'ellos So I'm making a Hangman game, and for the sake of completeness I want to have a HELP feature. When the Help button is clicked, a browser window should open up (not *within* the game frame... but just generally) and display the HTML Help file. How do I do … | |
Hi all I am programming a database-related application in Java. I have to facilitate several different types of queries, but I'd like to use the same JTable to display the results of each query (one at a time, of course). The problem is that when I'm using one JTable, I … | |
Hi all I'm experimenting with win API gui stuff, and I've run into a problem with dialog boxes. Currently, when the "Show DialogBox" option in the menu is pressed, the dialog box pops up. I then need for this dialog box to be draggable/moveable, and to "hide" when its close … | |
Re: The problem is in the paintComponent method of your MyPan class. It should look like this: [code] public void paintComponent(Graphics g) { super.paintComponent(g); g.drawString("Hello India",50,50); } [/code] :cheesy: | |
Hi all My program currently loads a bitmap (given a filename) and draws it to a window (win32 application). The problem is that once a different bitmap is loaded and drawn to the window... if the new bitmap is smaller than the old bitmap, the edges of the old bitmap … | |
Hi all I am fairly new to C++, and am having problems creating a quick GUI application using the Win32 API. I'd like to use the "windows form project" option in Visual C++ ...which creates windows, textboxes, buttons etc. through a drag & drop interface. The problem is that I … | |
Hi all I am implementing the TSP problem in Java. Here is the question: [quote] There are many strategies to approximate the optimal solution, amongst is the MST-Preorder-Walk strategy. Implement an algorithm that will give an approzimate solution of the TSP using this strategy. You must be able to save … | |
Hi all Here is a PHP question I have to answer. [quote]Write a php file called reload.php that contains a table with 2 rows and 3 columns. In each of the cells of the top row of this table there should be the strings AAA, BBB & CCC. In the … | |
Hi all Sorry, I didn't know where to post my perl programming question. I'm having a problem creating objects in perl. I found a piece of code on the internet, that gives an example of classes and objects in perl. I modified it a little bit, and now have this … | |
Hi all Here are two questions from my Algorithms & Complexity Theory assignment. 1. A complete binary tree is a binary tree in which every level, except possibly the deepest, is completely filled. At depth n, the height of the tree, all the nodes must be as far left as … | |
hi all I'm having an odd problem with Javascript. I created a table with a single row and a single column (and gave all of them IDs). Then I use onclick events to pick up mouseclicks and call the function `clicked(evt)`. I know this function is getting called, and I … | |
Hi all Here is a question from my assignment in Algorithms & Complexity Theory. I'm having a problem with part 2. A continuous function f(x) such that f(a) and f(b) have opposite signs must have a zero (a point x such that f(x)=0) in the interval [a,b]. By checking whether … | |
Hi all... I have a JFrame, which contains a JTabbed Pane, which contains two JPanels. The problem is that when I run the program, a completely grey frame shows up, and the contents only becomes visible when I click on the border of the frame. Here is the code. Compile … | |
Re: The prof probably meant for you to write up a method that does it :!: | |
Hi all I've programmed a relay chat system in Java. Just having two GUI-related problems with the chat client itself. [B][U]Problem #1[/U][/B] : I can't get the chat windows to scroll as new text appears in them. The scroll bar [i]does[/i] appear when it needs to, but it remains at … | |
It's easy enough in Java. How is it done in C++? for e.g. I have a class called Relation, that has a name field (just a string) and then a vector of strings. I want to specify that wherever I type (for example): Relation* r = new Relation(...); cout << … | |
I've got to implement Prolog in C++ for an assignment. I'm very new to C++, it's a little daunting. Also, I have no idea of where to start. Can someone point me to some basic algorithm and/or some resources online? | |
Re: You just keep a counter. Something like this: [CODE] int count=1; while (count<51){ <dice rolling bit here> count++; } [/CODE] | |
Hi all. Here are two questions to begin with: 1. What is the difference between the C++ standard library, and the C++ standard template library? 2. You know how Java has the API & documentation info. for all classes available? Where can I find similar documentation for the C++ standard … | |
Re: psylocke... you should really learn to program more modularly & object-orientated-ly. If you had, making little modifications to your program (and controlling the flow of the program) would be much easier. But as it looks now... I think you should switch your program to the following structure: [list] [*]a [b]create()[/b] … | |
Re: Well, assuming you structured your program decently... just get your YES button ActionListener to call the appropriate method of whichever object is controlling the game (flow). If not, structure it that way - so that the same method can be called to begin the game, whether you're playing the first … | |
Re: hmmm... [quote]if (e.getSource() == connect){ //THIS DOES NOT THROW THE VALUE OF userName TO loginUser()?????? loginUser(userName.getText()); }[/quote] I don't have Java installed on this computer, so I can't run your program... but the static method you are calling returns a boolean value, so this ActionListener bit should be something like... … |
The End.