4,919 Topics
![]() | |
![]() | Hi DaniWeb members, I am currently designing a multiplayer Tic-Tac-Toe game. As part of a learning process, I am using asynchronous sockets to prevent the GUI from locking up. The asnych sockets work great and through various examples I managed to get it working as required. Throughout coding the network … |
below is my current code for a math game i'm having problems creating the answer checking part of it, any assistance is appreciated. [code] import javax.swing.*; import java.util.Random; import java.awt.Button; import java.awt.Color; import java.awt.Dimension; import java.awt.Event; import java.awt.event.*; import javax.swing.*; public class MathPanel extends JPanel { // Declares Labels and … | |
For some reason the file that I input into my GUI isn't being found by Java even though windows explorer finds it just fine. If you'd like to see a specific part of the code, just ask! Thanks in advance, Jack | |
I've created an image with PIL, and I'm trying to get it show on a Tkinter GUI, but I get a blank window. Any ideas? [CODE]import Tkinter import Image, ImageTk, ImageDraw #create an image image = Image.new('RGBA', (100, 100)) i = 0 draw = ImageDraw.Draw(image) ## draw some lines for … | |
Hi! I'm looking for a way to make an application (app1), separate from another java application (app2), that can acces the GUI of app2 and also listen to all events that are passed to app2. I would like to be able to get hold of the frame of app2 so … | |
Hi, I'm working on Python 2.4 and use tkinter to build my GUI. I want to display content(line) from the listbox only when it is selected. [CODE] def get_list(event): # get selected line index index = Listbox.curselection()[0] # get the line's text seltext = Listbox.get(index) print seltext Listbox.bind('<ButtonRelease-1>', get_list) [/CODE] … | |
I want to start develop software in both Java and C++. I am previously develop app for website so I am really not familiar with desktop programming. If we do code in Java, I believe we need a development tool with GUI so which one is the widely use nowadays? … | |
I am a web developer and this is my first time doing coding for desktop program. I am looking for a software development tool to use for c++ which include GUI and be able to pack up and run on windows after I have finished written the program. This software … | |
I have no idea what wrong my cods when I press = button of my calculator nothing happens. [CODE]import java.util.Stack; 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 JTextField … | |
my program works fine but i dont know why when i debug the program the shapes are coming out without me pressing the buttons [CODE]import java.applet.*; import java.awt.*; import java.awt.event.*; public class AnAppletWithButtons extends Applet implements ActionListener { Button button1, button2; int r, g , b; Color color; boolean drawLine … | |
Hello I have a simple issue that is not a compilation or runtime issue, but an aesthetic problem that I can't find a function for. Basically I've created a GUI window that visually represents a game board for my Reversi gameboard. I've implemented the GUI and the Reversi gameplay and … | |
Need help getting my add, save, search, modify, delete buttons to work I can get them to show up in the GUI but pressing them does nothing. I need the save button to save file to index.dat in folder c:\\data\ folder and create that folder if it doesn't exist [CODE]import … | |
hey guys, I'm making a small app that make a Jable and saves the table model then loads the table model and set it to the table interface and both saving and loading is in seperate frames. [CODE] // Saving the info String ufname = Fname.getText(); String ulname = Lname.getText(); … | |
I compiled with py2exe and added the setup.py script because a few people have been having trouble with email.MEME.Text working with py2exe. The .PNG's are attached below save them to your c:/python26/ there isn't much security (passwords are temp stored in a .dat file) ________________________________________________ to: [email]john@email.com[/email] sendcount = 100 … | |
The effectiveness of C++ and or Java Graphical User Interface (GUI) Design. | |
Hello, I have made a store inventory system in console in C++. I would like to know how can i convert it into full fledged graphical user interface. Any article,book,tutorial,video would be very helpful Thank you. | |
I have a C# program that I run on a Windows PC and a camera app running on a Windows CE6 terminal. The two are connected using Activesync 4.5. From the PC app, I want to be able to do the following. 1. Launch the terminal app 2. With the … | |
Hello all, I am a beginning python user and I am a bit perplexed by something that I am writing up. What I have to do is assign buttons to colors (Traffic lightesque). There is a red, a green and an auto. The tricky part is that the "auto" button … | |
Hello, Everyone I am a beginner with Python, I have to design a simple GUI page which should have a login form, Need Help. Thanks in Advance | |
Hi i am new to java gui, i have trouble using color constructor. please tell me what the problem . thank you . [CODE]import java.applet.*; import java.awt.*; public class AnAppletSubclass1c extends Applet { Color c = new Color(5,25,205); public void Color(int r,int g,int b); public void init() { System.err.println("Hello from … | |
I did it without using GUI because i am not sure how to do in GUI.I need help to put these code in GUI. [code]import java.util.Scanner; import java.util.Stack; /** This calculator uses the reverse polish notation. */ public class Calculator { public static void main(String[] args) { Scanner in = … | |
hi there i am working on a memory game project and my main problem is when i start the game user must not see the icons of buttons, when he/she press on a button then the i con should reveal, but some methods like [CODE].setPressedIcon()[/CODE], [CODE].setRollOverIcon()[/CODE] dont work if i … | |
Hello everyone at DaniWeb, this is my first post here, so please correct me, if i am wrong in asking this question. Firstly, i had a 10minute search amongst Google, and here at Daniweb. But im not entirely sure what to search for. So my question. i have a Python … | |
is there any way to set time in asp.net like any gui control like we have in vb 6.0?? | |
Im new to java and trying to get buttons to work. My next button works as intended however the first and last do not and the previous one only takes me back one space if i'm on the second item. I need the prev button to rotate backwards through the … | |
Hey there. I'm planning to develop a software for my father's business. The software is very simple, it has two tables. 1. Stock 2. Sale Whenever stock arrives, the quantity and content will be added to Stock table.. Structure is something like 1. Stock Table | Brand | Quantity | … | |
I have a problem with getting an input from class A to class B. I already created a method which gets the value but when I call it in class b it returns empty. These are my codes: [B]CLASS A[/B] [CODE] public class log extends javax.swing.JFrame { public String name; … | |
Hi, In brief, I have written a program in C++ that reads data from a text file, does 'stuff' with that data and then writes the results to a number of separate file. Separately I've written a simple GUI for this program using Visual Basic (allows the user to select … | |
Hello, I have a weird problem while running my project. I use netbeans and here's my code and the problem is explained after the code. [CODE]/* * NetworkingView.java */ package networking; import org.jdesktop.application.Action; import org.jdesktop.application.ResourceMap; import org.jdesktop.application.SingleFrameApplication; import org.jdesktop.application.FrameView; import org.jdesktop.application.TaskMonitor; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.Timer; import javax.swing.Icon; import … | |
In an earlier post, Tech-B stated that, other then dialogs, there wasn't 'any "real" GUI support' in Python that uses the Android SDK or SL4A/SAE. Has anyone tried Jython with the Android SDK? | |
hi i started coding battle ship when i was done i noticed that the user and computer always misses, even if they hit, i dont know what i did wrong [CODE]import java.util.Scanner; public class Battleship { public final static String USER = "user"; public final static String COMPUTER ="computer"; public … | |
ok for one... I must say I'm a noob at classes, but have made some pretty good apps using nothing but functions. I'd like to get into classes though, and every time I try, I end up misunderstanding 1 or 2 things and messing the whole thing up... <:\ can … | |
Hello, I know RIM is pretty much dead, but I need help with some development. I'm currrently developing an app that pushes data to my device. I downloaded some code that was supposedly developed by blackberry called the Emergency Contact List. Here is my issue: The gui isn't popping up … | |
This is not about a DataGridView or something else, it is just about drawing a simple grid in a form window. Googled a bit but found not much of my liking. A Grid as a BitMap in a PictureBox? Come on! Must have been some of those GUI guys I … | |
Hello guys, I found a lot examples about this one but I still don't have it all working. So the thing is that I have a button in my C# web application called Export to Excel. The functionality should works as if the button is clicked - it just simply … | |
Hello, im sort of an intermediate programmer that has never installed a library on java before could anyone please tell me how to install this library on java so I could use the charts functionality, Please there are all sorts of folders in there I really dont know what to … | |
![]() | I'm working on a random number guessing game with 5 tries that uses standard JOptionPane GUI and 3 methods, the requirements have each method doing a specific task. The main method starts a game is supposed to handle the 'you won' or 'you lost' dialogue and play again if the … ![]() |
Hey, I was just wondering how I can get it so when I click a button it opens my second form. But sets some of the labels to a specific thing, so I don't end up making 170+ forms for my periodic table application. Just like so when I click … | |
I am doing Gui's on Netbeans and am writing a program that sells flower ornaments and such. I have everything added to an arraylist. But when it comes to showing, I am on another tab and need to pass the arraylist to that method for display, any help? Link me … | |
Hey everyone, I have been looking for video tutorials on SWING class and pretty much of GUI side in Java .. I found tutorials on Oracle site but they require lots and lots of reading.. if anyone knows a good site that has videos on GUI, please share it.. Time … | |
How do I create a message box that lets me display a variable? I also need to know how to display variables with text. Here is the code in the switch(message) statement that I have at the moment that doesn't work. [CODE] case WM_CREATE: CreateWindow( TEXT("button"), TEXT("Click"), WS_VISIBLE | WS_CHILD … | |
I am new to GUI Java programming and I am attempting to find the best way of creating a frame to contain a series of menus. I am first adding logic to have the date and time appear in the frame, but the way I am doing it they are … | |
Hi, I started with C++ development recently, and I think I'm ready to start building GUIs for my apps. I'm thinking about using Qt, since it is the most popular C++ GUI library, but the licensing is really confusing, and there isn't a lawyer nearby that understands software licensing who … | |
I have a custom application that I support and have lately been receiving an error message that has something to do with unauthorized access. When i try to launch the program, i receive the error and the application does not launch. however, if i restart the computer, try to launch … | |
Ok, so basically I made a little image of what is supposed to happen. The goal is that there is a JComboBox, and below it is a Jpanel that updates when different options are selected from the JComboBox, there are about 6-7 different forms/options that each appear when a different … | |
This program is supposed to output some shapes using the GUI. I can't get it to actually output the shapes, but the panel shows up fine. Could someone show me what I am doing wrong? This one does the Panel and all that other stuff. [CODE]package pregui; import java.awt.Color; import … | |
So I'm making this periodic table application, and spent an hour laying it all out. Perfectly I must add. Now I'm trying to figure out how to get it so when I click a button it opens the new form (Have this done) and replace the value of some labels/textboxes … | |
I'm running Mac OS X Lion on my 64-bit MacBook, and I can't run any of the QT Jambi applications I create. Here's the code of the test program I'm trying to deploy. [CODE]import com.trolltech.qt.gui.QApplication; import com.trolltech.qt.gui.QPushButton; public class GUI { public static void main(String[] args) { QApplication.initialize(args); QPushButton b … | |
I'm having a problem with adding the name, dob month, dob day, and dob year to a binary search tree from the information from the GUI. This has to happen after the "Add Person" button is clicked. I should add it inside the brackets of the "if(e.getSource() == addPersonButton)" statement, … |
The End.