4,919 Topics

Member Avatar for
Member Avatar for effBlam

I'm confused on how i can change or "toggle" the text of a button from say "D" to "A" when clicked, and then back to "D" if clicked again. So far I have this: [ICODE]from Tkinter import * from tkFileDialog import * class Game(Frame): def __init__(self,root): Frame.__init__(self,root) self.grid() self.buttons() def …

Member Avatar for effBlam
0
180
Member Avatar for ChaseRLewis

I know C/C++ but am trying to learn C# as creating GUI based application is much easier than in C++. I've been leveraging the options of which GUI tool I should learn. Is it best to learn Winform, WPF, or other? I recently tried out the Windows 8 preview to …

Member Avatar for ddanbe
0
111
Member Avatar for Tortura

Hey, I created a form with many controls. It's a GUI for a measurement program. Therefore some controls must be disabled and some enabled. When the START button is pressed, every control should be disabled except the ABORT button. It works with following code: [CODE] // Disable each control in …

Member Avatar for Tortura
0
175
Member Avatar for applejax77

I am working on the payroll calculation program below and would like some help with the JTextField area. I would like the program to respond with a GUI window letting the user know that the JTextField is blank and must enter First name, last name, and so on. Any help …

Member Avatar for applejax77
0
1K
Member Avatar for sidra 100

i m making a BMI calculator GUI which calcuates weight in corresponding to height shown on slider but there is some error in program. problem lies in following line [CODE] int value = slider.getValue(); int weight=0; if (if buttonGroup.getSelected()=="Male") { weight=value/28; } else if (buttonGroup.getSelected()==Female) { weight=value/30; } System.out.println("weight");[/CODE]

Member Avatar for javaNooblet
0
97
Member Avatar for Mitche11

Hello. I am struggling to create this website. It looks great so far. The 2 problems that I am having are trying to add button functionality to the slideshow as well as make it so the images are hyperlinked to another page. If you could help me I would be …

0
99
Member Avatar for Creatinas

Hello, i'm back with new question :) So i found how to make non-blocking gui with threading: [CODE] class SearchThread(threading.Thread): def __init__(self): super(SearchThread, self).__init__() self.window = frame.panel_one self.window2 = frame.panel_two def run(self): seit = self.window.inputArea.GetValue() se = self.window.engine.filest(seit) for it in se: self.window2.transferArea.AppendText(it) [/CODE] and i bind it to check-box: …

Member Avatar for Creatinas
0
198
Member Avatar for pro_learner

I get this error in my Java programme which coded by me according to a tutorial.I coded it to connect my Java App with MySql database.This is the code.[CODE]package Gui; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.Statement; import java.sql.SQLException; /** * * */ public class connectionconfig { private connectionconfig() …

Member Avatar for masijade
0
281
Member Avatar for sidra 100

hey i have written this code to make a GUI but it compile correctly but gives error at run time. the error is exception in thread main "java.lang.NullpointerException" at GUI.intGUI(GUI.java:22) at GUI.(init)(GUI.java :75) at GUI.main (GUI.java:79) the code is [CODE]import java.awt.*; import javax.swing.*; import java.awt.event.*; public class GUI { JFrame …

Member Avatar for peter_budo
0
224
Member Avatar for sidra 100

i have jst started programing in java m beginer. m making gui which contains a two radio button a slider and a text message. although its compiling coreectly but it doesnot display any thing [CODE]import java.awt.*; import javax.swing.*; import java.awt.event.*; public class GUI { JFrame frame; JLabel coord; JRadioButton Man=new …

Member Avatar for hfx642
0
128
Member Avatar for sidra 100

i m a begginer m making a GUI which consist of a slider and 2 radio button and a text message. i have not added the functionality in it yet. but its not displaying GUI it completes successfuly but at runing time it gives error Exception in thread "main" java.lang.IllegalArgumentException: …

Member Avatar for NormR1
0
94
Member Avatar for CSloan7597

Hey everyone. I have recently decided to try and learn how to use java Sockets for client/server communication, as well as swing and threads, etc. and have (pretty much) completed a small client server application. The application is basically a syntax-highlighting notepad, a client swing GUI which connects to a …

Member Avatar for CSloan7597
0
295
Member Avatar for rlhh

[CODE] statsButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e){ //Return the string "stats" to gameLoop() as cmd } }); [/CODE] [CODE] public void gameLoop(){ Scanner lineScanner = new Scanner(System.in); cmd = ""; System.out.print(getBoard().printBoard(false)); while (!cmd.equals("quit")) { System.out.print(">"); Scanner wordScanner = new Scanner(lineScanner.nextLine()); if (wordScanner.hasNext()) { cmd = wordScanner.next(); if (cmd.equals("board")) { …

Member Avatar for mKorbel
0
221
Member Avatar for mina_k

[B]Hello , I'm new here as I'm new in python.. :D I need help in viewing database's data ,[B][U] I could view data in python[/U][/B] but i need to view it in GUI . [B][COLOR="Red"]i'm using:[/COLOR] - Qt designer - pysqlite[/B] Thank you all :)[/B]

Member Avatar for robert99x
0
56
Member Avatar for javaNooblet

Hi all, I have a main GUI class as seen here: [CODE] import java.awt.*; import javax.swing.*; import javax.swing.border.*; /* * Class is to communicate with various other classes in the program to * create a roster for user based on their selection on GUI. */ public class MainGUI extends JFrame …

Member Avatar for stevanity
0
263
Member Avatar for awesome_cool

I've been Programming in C++ for a year. I am done with Basics and all other OOP concepts(like inheritance,polymorphism and STL) I want to be a game programmer, but i don't know what to study now? I've heard about OpenGL, DirectX, GUI libraries as a result i m confused to …

Member Avatar for thines01
0
529
Member Avatar for emmas4impact

Hi everyone, i'm trying to make a sound each time a ball touches the lift and right of a frame but when i use clip and try to use the sound class it sound from right then left the in middle and then stop. i Can really use some help. …

Member Avatar for JamesCherrill
0
212
Member Avatar for eagles39

I am creating a simple GUI with a few buttons and a text field. I set the window size to to 500x500 and the text field fits on the South perfectly but once i resize the window the text field stays the same size is it possible to make to …

Member Avatar for harinath_2007
0
170
Member Avatar for mattyd

**Note: I'm not sure if this is the appropriate area for this post-- please move if necessary. Hello. I am working on a small Macromedia Flash project, just learning more about Flash and getting acquainted with the Flash interface as well as Actionscript; my question is not in regards to …

Member Avatar for gusano79
0
233
Member Avatar for Capn_Pipp

#1 - I'm a newb to java :( #2 Im having a problem getting getting my JTable to update when the user edits a cell. Im using a abstract model which is basically what the sun tutorial did word for word( i used a abstractmodel so i could make columns …

0
139
Member Avatar for unmatchedz

hey ppl Trying to get this code working for this gui cube game It is an assignment so i'm being honest, I have know idea on how to get the tkinker function to work. have searched the internet but still having problems in getting it too work. I have tried …

Member Avatar for unmatchedz
0
212
Member Avatar for Tortura

Hey guys, I created a main GUI for a measurement program. Beside all existing controls, there are two important buttons. START and ABORT. By pressing the START button, a method for measuring is run. Now I can not press any control on the form. That's okay, but I need the …

Member Avatar for Tortura
0
223
Member Avatar for coolsport04

Hello. I am trying to get back into Java and wanted to start by trying to make a functioning GUI calculator. I have the basic framework for it, but I am having some trouble with the operator. I would like to take what is on the textfield and put that …

Member Avatar for coolsport04
0
928
Member Avatar for v_janssens

I am trying to call a C++ program for a Windows Forms App and to subsequently wait until the exe finishes. So far here is what I have: [CODE] Dim ProcessID As Integer Dim ProcessHandle As Integer ProcessID = Shell(filepath_exe, AppWinStyle.NormalFocus) ' Check the Shell command worked If ProcessID <> …

Member Avatar for BitBlt
0
291
Member Avatar for maybnxtseasn

can anyone please provide me with a clear explanation of Win32 resources? You can make a dialogbox or menu for your win32 program using either resources or using c++ to code it. 1.) Why would i ever choose to use a resource script/editor provided by my compiler vs codeing it …

0
46
Member Avatar for Nandomo

I am making a Gui for an inventory. And I want for each time a person presses my next button, the jLabels to display the next item in the arrayList. Right now I'm stuck as it only displays the last element, Any help please? [CODE] // action on the button …

Member Avatar for Nandomo
0
150
Member Avatar for vegaseat

I am still trying to take a look at the gtk GUI package and reinstalled the following: gtk-win32-devel-2.8.6-rc3.exe and pygtk-2.8.2-1.win32-py2.4.exe (updated version) I have it down to a simpler error message now. Here are my warnings and errors with the sample file base.py [code]Traceback (most recent call last): File "D:/Python24/Atest/Demo/pyGTK/base.py", …

Member Avatar for vegaseat
0
300
Member Avatar for ali11

can someone help me to fix my codes.I am receving some errors.This is my first time i am using stack in GUI. [CODE]import java.util.Stack; import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.event.*; import java.util.Scanner; public class CalcGUIPanel extends JPanel { //=============================================== instance variables //--\- Component referenced during execution private JTextField …

Member Avatar for NormR1
-1
220
Member Avatar for BuhRock

So I have to program this MVC GUI of a checkout line. I have a gui that has 10 registers. Each register has a queue of customers. There is a button that when clicked, will generate a customer and the customer will be entered in the line with the shorted …

Member Avatar for JamesCherrill
0
213
Member Avatar for Zssffssz

Well I want to make a DLL but all of the tutorials online seem to focus tword GUI programing or go a little too fast. Can anyone explain it? As far as I have seen it's syntax resembles resource files. And what makes it a '[I]Dynamic[/I] Link Libray' as in …

Member Avatar for mike_2000_17
0
327
Member Avatar for akaicewolf

Ok so I am writing this GUI menu and one of the choices on the menu requires the user to log in. So I open a new window that prompts the user for a username password. However after the user inputs the information how do I just close the window? …

Member Avatar for hfx642
0
314
Member Avatar for Saidar

Hey everyone, I've been struggling with this problem for hours now and I have read and tried every example I could find but did not find a solution to my problem: I have a DLL written in C#. The DLL export function calls three functions: PrepareData(): Heavy calculations ComputeNN(): Mild …

Member Avatar for Saidar
0
233
Member Avatar for spades0001

Hey guys! I'm trying to make a GUI program. The program can take a picture from the computer, then the user can tag certain areas and input names. When the user hovers over the area where he/she tagged, it would show the name of the person tagged. And also, the …

Member Avatar for JamesCherrill
0
100
Member Avatar for compulove

I created a browse button and it will allow the user to either open or save a file to their directory, but the problem I am having is how to be able to view the path location in a textbox so the user can see where they saved it... here …

0
120
Member Avatar for ITHope

So my java pprgram is actually a GUI I did all of it except I cant figure out how to convert between bases example: number=2239 base=3 newbase=4 first i need to convert 2239 to base 3 which would be 2 * 3^3 + 2* 3^2 + ..... then convert that …

Member Avatar for JeffGrigg
0
115
Member Avatar for Kayla1809

Modify the Inventory Program to include an Add button, a Delete button, and a Modify button on the GUI. These buttons should allow the user to perform the corresponding actions on the item name, the number of units in stock, and the price of each unit. An item added to …

Member Avatar for mKorbel
0
102
Member Avatar for xfbs

Hello everyone, I have just written some code that measures a system's [URL="http://en.wikipedia.org/wiki/FLOPS"]FLOPS[/URL], but before I wrap it in a class and make a GUI for it, I would like to know what you guys think of it, if you can see any bugs and/or if you got any suggestions …

Member Avatar for vijayan121
0
2K
Member Avatar for sercio

Hi guys. We are a small company with a network of 5 local and 5 remote pc's (connected via VPN). Our current server (or better to say, kinda-server, since I built it up on a regular pc) is not enough for us anymore so we plan to upgrade to a …

Member Avatar for sercio
0
309
Member Avatar for ali11

First i create simple claculator.but now I am trying to change it to RPN calculator by using stack.Can some one help me because I don't know alot about stack.here is my codes so far. [CODE] import java.util.Stack; import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.event.*; import java.util.Scanner; public class CalcGUIPanel …

0
87
Member Avatar for shujat132

Hello Dear Brothers and sisters How are you................? I'm Student of bscs in 6th semester i write three programs but all of these are giving errors and i'm not able to findout probelm. but i thing problem is some where with CONTAINER please check all these Thanks [COLOR="Red"]First One[/COLOR] [CODE]import …

Member Avatar for NormR1
0
1K
Member Avatar for jhamill

So I had to make a program that calculates the volume of sound at a different distance, given a reference difference, and sound level, and the new distance. It works sometimes but depends on what values I put in. Much of the time it tells me the new volume level …

0
98
Member Avatar for jhamill

Hey so I've been working on a lab for my intro to software developing class and have been trying to get my program to work for several days now. It's a real basic program, im sure someone will be able to figure out the issue im having. Hopefully once I …

Member Avatar for jhamill
0
233
Member Avatar for aungmyohein

"aung myo hein" to "nieh oym gnua" how to convert with CharAt GUI JTextField or JOptionPane

Member Avatar for woodenduck
0
190
Member Avatar for ricedragon

Okey I am making a simple chess program as an assignment and I ran into a few problems I coded a file called ChessPiece which is the Base class of all the chess Piece eg King ,Queen and etc... We have to create a interface class call ChessPaint that draw …

Member Avatar for JamesCherrill
0
639
Member Avatar for ali11

can somebody help me with switch statement. [CODE] import java.util.Stack; import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.math.*; import java.util.Vector; public class Ahsan extends JFrame{ Stack s = new Stack(); private JFrame f; private JPanel p1,p2; private final int ADD = 1; private final int SUBTRACT = 2; // declare …

Member Avatar for JeffGrigg
0
2K
Member Avatar for ashsailesh

hey guys i am developing a game... in which when i press a button it has to change its color... so , i created button, used action listener to it... [CODE] if(ae.getActionCommand().equals("b1")) // here b1 is the button { b1.setBackground(Color.black); frame.invalidate(); frame.validate(); System.out.println("button b1 pressed...!!!"); } [/CODE] i also used …

Member Avatar for hfx642
0
183
Member Avatar for valestrom

Okay, so almost the exact same code works in one of my c++/cli projects, but not the other. Both have the variables set as public, so they should be free to change. But only the first one does, and the second one does nothing. Here's the button click code for …

Member Avatar for valestrom
0
297
Member Avatar for grako84

Hi Folks! I got to game (know as concentration or memory)code for my assignment. I have found many similar tasks, but mine is a bit different. Our teacher asked us to implement comboBox that we could switch between images and text version. So far I have made image one, and …

Member Avatar for grako84
0
256
Member Avatar for kytro360

I have a listbox filled with different items. For each item in the list it will visit a site in the web browser, the user using the software fills out text on the page, then it moves down the list. How can I make it so it iterates down the …

Member Avatar for zachattack05
0
237
Member Avatar for apcxpc

'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 …

Member Avatar for masijade
0
725

The End.