4,919 Topics

Member Avatar for
Member Avatar for litchi

Hi :) Is it better to have a one file program (ex. MyProgram.class) or a multiple file one (ex. Main.class and Gui.class and Draw.class)? thx

Member Avatar for Username field
0
142
Member Avatar for jimoaks

Hello, I am having some trouble writing this java GUI. First in the win1, i cannot get the start and exit button to the bottom of the page along with the jlabel into the center. Next for win2 i cannot resize the "go here" button at the bottom of the …

0
317
Member Avatar for Muhammad Anas

I am designing a very basic form in which I am using GridBagLayout to position and size the GUI components. All the components get sized and positioned exactly as I expect from my code except the two radio buttons named "noRadio" and "yesRadio" respectively. I want them to appear next …

Member Avatar for Muhammad Anas
0
624
Member Avatar for ogsirus

Hi Guys having a bit of trouble here, I have create a form program with a set of buttons which do stuff (open,exit etc). I also got a speech recongtion which has a set of words ive put into a grammar list. the problem: i want to the program to …

Member Avatar for skatamatic
0
196
Member Avatar for poolet

Hello, I am trying to design a game for a school kids (6-15 age) and I need a specific help... If you can of course... First of all the program (game) will be an "Open sources" I don't really like to sell my programs so, I will create for free... …

Member Avatar for Begginnerdev
0
168
Member Avatar for charmcity04

I need to create a program that will read from a file and output the information into a JFrame. I know how to create a program to read a file, but I just need some help reading the file to GUI. Any help would be appreciated! package ism3230_ch6assignment; import java.io.*; …

Member Avatar for NormR1
0
290
Member Avatar for swagen

package gui; import javax.swing.*; Import java.awt.event.*; import java.applet.Applet; public class FE extends Applet implements ActionListener { private JLabel lb = new JLabel("Enter text :"); private JTextField jtf1 = new JTextField(10); private JButton jb = new JButton("ENTER"); private JLabel lb2 = new JLabel(" "); public void init() { add(lb); add(jtf1); add(jb); …

Member Avatar for devninja
0
3K
Member Avatar for nuclear

Maybe I'm just missing something but I was thinking what do you call something like a Windows Form Application in Visual Studio where you can drag and drop and stuff like that. Do you call that an API or SDK or GUI or something else? By the way, as I …

Member Avatar for mike_2000_17
0
246
Member Avatar for HungMob

I keep getting an error with the "ButtonListener." I don't know what it is that's causing it, but help would be appreciated. import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JPanel; import java.awt.*; import java.awt.event.*; import javax.swing.*; public class MovingCarPanel extends JPanel { private int delay = 2; private Car car; private Timer …

Member Avatar for DavidKroukamp
0
190
Member Avatar for Suffii

Hi I am trying to run a simple gui app using wxPython as follow to list pdf files in a listbox but I am getting this error" return _controls_.ListBox_Insert(*args, **kwargs) TypeError: String or Unicode type required import os import wx class ButtonFrame(wx.Frame): def __init__(self): wx.Frame.__init__(self, None, -1, 'Button Example',size=(500, 500)) …

Member Avatar for Gribouillis
0
234
Member Avatar for Stjerne

Hello, So I got the following classes: Book BookRegister GUI Main Book contains basic information about what kind of book you want to register. BookRegister contains the linked list for registration. In the GUI, I'm using JList. The thing is, I want to put all my books I register into …

Member Avatar for NormR1
0
309
Member Avatar for VernonDozier

http://www.daniweb.com/software-development/cpp/threads/421755/simple-2d-rotation-problem Scroll down to any of my posts with code. They don't have that nice numbering and highling everyone else's has. I wrote my code in a text editor, copied it to the post, highlighted it, then clicked "Code". I feel pretty confident I didn't click "Inline Code". Anyway, it …

Member Avatar for VernonDozier
0
225
Member Avatar for tjcrandall

I am almost done with this Hangman game, but I am having problems with the letter buttons and am lost as to what to do to fix the problem... package hangman; import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.util.*; import java.io.*; public class Hangman extends JFrame implements ActionListener { private …

Member Avatar for NormR1
0
1K
Member Avatar for Samama

So im working on a project where im supposed to dynamically load the contents of a .csv file into the database.I have been hard coding the path of the file till now like * inserted = insertFromFile("C:/Users/Student/Desktop/Book1.csv",connection, "customer"); * however now i have to read multiple files from a folder …

Member Avatar for DavidKroukamp
0
97
Member Avatar for rfrapp

Hello, I'm creating a game using SDL, and what I'd like to happen is: if the character jumps on a button, then it'll disappear. However, I cannot find a way of accomplishing this, as all the SDL functions I know of start at runtime and cannot be changed. If I'm …

-1
107
Member Avatar for MasterHacker110

Ok so i have downloaded backtrack 5 r2. I have tried to setup the proxy chains but when i try to open a website with this proxies i get this error: |D-chain|-<>-127.0.0.1:9050-<--timeout I dont know why it timeout, but what can i do to fix it. and were can i …

0
80
Member Avatar for akuvidz

what is wrong with my code ? package PSM; import javax.microedition.lcdui.*; import javax.microedition.io.*; import java.io.*; public class LoginGUI extends Form implements ItemStateListener,ItemCommandListener,CommandListener { private Display display; private Command exit,save; private Login midlet; private StringItem login; private TextField username,password; public LoginGUI(Login midlet, Display display) { // TODO Auto-generated constructor stub super("Login …

0
69
Member Avatar for makehaste

Per the title, I'm trying to make my GUI change with the RadioButton selection. Specifically, I want to control which JLabels and JTextFields are displayed based on the RadioButton selection. Right now, my GUI displays the Employee ID, Last Name, First Name, Credit Rate, and Credit # Labels, and their …

Member Avatar for NormR1
0
351
Member Avatar for m1n1m3

Hi, I have a simple usb device that i can plug into a PC. The thing im looking for in user interface that is: 1) Multiplatform 2) Manages it own drivers (for plug in USB device) 3) No install file, a executable. The thing im looking for is like this …

Member Avatar for jackmaverick1
0
299
Member Avatar for jackbauer24

My son found [this](http://www.sourceforge.net) website and wants to make his own project. This is what he has learnt:- * Inheritance * Serialization * GUI * KeyAdapter * Everything basic He also wants it to be iterative (version 0.1, only bones, ver 0.2 some updating etc). Could you suggest any programs …

Member Avatar for DavidKroukamp
0
139
Member Avatar for Majestics

Its not a new question, i already searched many forums and found many answers but the builders i found arent able to compete with builder of vb.net and c#.net, so i thought to take some decision from some experience people , please give me some of your suggestions. I already …

Member Avatar for CrazyDieter
0
347
Member Avatar for memomk

hey i have this code when starting the Process to make database it freeze at all what should i do? # -*- coding: utf-8 -*- from PyQt4 import QtCore, QtGui import sys try: _fromUtf8 = QtCore.QString.fromUtf8 except AttributeError: _fromUtf8 = lambda s: s class Ui_Dialog(object): def setupUi(self, Dialog): Dialog.setObjectName(_fromUtf8("Dialog")) Dialog.resize(400, …

Member Avatar for memomk
0
2K
Member Avatar for Hazuan Nazri

This is my search button and textbox code, but i will got error on pelanggandatagridview and searchdatas, i need to search data on SQL DB like google! just type any word with almost same with the data and it will show on pelanggandatagridview, please help me... Private Sub Button5_Click(ByVal searchword …

Member Avatar for poojavb
0
143
Member Avatar for Rogue.

So how would I click on a submit button with the HTML element being: <input src="/images/members/submit_button.png?1331667296" type="image">

Member Avatar for codeorder
0
96
Member Avatar for Zilna

I have been messing with this for 2 days now and for some reason my image will not show up. I have tried to move the code around to varying locations just to see if I am just placing it in the wrong area but nothing seems to work. /* …

Member Avatar for NormR1
0
199
Member Avatar for mobeen89

Hello I'm relatively new to Microsoft Visual Studio. Now, the project that I am working consists of a GUI class and two separate classes (lets call them A and B). I am working on the GUI and one of the other classes (A). Basically, these classes interact woth some hardware …

Member Avatar for mobeen89
0
178
Member Avatar for blivori

have various classes representing various types of program-genres (comedy, drama etc). I have a text file filled with '-' seperated values that get read by a class called Processing and puts them into a LinkedList. I have another class GUI_g that creates the GUI. It has 3 JTables. One for …

Member Avatar for Majestics
0
265
Member Avatar for next_tech

Hey Guys, I am working on a gui and I've got a two part question. I've got a jlist and a couple of buttons to add and remove components from the list. I've got everything working except for the keyListener. When the cursor is on the jList (hasFocus I assume?) …

Member Avatar for Philippe.Lahaie
0
144
Member Avatar for blivori

I have a GUI in which has a container for a JTable called 'listTable'. I want to populate the JTable with data stored in a linked list, using the AbstractTableModel. Basically, I have a LinkedList stored in Processing.java. It contains all the data retrieved from a text file. I created …

Member Avatar for ejosiah
0
1K
Member Avatar for rigoalhn

Hi guys, im pretty much done with my program but im receivin an error that i cant find where it its. Im using a WPF application in visual studio and it uses a service reference that contains addresses and zip codes. The purpose of the program is for the user …

Member Avatar for rigoalhn
0
285
Member Avatar for VengefulToast

Hi forum, I just need a little help on one thing, how can I import this text document and make it usable in a JList object for my GUI application? I Did It Your Way, 11.95 The History of Scotland, 14.50 Learn Calculus in One Day, 29.95 Feel the Stress, …

Member Avatar for NormR1
0
136
Member Avatar for NoUserNameHere

Hi, I just started learning about java applets recently and was wondering why the shapes won't appear on screen when I press a button. import java.applet.*; import java.awt.*; import java.awt.event.*; public class Buttons extends Applet implements ActionListener { public void init() { button1 = new Button("Button 1"); add(button1); button1.addActionListener(this); button2 …

Member Avatar for NoUserNameHere
0
147
Member Avatar for DaAznSmurf

So my assignment is to design a simple GUI calculator using the stack data structure to perform additions, subtractions, multiplications and divisions. The calculator window should have at least two panels - one for display and the other for buttons (0 - 9, . , +, -, X, /, =, …

Member Avatar for NormR1
0
1K
Member Avatar for MrCapuchino

Hello, Something really weird started happening in my web application. I have some buttons defined in a Master Page File and then I have a lot of pages that derive from this Master Page file. One of the buttons (In the master page file) closes the user session. This means …

Member Avatar for MrCapuchino
0
249
Member Avatar for ashiiiish

How to disable the like link after it has been clicked ??? My Code echo "<a href=like.php?id=$pid>like($plike)</a>";

Member Avatar for ashiiiish
0
159
Member Avatar for Sonny101

Hi all, I am trying to use a prepared statement for the first time and I am getting confused with parameters. The idea is that a GUI opens with 10 fields filled in, now somebody can update one or more fields and this will be updated to an Access Database …

Member Avatar for aloncito
0
554
Member Avatar for Begginnerdev

Hello my fellow Daniwebbers, I have yet another question for you. I have been using a library to scan, located [here](http://bytescout.com/products/developer/scansdk/bytescoutscansdk.html), and have not been getting a consistant return. When I use the TWAIN Source, the GUI pops up and disappears almost instantly. When I tell the source manager to …

Member Avatar for Begginnerdev
0
420
Member Avatar for Stjerne

Hello, So I've big project (about conserts) going on, and this project, I'll handle all GUI. Since we need a few windows (one for registration artist, hall, concert. one for "Buy ticket", one for reviews etc.), we decided to put all these things on tabs, so we only have one …

Member Avatar for NormR1
0
208
Member Avatar for ishaan3731

I have windows 8 consumer preview iso wid me. My cd drive is not working and i dont have a usb with more han 2gb storage so i decided to install windows 8 by mounting a virtual drive using power iso!!!! I am already at present dual booting win7 and …

Member Avatar for JorgeM
0
156
Member Avatar for kytro360

Hi, Does anyone know how to create a delay in C#? I dont like to use Thread.Sleep because it makes the GUI unresponsive. Do you know of any good alternatives?

Member Avatar for Mitja Bonca
0
296
Member Avatar for davebrown2242

Man, my *rookie* status os showing on this one... For the life of me, I cannot determine why my graphics panel section is not working to correctly display my Pie Chart.... I have the output broken down, and the variables exist... It runs looking for Annuities.csv in the C:\temp folder... …

Member Avatar for davebrown2242
0
258
Member Avatar for Saviour4You

Hello, I am a java learner and have just started learing java by follwing the online tutorials. I am a computer science student and as a part of our assisgnment, I have to design a online CHat system in java. TBH, I have no clue of what to learn and …

Member Avatar for NetJunkie
0
290
Member Avatar for hughesadam_87

Hey everyone, Last semester my buddy and I made a tutorial on application programming in Python. This video uses the Enthought Tool Suite (ETS), a free powerful Python development toolkit, to build quick, easy and powerful GUI's. I see many posts on this site about Tk, wx, qt but haven't …

Member Avatar for hughesadam_87
0
487
Member Avatar for mags11

Hello. I am having a slight problem with layout in my program. The Textfield doesn't seem to be aligned with the Message Label. The program is a GUI MPG calculator. It's supposed to calculate the car's mileage. It's supposed to let the user enter the number of gallons of gas …

Member Avatar for NormR1
0
740
Member Avatar for dakerao

Hello all I have a bunch of aggregate elements within my array. This array is for vertex positions in OpenGL. and I need to make a switch without having to bind more data to OpenGL. To do this I must put an if statement within the array or a booleon …

Member Avatar for MandrewP
0
198
Member Avatar for DoubleGee

Hello guys, I'm fairly new to Java. I have been asked to create a simple GUI (JLabel, JTextField and 3 JButtons) I have managed to create the GUI but I'm having trouble with making the buttons work. Here is my actionPerformed method: public void actionPerformed(ActionEvent evt) { if(evt.getSource().equals(printButton)) // This …

Member Avatar for 117
0
203
Member Avatar for samc36

# Java Conversion Program # Hi everyone reading this. I appreciate you taking the time to even look at my problem. I'm designing a converter app in Java to convert units, km to ms-1, degrees celsius to fahrenheit etc etc.. I have built a basic Gui using the WindowBuilder plugin …

Member Avatar for samc36
0
338
Member Avatar for kubiak

`Inline Code Example Here` class MainMenu extends JPanel { public MainMenu() { this.setLayout(null); JButton newGame = new JButton("New Game"); JButton loadGame = new JButton("Load Game"); JButton scoreGame = new JButton("High Score"); JButton exitGame = new JButton("Exit Game"); this.add(newGame); newGame.setBackground(Color.white); newGame.setPreferredSize(new Dimension(180, 50)); newGame.setFont(new Font("Fixedsys", 1, 25)); this.add(loadGame); loadGame.setBackground(Color.white); loadGame.setPreferredSize(new Dimension(180, …

Member Avatar for zeroliken
0
222
Member Avatar for TheFlyingOwl

I am making a java gui keyboard as practice The keyboard itself works well and is made out of JButtons It changes colors when a certain key is pressed and then releseased I have two questions: Is there a simple way to listen for tab being pressed? Is there a …

Member Avatar for NormR1
0
303
Member Avatar for rapidwein

**Bold Text Here** The included file is a code to make a quiz using javascript and radio buttons . When you finally submit , it shoudl print the question numbers for the correct answer in green and the wrong answers in red . But the code is not working properly. …

Member Avatar for rapidwein
0
2K

The End.