43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for ceyesuma

Hello I am not sure what is getting serialized. I would like to serialize a JInternalFrame. So what do I send my SaveFrame.java. because it puts a file "null.dat" in the folder. I sent the frame got null.dat sent something I thought was the class of the frame (as shown …

Software Development java java-swing
Member Avatar for ceyesuma
0
146
Member Avatar for elsiekins

theoretically - when using unint16_t (unsigned integer of size 16) I have two arrays of these unsigned int and i am going to use [CODE]memcmp[/CODE] for example: [CODE] uint16_t a[ARRAYSIZE] = {0,1,2,3,4,5,6,7,8,9,10}; uint16_t b[ARRAYSIZE] = {0,1,2,3,4,5,6,7,8,9,10}; if (memcmp(a,b , sizeof(uint16_t) * 16) == 0) { return true; }else { return …

Software Development c++
Member Avatar for Ancient Dragon
0
125
Member Avatar for burcin erek

there are two scripts, first, square.h second square.cpp this test program is trying to calculate square and cube of the given number but i have a problem with cube function definition. [CODE] #include <iostream> #include <conio.h> using namespace std; class square { int x; public: void set_values (int); int erek …

Software Development c++
Member Avatar for alaa sam
0
138
Member Avatar for neosonic

I put one smaller picture box inside the bigger picturebox. The annoying thing is, I cannot have a good picture, because the my smaller picture is in rectangle shape, while the smaller picture box is in square. So there is a residual space in the smaller picture box that I …

Software Development visual-basic
Member Avatar for AndreRet
0
285
Member Avatar for shane1987

Array of Random Numbers Write a program called Random50 that fills an array with fifty random values between 1 and 999. However, before a random value is entered into the array the program must check that the number generated is not already in the array. If it is already present …

Software Development java
Member Avatar for lee.j.baxter
-1
5K
Member Avatar for tunde011

Hello all, I am hoping you point me in the right path here. How do I open a workbook when a value in the listbox is clicked? Thankyou

Software Development visual-basic
Member Avatar for AndreRet
0
209
Member Avatar for LianaN

Hi! I want to create a stopwatch that will counter seconds starting from 0. This code worked in case of a real time counter (using Calendar). However, now the counter is fixed on 0. Does anybody know what could cause an error? Thanks! [CODE] timer = new javax.swing.Timer(1000, new ActionListener() …

Software Development java java-swing
Member Avatar for apines
0
104
Member Avatar for gee_azizi

Hi, in my VB6 app, there are ADMIN and USER type that can log in. Is it possible that ADMIN can monitor USER activities like when they delete the data, who had log in into the app and else? Thank you

Software Development visual-basic
Member Avatar for AndreRet
0
256
Member Avatar for SkyVValker

I am using the code below to update the fields in a table.bt it update only first recorde ..where m i doin wrong plzz. help me..! [CODE] StChk.Open "SELECT * From SPINF WHERE STATUS='Active'", Con, adOpenDynamic, adLockOptimistic FeeTrans.Open "select * from TBLFEE ORDER BY VOUCHERNO", Con, adOpenDynamic, adLockOptimistic Do While …

Software Development visual-basic
Member Avatar for AndreRet
0
90
Member Avatar for Tiny_trixer

I was wondering. Is there a way to write something from one method in to a result file instead of outputting to screen? To describe a little better, in pseudocode: [CODE] #include <iostream> #include <fstream> using namespace std; class Inputoutput { private: ifstream fileOne; ofstream fileTwo; int i; //More variables …

Software Development c++ file-system ios
Member Avatar for drkybelk
0
139
Member Avatar for krip_101

I am getting an array out of index error 26 pls I really need help. [code]import java.util.*; import java.util.Random; import java.lang.*; public class testing1 { public static void main(String[] args) { String pass = new String("ENTER THE HAMLET HAM TO BE OR NOT TO BE THAT IS THE QUESTION WHETHER …

Software Development java
Member Avatar for JamesCherrill
0
103
Member Avatar for gunbuster363

I've learn python and I won't say that I know it all, but I won't see anywhere except google will use python. New programming language like python and ruby, do they have space to grow?

Software Development python ruby
Member Avatar for convoluted
0
309
Member Avatar for Eric Cute

Hi guyz. I know this is a simple one but Im a bit confused in doing this. Basically, I want to get the Screen Resoultion of the client machine using my JSP. I have this code in my Bean. [CODE] Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); return screenSize.getWidth(); [/CODE] Problem is it …

Software Development display java java-jsp
Member Avatar for Eric Cute
0
307
Member Avatar for kezkez

Hello, I am trying to return the union of two ArraySet Strings as a third; however, the compiler is complaining: found : jss2.SetADT<java.lang.String> required: jss2.ArraySet<java.lang.String> union = one.union(two); I was thinking I could pass an ArraySet<String> as the parameter but unfortunetly I am stuck here. Any suggestions on how to …

Software Development java
Member Avatar for kezkez
0
104
Member Avatar for dnambembe

Hi, I am writing a code that reads input from user to create a linked list database at the same, time it write the data received in to binary file. when I run the program is supposed to prompt the user to enter the data for ten time, however the …

Software Development c c# c++ ios linked-list
Member Avatar for dnambembe
0
1K
Member Avatar for sallubhai

Hi, Is there anyone who know which complexity these functions are? I mean O(n), O(n^2), O(n^3), n log(n) or log(n) 1. --------------------------------------------- [CODE]void bogosort_array(double a[], int length) { do shuffle_array(a, length); while (! is_array_sorted(a, length)); }[/CODE] 2. --------------------------------------------- [CODE]void reverse_string(char* s) { int n = strlen(s); for (int i = …

Software Development c
Member Avatar for sallubhai
0
209
Member Avatar for anglwthnati2de

Hi guys. I am hoping for a little help with this. I am pretty new to programming and just can't seem to get things right yet. Here is my code. It returns like 40 errors. Way messed up eh? [CODE]#include <iostream> #include <string> using namespace std; class Date { public: …

Software Development c++ oop
Member Avatar for anglwthnati2de
0
204
Member Avatar for LianaN

Hi! I would like to add a timer to JTextField. However, my timer does not run. Could you, please, tell me what is wrong in my code. Thanks! [CODE] timerTask = new MyTimerTask(); timer.schedule(timerTask, new Date(0), 5000); // 5 seconds delay ... private class MyTimerTask extends TimerTask { @Override public …

Software Development java
Member Avatar for LianaN
0
83
Member Avatar for armanus

I'm attempting to make a Tic-Tac-Toe against the computer program, I'm pretty much done, but i can't figure out how to stop the computer from making the exact same move as the human does. Thank You. [CODE]// Include the libraries #include <iostream> #include <string> // Use standerd namespaces. using namespace …

Software Development c c# c++
Member Avatar for SgtMe
0
181
Member Avatar for VB 2012

I have a problem that needs fixing How do you get all open tabs shown in a KryptonListbox My fail attempt : TabpagesHtml.Items.Add(Form1.SuperKryptonNavigator.Pages.Item(0)) : :@

Software Development session vb.net
Member Avatar for VB 2012
0
181
Member Avatar for Superstar288

Hi everyone im a bit confused with my work and i hope you can help me. i need to get some values from a text file and enter it into a 2D array ive done this part ok with the following code however in my file i have some other …

Software Development java
Member Avatar for Superstar288
0
155
Member Avatar for neo_31591

hey guys/...am stuck at one point....help me please! ! ! its a quiz progg... one ques...4 options... i have one button---NEXT QUES--- It should display the next ques--it should also take the user selected option, compare it with the correct option and show if the Answer is right or wrong …

Software Development java
Member Avatar for neo_31591
0
92
Member Avatar for Dinnerfortwo

Hi, im trying to figure out how to call a function's variable from here [CODE]def legal_moves(board): moves = [] for square in range(DINNER): if board [square] == SPACE: moves.append(square) return moves[/CODE] I want to take the variable moves and use it for main How would I do that?

Software Development python
Member Avatar for TrustyTony
0
85
Member Avatar for Oregand

Hey guys, im just learning how to use methods but I really cant seem to understand them. We have a question where we have to write a program for the following game. There is a little known dice game which is played with a pair of dice and has the …

Software Development java
Member Avatar for Oregand
0
3K
Member Avatar for Alkaline8214

Hello everyone. My name is Mike. I am a new member :). I hope to be using this forum quite a bit to extend my knowledge base on c++ and java.(just wanted to introduce myself being my 1st post and all lol) Well my class was tasked with making a …

Software Development c++ queue
Member Avatar for VernonDozier
0
4K
Member Avatar for Oregand

Hi guys, Im pretty new to programming so bear with me if you think this is baby stuff:P Ive just been introduced to methods last weeks and after a week of study Im no better at understanding them. The problem is I just seem to grasp how to you them …

Software Development java
Member Avatar for Oregand
0
135
Member Avatar for Friendly Lotus

Hi all, I am trying to update the colour of a Tkinter label, so as the value of a variable changes so to does the colour of the text. Below is a simple example of what I am trying to achieve, but the problem is when I press the button …

Software Development python tkinter
Member Avatar for TrustyTony
0
15K
Member Avatar for Dhruv Gairola

Hi there friendly people of daniweb. My problem is that when i double click an executable jar file, nothing happens. Even when i use command prompt and type java -jar "filenae" it doesnt work. Any ideas why?

Software Development java
Member Avatar for Dhruv Gairola
0
120
Member Avatar for choover12

hello, i want to be able to split this string: "StraightPath1, 1, 2" into 3 sections: name, x, y. but when i use this code:[CODE]string[] pieces = line.Split(',')[/CODE] it only i can only read the last 2 parts like this: [CODE] string Name = pieces[0]; //output: null int X = …

Software Development
Member Avatar for choover12
0
167
Member Avatar for khaled_jawaher

i have written the code in client,server,interfaces.i have created stubs and skaleton. i have run rmiregistry very well.i have run server.i have an error in client side,when i run client.it is moving to the catch not looking up to the correct address of server. the code of client is: [CODE]import …

Software Development client-server java
Member Avatar for ~s.o.s~
0
161
Member Avatar for neo_31591

hey guys... i made a database using Access....it consists of questions and 4options each... i made a quiz progg through java and connected the database using jdbc.... before,since it was my trial attempt, i entered silly ques into the database like whats ur name with 4 options....just to check if …

Software Development java
Member Avatar for neo_31591
0
124
Member Avatar for dorien

Hi, I want to copy a row from a 2d vector in an existing 1d vector. I found a similar tread, which copies into a newly defined vector as such: [CODE]vector< data_type > copyRow( vec2d[3].begin(), vec2d[3].end());[/CODE] Now I want to change this code, so that copyRow already exists. My idea …

Software Development c++
Member Avatar for dorien
0
1K
Member Avatar for lee.j.baxter

Hi folks, I'm writing some utility classes for a project, and I've written an abstract class called "XPObjectTable" that displays a table of objects of a given type. To refresh this, I'm using "AbstractTableModel.fireTableDataChanged()". Now I'm writing a similar class for JList, but can't find a similar method (i.e. "AbstractListModel.fireListDataChanged()"). …

Software Development java
Member Avatar for lee.j.baxter
0
190
Member Avatar for Trle94

Hey i want to open Tabpage 2 when i click button 1 on Tabpage 2, how to do it? :)

Software Development vb.net
Member Avatar for Trle94
0
336
Member Avatar for ash07

Hello aLL I need a small help from you guys.. I am creating project in VB6.0 and access 2003, form has combobox,tab control,textbox msflexgrid .. I am trying to retrive data from database.I have a sub procedure which is nicely working for all controls except combobox. while debugging I found …

Software Development visual-basic
Member Avatar for AndreRet
0
213
Member Avatar for bshrestha

Hi guys! i am stuck in my fraction program. i hope you guys can solve it. here i have posted my code. i am trying to get for e.g. 4/2 need to get me answer like 2/1 or 2/4 show me 1/2. i hope you can help me out. i …

Software Development c++
Member Avatar for SgtMe
0
118
Member Avatar for hondros

Hello, I'm trying to take a C array of char's and trying to take all of the spaces out of it. Yet I keep running into a segmentation fault. Can anyone help me here? [code] #include <stdio.h> #include <stdlib.h> int strlen(char* Str) { int toret=0; int i=0; char tmp = …

Software Development c++
Member Avatar for VernonDozier
0
207
Member Avatar for CharliePrynn

Hello, I currently have been coding this. [CODE]Imports System.IO Imports System.IO.Compression Imports System.Windows.Forms Imports System Imports Ionic.Zip Imports System.IO.Path Imports System.Net.WebException Imports System.Net Imports System.Text Imports System.Net.Sockets Imports System.Security.Cryptography Public Class Main ' FTP upload Private Sub FTPU() If ListBox2.SelectedItem = Nothing Then MsgBox("Select world.") Else Dim clsRequest As System.Net.FtpWebRequest …

Software Development file-stream vb.net
Member Avatar for CharliePrynn
0
210
Member Avatar for Buffalo101

Hello, I'm trying to change the look of java apps to something native. In my first JFrame, I'm using: [code=java] try { //org.fife.plaf.VisualStudio2005.VisualStudio2005LookAndFeel //de.javasoft.plaf.synthetica.SyntheticaStandardLookAndFeel //com.jgoodies.looks.plastic.Plastic3DLookAndFeel //UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel"); UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel"); } catch (ClassNotFoundException e) { e.printStackTrace(); } catch (InstantiationException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (UnsupportedLookAndFeelException e) { …

Software Development java java-swing
Member Avatar for leiger
1
159
Member Avatar for toferdagofer

Im having problems with my input validation. Its not working correctly. Keeps repeating the validation loop even when i enter something that should be correct. basically im trying to make it so that the only valid answer is either uppercase or lower case letters a-d. [CODE]#include <iostream> using namespace std; …

Software Development c++
Member Avatar for Lerner
0
150
Member Avatar for wazaa

I have just started using python and am trying to write a program that generates 200 random numbers in the range (1,50),then counts the number of occurrences of each number and prints the frequency of occurrence. I have created the part of the code which generates the random numbers. I …

Software Development python
Member Avatar for wazaa
0
3K
Member Avatar for purijatin

Can some one please suggest a good advanced book on Concurrent Processes. I am a bit week in it and would like to give a lot of time to improve

Software Development java
Member Avatar for Ezzaral
0
83
Member Avatar for c2q

Hi. I have a function that needs to split a string on the seperators given by the function. so if i had the seperators as !.?: then it should split the string at those points. if i have a string 'hello. world! hello.' how can i return a list with …

Software Development python regex
Member Avatar for ultimatebuster
0
624
Member Avatar for hiddepolen

Hi guys, I need some help with sprintf. I get the general idea, and I think everything works, but my MessageBox will not diplay the right text. [CODE]int a = 25; char buf [80]; sprintf(buf, "%d", a ); MessageBox(NULL, (LPCWSTR)buf, L"Sel Change", MB_OK);[/CODE]

Software Development c++
Member Avatar for hiddepolen
0
133
Member Avatar for sciprog1

Hello Members, The following Client/Server does a simple chat where I am able to send and receive one line at a time. How should I proceed if I were to send at aleast 4-5 lines at a time. Any help (with some sample pseudocode) would be of immense help. Thank …

Software Development client-server java
Member Avatar for sciprog1
0
239
Member Avatar for TinhornAdeniyi

This is supposed to be a code for a video game store [CODE]#include<iostream> #include<fstream> using namespace std; ifstream infile; struct VideoGame { string Name; string Genre; string Publisher; string Developer; string Platform; string Price; int count; VideoGame *link; }; void CreateList(VideoGame*& first, VideoGame*& last); void CheckOut(VideoGame*& first, string title); bool …

Software Development c++ linked-list microsoft-windows
Member Avatar for TinhornAdeniyi
0
236
Member Avatar for Java_90

Here is my code, I want it so you type something in to the textfield and then you press the button next to it which puts the text in the textArea. It compiles but when you click the JButton it errors out, I'm a beginner to Java anyone know what …

Software Development java java-swing
Member Avatar for Java_90
0
2K
Member Avatar for vedro-compota

Dear programmers)) Please tell me - why in ะก# this line [CODE]string [this.LevelNumber] mass = new string [this.LevelNumber];[/CODE] isn't permissible? What can be an equivalent for it? Thank you for your answers)

Software Development c#
Member Avatar for vedro-compota
0
139
Member Avatar for Smed

I'm trying to sort a 3D array and having little success. I have read various methods on how this is done for two dimensions, but I can't seem to scale it up. example array: [CODE]r =[[['steve',1, 40], ['steve',3, 20], ['steve',2, 30]], [['john',5, 50], ['john',6, 40], ['john',4, 30]]][/CODE] I want this …

Software Development python
Member Avatar for TrustyTony
0
212
Member Avatar for nejger

Hello, I'm doing a Converter, from Roman to arabic and the other way. Now I need help to do a program who can do bigger numbers/letters than 3999. I must use the information: (M) is 1000 *1000 and (L)= 50 * 1000 etc. So ( ) means 1000. I must …

Software Development python
Member Avatar for woooee
0
177

The End.