132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for LianaN

Hi! I would like to get an advise about the following question. There is a set of text fields. The task is to generate a new JFrame and align text fields based on the information given, i.e. a row and column of each text field. Let's say there is a …

Software Development java
Member Avatar for LianaN
0
188
Member Avatar for spring_patel

hello, i'm vasant...recently visited an online tutorial for creating java desktop database application here is the URL [url]http://www.netbeans.org/kb/docs/java/gui-db.html#running-outside-IDE[/url] ... everything works fine...when building and executing the application from within the NetBeans IDE..6.7 but as instructed in that tutorial...when I tried to run the .jar file after exiting the netbeans IDE, …

Software Development gui ide java java-netbeans
Member Avatar for Ezzaral
0
163
Member Avatar for berwick53

Hi, Im trying to make a caesar cipher, but a windows error comes up when running. Where have I gone wrong?? Sam [CODE]///////////////////////////////////////////////// /// /// /// NAME: SAM BERWICK /// /// DATE: 18/11/2010 /// /// PROJECT: CAESAR CIPHER /// /// /// //////////////////////////////////////////////// #include <stdio.h> /// Stand In/Output #include <string.h> /// …

Software Development c encryption
Member Avatar for NP-complete
0
87
Member Avatar for StaticX

Hello, I am having some trouble with getting my menu to respond to a mouse click.I have 2 items on my menu, "New" and "Exit", and they are using the actionlistner like so [CODE] newFromMenu = new JMenuItem("New Screen"); newFromMenu.addActionListener(this); [/CODE] and then my action event [CODE] public void actionPerformed(ActionEvent …

Software Development java
Member Avatar for StaticX
0
69
Member Avatar for Finki

So im putting together a program that decompositions numbers on prefactors. Example: 252=2^2 3^2 7^1 and 1944=2^3 3^5 Put this into tuples: (wont use split, just for example) >>> split(252) [(2, 2), (3, 2), (7, 1)] >>> split(1944) [(2, 3), (3, 5)] This is the code that determines whether a …

Software Development python
Member Avatar for Finki
0
207
Member Avatar for mani_1991

hai, friends i have problem in inserting image into mysql database using a small java program.... here is my code for inserting image into database............ [CODE] import java.io.*; import java.sql.*; class ImageUpload { public static void connection() { Connection con=null; Statement st=null; PreparedStatement pst=null; try { Class.forName("com.mysql.jdbc.Driver"); System.out.println("driver is loaded"); …

Software Development image java mysql
Member Avatar for SasseMan
0
244
Member Avatar for Waldek

Hi All, I have a problem with a datagridview (7 columns) of which last 2 columns are combo boxes. The datagrid view was set in design view with column names same as a table called OccRecStaff but without a datasource. Although the datagrid view works perfectly for the first 5 …

Member Avatar for Waldek
0
162
Member Avatar for deniseblue

I am doing a inventory assignment, I think I have completed the code, but when I try to run it I get <no main classes found> I am using NetBean IDE 6.9.1 It also tells me: Created dir: C:\Users\marilyn\Documents\NetBeansProjects\ClassPublicPayroll\InventoryPart1\dist Not copying the libraries. Building jar: C:\Users\marilyn\Documents\NetBeansProjects\ClassPublicPayroll\InventoryPart1\dist\InventoryPart1.jar To run this application …

Software Development ide java
Member Avatar for apines
0
231
Member Avatar for libathos

I want to make a button in a root window.My question is should i draw it or shoud i make a new window in my root window?

Software Development c
0
101
Member Avatar for NichtSoGut

So basically it involves sodding scanf(). [CODE]int NumericalAnswer; int score = 0; main() { printf("Question 1: What's 4 x 3?\n"); scanf("%d\n", &NumericalAnswer); if (NumericalAnswer == 12){ printf("You got it right!"); score += 1; } }[/CODE] Output [ICODE]Question 1: What's 4 x 3? 12 9 You got it right![/ICODE] As you …

Software Development c
Member Avatar for Narue
0
115
Member Avatar for fahadyousaf

program is working fine on YES option but on NO option it does not return ? any one give me hint ?? this.addWindowListener(new WinAdapter(){ public void windowClosing(WindowEvent e){ String cnic1 = (String)cnic.getValue(); String name1 = name.getText(); String fname1 = fname.getText(); String age1 = (String)age.getValue(); String add1 = add.getText(); String pro1 …

Software Development java
Member Avatar for JamesCherrill
0
129
Member Avatar for Buffalo101

Hey guys, I'm trying to code a testing app which will display questions on a JForm for a period of time. I need a way of keeping track of time so I know when the user's time is up. What should I use? So far, I've found these: [B]javax.swing.Timer[/B] [B]java.util.Timer …

Software Development java java-swing
Member Avatar for Buffalo101
0
1K
Member Avatar for muncher10

i need to move[CODE]if(fright <= 45 && fright >= 35) System.out.println("Pressure is in range"); else System.out.println("Warning: Front right tire pressure is out of range"); [/CODE] to TirePressure but have it still print out right after i imput the tires pressure not after i imput them all and i cant figure …

Software Development java
Member Avatar for jon.kiparsky
0
89
Member Avatar for ivanhuk

For a homework assignment I need to make a stoplight cycle from red to green to yellow back to red. I tried using a thread.sleep method when I press a button to cycle through but it only goes to the last sleep & setColor statement. I know this is probably …

Software Development java
Member Avatar for JamesCherrill
0
166
Member Avatar for LianaN

Hi! Does anybody know how to group JLabel and JTextField in order to get a single component? Thanks!

Software Development java
Member Avatar for LianaN
0
120
Member Avatar for Barnifericus

Okay so in class my professor was going over this code: [CODE]class BinaryTreeNode<T> { protected T element; protected BinaryTreeNode <T> left, right; BinaryTreeNode (T obj) { element = obj; left = null; right = null; } // constructor BinaryTreeNode public int numChildren() { int children = 0; if (left != …

Software Development java
Member Avatar for sharathg.satya
0
255
Member Avatar for mikesowerbutts

Hi, I have a C# pdf library called PdfSharp which I use to create PDFs. I have a page (print.aspx) which instantiats the class which creates the pdf in the Page_Load() event handler. for some reason when I am running this through IIS, the process for the app pool (w3wp.exe) …

Software Development asp.net caching motherboards-cpu-ram
Member Avatar for mikesowerbutts
0
1K
Member Avatar for Altarium

Howdy Folks, I'm working on a program that does a bit of color-coding in a datagridview. My problem is that when a row is selected, the color-coding goes away since the normal behavior for the datagridview is to change the back-color to blue and fore-color to white. What I want …

Software Development vb.net
Member Avatar for Netcode
0
134
Member Avatar for di.miller

Hi, I am using VB 2008 Express to connect to an Access 2007 database. I have a combo box named cboYEARMONTH that is populated by the database. I have this part working great. When the user selects a YEARMONTH with the combo box I want the SelectedIndexChanged event to initiate …

Software Development vb.net
Member Avatar for Netcode
0
87
Member Avatar for caramia

Hi everyone, I hope you can help me. I am using vb.net and trying to delete a row in an access database. Firstly, I find the row and confirm there's record. If there's a record I ask for deletion. I am using the values submitted via a text box. Here …

Software Development dataset vb.net
Member Avatar for Netcode
0
2K
Member Avatar for asif786

I have a compilation error using bluej java. Here is the code: [CODE]while input.equals(!"q")[/CODE] This is the error I get: '(' Could you please help me thanks :) If i add to a semicolon to the end like this: [CODE] while input.equals(!"q");[/CODE] I still get the same error.

Software Development java
Member Avatar for asif786
0
114
Member Avatar for ou812buti81b4u

Need a simple way to play a wav file on my form...HELP!

Software Development vb.net
Member Avatar for Netcode
0
45
Member Avatar for atramposch

I wrote a short piece of code to give me a .dat file for use in another program. But i cant figure out what is wrong. I run on a mac, and use Xcode. [CODE]#include <stdio.h> #define ARRAYSIZE 1500 #define BINDATA "file://localhost/Users/Hub/Desktop/231A4binData.dat" int main (void) { int i; double dblData[ARRAYSIZE]; …

Software Development c
Member Avatar for Ancient Dragon
0
169
Member Avatar for javaperson1

Hi there, I tried to to delete sorted number in each rows by reading a text file and write it to another file with a new format: such as readfile1.text contains 1, thoman 2, tom 3, jess87 4, kelly and so on.. I came up with this code and I …

Software Development file-system java
Member Avatar for javaAddict
0
153
Member Avatar for TSims11

Hi guys, I'm makeing a Homework "tracker", which is basically a day planner. I need help making a settings file for the initial setup. I have a text box, a couple radio buttons, and one "begin" button. I need a way for the program to remember what choices were seleced. …

Software Development c++
Member Avatar for Ancient Dragon
0
111
Member Avatar for Azurit

This is part of my code. I want to declare an array of List, and I want to be able to pass this array to the functions listed below, so that I can do work on the array (i.e. add/delete nodes). But I have problems getting my head around pointers …

Software Development c++
Member Avatar for Azurit
0
1K
Member Avatar for musikluver4

I have been able to successfully load another java program (Calculator) within a java program with the following code: [CODE]Calculator.main(null)[/CODE] The program loads successfully but both programs have the code: [CODE]addWindowListener( new WindowAdapter() { public void windowClosing(WindowEvent e) { System.exit(0); } } );[/CODE] So once I close the Calculator program …

Software Development java
Member Avatar for JamesCherrill
0
129
Member Avatar for onsir

how to show data from database to treeview. example: data like this code Menuname l_evel parent M01 Maintenance 2 File M0101 Area 3 M01 M0102 Terms 3 M01 M0103 Category 3 M01 M010401 Rate Maintenance 4 M0104 M0106 Customer 3 M01 M010601 Customer Maintenance 4 M0106 please give code. thx

Software Development pascal
Member Avatar for Kazmirus
0
221
Member Avatar for tariqi

am using sql 2005 and vb 2008.i need to compare dates and select matching records betweem a selected date range.say records between 11/13/2010 and 11/20/2010.e.thing is working ok except when it comes to selecting dates between 11/1/2010 and 11/9/2010.this is happening because when am retrieving the dates from database,its being …

Software Development vb.net
Member Avatar for tariqi
0
591
Member Avatar for bob3

I'm just trying to make a cash till and something is wrong because when i try to execute it it just freezes. I think something is wrong with my loop, also i don't know how to refresh my sale total when i click clear order. It clears it but when …

Software Development vb.net
Member Avatar for Netcode
0
161
Member Avatar for shredder2794

Hello all, In lots of applications there are copy,cut,and paste buttons where the user can highlight some text and click "Copy" or "Cut" or "Paste" and then the program would do the corresponding actions. I was just wondering how to code such a button in Visual Basic 2010? Thanks in …

Software Development vb.net visual-basic
Member Avatar for Netcode
0
2K
Member Avatar for fahadyousaf

Please any one guide me or give me some hint ... can i run my java application directly from batch file or any other way from which i can directly access GUI of application. Regards,

Software Development gui java
Member Avatar for apines
0
104
Member Avatar for vedro-compota

Hello programmers ! Can anyone tell me - how to delete an initialized reference-type element, which suggest some links? Is there for this in C # the special function? Thank you for your answers))

Software Development
Member Avatar for vedro-compota
0
178
Member Avatar for mphan228

I have to create the following functions with the code provided: OpenScreen(); MonthlyPayment(???); Amortize(???); AmortizeScreenHeader(???); But I'm kind of confused on whether or not the program will only have functions showing in the main body or will there be more than just the functions? Ex: [CODE]int main { OpenScreen() MonthlyPayment() …

Software Development c++
Member Avatar for jonsca
0
382
Member Avatar for Goalatio

Over the past few days I have been writing a bootloader/kernel in NASM... It loads perfectly fine when I write it to a virtual floppy using PARTCOPY, and then boot to it from Oracle VM VirtualBox. However, when I write it to a physical floppy and try to boot to …

Software Development assembly oracle
Member Avatar for Goalatio
0
331
Member Avatar for little.daffodil

Hello, I need to read from a text file. There are only 2 lines in the text file. And I need to read both, line by line as a string. After reading it, I want to use it (concatenate). For example, each line is represented as string1 and string2. I …

Software Development
Member Avatar for little.daffodil
0
262
Member Avatar for justinbailey

I have to answer with the runtime for Big O for a few examples of C++ code. I'm generally having some trouble grasping the concept of Big O but two particular problems are stumping me: [CODE]cin >> x; double n = example(x); for ( i =0; i << n; i++) …

Software Development c++
Member Avatar for justinbailey
0
170
Member Avatar for flamedragon00

Hello everyone, I'm new to this website and to prgramming in general. Taking a class and we're starting with python. Doin a programming project in which I need to do Data mining for a company. I'm stuck trying to get the company's monthly average for each month. I can A …

Software Development python
Member Avatar for flamedragon00
0
1K
Member Avatar for blknmld69

I have started my code to create an application with two combo boxes. One that holds the names of the dormitories and the other holds the meal plans. The user should select a dormitory and a meal plan, and the application should show the total charges for the semester. I …

Software Development gui java java-swing window-manager
Member Avatar for jon.kiparsky
0
907
Member Avatar for awais1a

i have an assignment can somebody help me, [B] Assignment Statement:[/B] Comparing two arrays for equality or matching indexes You are required to write a program which will take input from user in two integer arrays. The program should compare both arrays for checking if both arrays are totally identical …

Software Development c++
Member Avatar for VernonDozier
0
182
Member Avatar for musikluver4

I have a GUI program that controls all the graphics, etc of the program, while another program has all the calculations the GUI program grabs to show in its program. Well I would like to have another program that uses Frame and implements ActionListener, and launch that program with the …

Software Development gui java
Member Avatar for musikluver4
0
136
Member Avatar for lochnessmonster

say i execute an windows api function in my code to allocate memory in the specified process! How do i actually view/know this worked without checking getlasterror() or return codes? is there any other way i can do this in a easier/better manner? maybe runtime with a debugger? if so …

Software Development api c++ windows-api
Member Avatar for Ancient Dragon
0
85
Member Avatar for Perry31

Hi, Can anyone explain in detail what is the difference between int *a and int* a? Is there any difference between them?

Software Development c
Member Avatar for Ancient Dragon
0
85
Member Avatar for yuugib

Hi again guys, last time I posted a problem I got a lot of help... and here I'm back again with new issue. This is the assignment: [QUOTE] Contains a function called sumN() which takes an int n as an argument and returns an int which is the sum of …

Software Development c++
Member Avatar for penguins10
0
566
Member Avatar for hwalsh

Can anybody tell me why I'm not getting checkboxes? Sometimes I can get one, but never the three I need. [CODE]public class SwingLab implements ActionListener { // instance variables - this instance will get reader's name private Scanner reader;//name from user private Random random; private ArrayList<String> name;//construct a responder, declare …

Software Development gui java java-swing
Member Avatar for hwalsh
0
167
Member Avatar for kberrianjr

I am trying to save a listview item and 5 subitems to a txt file, I have tried one solution that was posted on here but i could not manipulate the code for all of my sub items can someone please help me out.

Software Development listview vb.net
Member Avatar for Unhnd_Exception
0
992
Member Avatar for dduleep

why variable can't add number as suffix like: [CODE] int 3a[/CODE]

Software Development c c# c++
Member Avatar for Jmknight
0
105
Member Avatar for Tankadin

Hi folks I know this particular program has been posted in many other forums but it all involves many different things that I have no learned yet so I really can't use any of them.....plus it would make me look stupid to turn in something that I copied that includes …

Software Development java
Member Avatar for Tankadin
0
5K
Member Avatar for foobar8

Hello, I have a program that is like a ftp server - it sends and receives files over unix sockets. It works fine when I transfer text files, but as soon as I want to receive binary files, it's not working properly. Files are transferred correctly, I can verify that …

Software Development c client-server unix
Member Avatar for mrropi
0
946
Member Avatar for Azul-P

Greetings, I'm working my way through Michael Dawson's Python Programming for the Absolute Beginner book. At the end of chapter 4: "for Loops, Strings and Tuples", there is a challenge that asks so "improve Word Jumble so that each word is paired with a hint. The player should be able …

Software Development python
Member Avatar for TrustyTony
0
2K

The End.