3,671 Topics
I'm making a Connect 4 game for a school assignment, and my code should work in theory, but in reality it doesn't. Whenever I run the game, the board tries to draw itself, but then fails to do so. Can anyone please give me any advice? Thanks in advance. [code]unit …
hi! In a GUI I'm making, I'm using a dialogbox, and I want the user to have an option to load a picture from file, and to see it on the dialog box. but here is where I need help. how can I display a picture on a dialog box? …
Hi guys. How would I go about installing the gnome desktop on my mac? I've got X11 running and all, but can't see to get it to work. Would someone care to give me some instructions on how to do this?
Can any body help me to solve the problem of How to get integer values using Jtable from database
How do i put a Button indside the cell of a ListControl in wxPython. Thanks in advance.
i hav created one chat window...in that i added two richtextbox...one in the send window another is a main chat window...and i added font and color to that send window.. whilem typin g in that send window it shows all the font and color...but while sendin it displays that sent …
I have a project that I am doing, but I cannot get my final answer to go into the text field that I want, it keeps coming out in a new terminal window. What did I do wrong?? import java.awt.Color; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JFrame; import javax.swing.JButton; import javax.swing.JPanel; …
I need help with a program I am making it creates window but doesn't display buttons aor text controls [code=python] import wx import MySQLdb db = MySQLdb.connect(host="localhost", user="root", passwd="Hornets71", db="soul_society") cursor = db.cursor() class MainWin(wx.Frame): def reg(): number = self.numtxtctrl.GetLineText() name = self.nametxtctrl.GetLineText() uid = self.uidtxtctrl.GetLineText() cursor.execute("INSERT INTO member_list (number, …
Hello For example I have a winapi GUI program called blabla.exe I have another winapi GUI program called TYCK.exe. Now how to make blabla.exe run in TYCK.exe?? I was using[CODE]system("blabla.exe");[/CODE], but this is not portable and it goes through cms, what I dont realy like. Is there any other way …
Hi, i'm using a JTextPane that i've customized with a method to set up some tabstops. In my GUI class constructor i call the tabstop setup method and it works fine. I'm having a problem though when i load text into the TextPane. Even though i call the tabstop setup …
G'day, First of all a very big thank you to both Jeff and Vegaseat for their great help...but sadly :icon_sad: it's not what I needed. Being a novice at Tkinter I did not realize what Tkinter was and was not capable of and I therefore blame myself :icon_redface: for any …
I am trying to make a simple GUI based calculator for my homework. my +,-,*, and sqr functions work fine. i have to implement sqrt function for one of my JButton. am trying but have no clue what to put in event handler here else if(event.getSource() == sqrt) { ....... …
hello,,,everyone,I just want to ask a list of sites to where i could learn GUI programming in c++ for the beginners like me.i hope you could help me about this one and be one of my circle of friends.you may just add me in your yahoo messenger jk_bscomp or e-mail …
hey there, could someone please help me with the api for using the flowlayout manager in java as well as a good example..thanks
Hey, this isn't an, "I have an error" post! It's more like I'm taking a basic java course in High School and want to include an image as a background in a project in swing. I found some code online that seems to do this quite well, but I need …
Hi, I'm currently trying to make a simple picture Puzzle Game ,but i have some questions. I hope I found the answers here . First, How I can separate a picture into small pieces? Second, I want the user drag and drop the parts of the picture into the playing …
Hi, i am a beginner in java. i have to put two text fields in my form, one for username and the other for password. i want the password text box to hide input when user types in it. Can someone please tell how can i do that in java, …
Hi, it's me again and i have new question: This is my code: [CODE]# -*- coding: cp1250 -*- import string as _string import time as _time import wx from math import* class Canvas: def __init__(self,parent): self.okno=parent self.okno.SetBackgroundColour("#FCFCFE") self.radic = wx.FlexGridSizer(2,2,0,0) self.canvas = wx.ScrolledWindow(self.okno, -1) self.canvas.EnableScrolling(True, True) self.P_WIDTH = 1000 self.P_HEIGHT …
HI, I am having some trouble with my assignment. I have created the gui and i am now writing the event handling. My problem is with the arrays. I have 3 seperate arrays all the same length.1 is a string and the other two are ints. in each array the …
So it's like this: I want to create an 'activebutton' widget with the following properties. * The button itself is text that changes foreground color when the mouse hovers over it. * If the mouse hovers for more than 200ms, a PopupMenu appears that allows the user to select a …
Dear Friends Im mjp java :* i have one doubt in drag and drop picture in panel . can u say me how to use different layout panels in drag and drop functionality.
Hi I am solving new problem and i cant find any solutin:( i have wx.PaintDC and i painted there some lines. I am trying to save it as file. I found only something about BufferedDC, but it didnt work corectly:( Thanks for all post!
is this command not correct? [code]richedit1.text.ClearSelection;[/code] i tried to use it in an onclick event procedure, but i got an error.
how do I install the package concerning GUI in c++. I am using ubuntu 6.06. tnx.
Hi everyone pls I have got two images on a JFrame which are represented by labels.one of them is generated randomly and i want to compare it to another and if they are both the same a message dialog box is shown stating that the images are the same or …
just asking where could I get complete tutorials about c++ application making through the net.. Ur help is highly appreciated.. thanx... :?:
Hi there everyone. I'm wanting to make a simple Snake game where the speed of a block (image) goes around by pressing up, down, left and right. I would also like it to go faster every 10 seconds so it gets harder as time progresses. Here is the code I …
Java program with a menu of 6 items. -each of the 6 items has a check box -when the food is selected it appears to the right saying that so n so was selected. -then i just need a welcome screen before that to introduce the program -then the user …
import java.awt.*; import java.awt.event.*; import java.swing.*; import java.util.*; public class Main extends JFrame implements ActionListener { private DefaultListModel mod1=new DefaultListModel(), private DefaultListModel mod2=new DefaultListModel(); private JList 11 = new JList(mod1), private JList 12 = new JList(mod2); private JButton to=new JButton(">>"), delete=new JButton("<<"), ord=new JButton("order"); private JLabel costLabel=new JLabel("Total Cost: $0"); …
Hey Im new with linux and all, I recently installed Ubuntu 6.10. The thing I wana know is, how do I load up the GUI for Unbuntu? It always boots in text based. I dont know any commands yet for Linux, I will be learnin them next yr in my …
hey, here i have a question. i want to select a directory path alone... For example, by using "openfiledialog" control, we can select the file path (eg., d:\sample\dest.txt). But i want to select only the path (eg., d:\sample\).... can anyone help me ? thanks in advance...........
I have an application that I want to create my own dialog screens. For example, the user cliks on one frame, and I want to open a window for the user to enter data, after the user finishes, he presses OK and then the main app continues. On the class …
Hello. I made an command-line application. Now I want tomake an gui version but I don't know which GUI I should choose. I want the executable to have requirements for libaries while running (so I don't think about using GTK). I tried QT but I don't know if I can …
dire friends i write code in applet for scrole text left to right.now i want same thing in verical direction n cover full length of screen.so what i should do it
When your in the game and you hit someone it would display damage up at top of screen. For example: 4530 Crit! How would you get it to display the text?
Hi to all... In a MFC application, I need to change the background color of a drop down list - combo box control. IDC_MYCOMBO is the resource id and m_myCombo is the name of the control. I need to change the backcolor programmatically. Is there a way to achieve that? …
I was trying to write the falling letters program in C but could not figure out a way to locate a letter on the screen and make its y axis decrese every lets say 1 second? If I use either printf or cout it print the letter in one line …
I need to make an application where data from the database has to be displayed in bars and charts.....gauges will also help......what approach to follow...where can i get customized widgets??????...help
I originally joined this site almost a year ago so i could find out the name of the GUI library that's in most compilers. Didn't get much help back then. But I hope that will change. I'm making a sudoku game in C++, so obviously I need a matrix (or …
Hi I know this sounds really stupid, but I cannot figure out how to run the wxPython demo program. I'm using OS X and I downloaded the latest demo/docs package. When I double click on the "wxPytho demo.app", there is a splash screen with the wxPython logo, but then there …
I wrote a program in java that takes a message entered in the shell and flashes the message, then click the quit button to quit. Now I am supposed to rewrite it in python. So far in TKinter I only have the actual quit button (gui). I have no idea …
Can someone help me rewrite this java program in python. This program takes a message from the shell and flashes the message one word at a time. Now I am supposed to rewrite it in python (tkinter), I have the gui done and my quit button works, but I cannot …
plz help me with my program i want to create a program "LED Message Board Simulator" but i don't know how to start and to create them. can anyone give me example source code of that program?
I have created a custom control that can be added or removed from a form. On the form, I maintain a list of the created controls using an ArrayList. On the delete button of the control I have coded [code] this.dispose(); [/code] It results in successful deletion of the control …
hey i have a problem... i am working on a car dealership object-oriented program project and i am working on the (admin part) in which i can add cars, delete cars, and modify cars... so that as soon as i change info on cars, other users can see the changes... …
Good day! I have a problem about hiding and unhiding a web objects in AxWebBrowser using VB.Net. Our teacher's condition are: (1) There must be a command button outside the AxWebBrowser. The command button will generate a random number from 1 to 4. (2) After generating random number it automatically …
Hi all, I have a GUI based roulette game with two classes a bet screen and a main menu screen i need to know how to say if a button is pressed in the bet screen to do its operations and then close and return to the main menu screen. …
Hi, how to using function "for" to show iteration and the result put in jTextArea or jFrame. exp: i want to loop value 1 to 10, then result : 1 (iteration 1) 2 (iteration 2) . . 10 (iteration 10) I'm using netbeans Thank's
Pls i am a new member of dani web and i need help on implementing random images. I have got six gif images on my frame ,a JComboBox and a Button.the JComboBox displays the images if each one is clicked.I want to add an actionlistener to the Button so that …
hi i am a beginer in VC++ . i would like to know whether it is possible to Draw a line in the picture control by taking the values from the edit box i.e (x1,y1) and (x2,y2).
The End.