132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Phaelax

I have a JTree, the renderer uses JLabels. If I setOpaque(false), then I get display issues with highlighting tree nodes/leafs, so I keep the rendering of the jtree opaque. I'd like to display an image for the background and have the text from the jtree elements displayed over top of …

Software Development display image java
Member Avatar for Phaelax
0
179
Member Avatar for Acidburn

Hello I'm having a stuggling implmenting some code...here's what I've got so far: [code] cout << "\n\nChoice" << endl; cin >> choice; while (choice!=0) { switch(choice) { case 1: cout << "Inserting manually..." << endl; // addmanual(); break; case 2: cout << "Inserting from file... "<< endl; cout << "file …

Software Development c++
Member Avatar for SpS
0
139
Member Avatar for twins

I need to help me by giving me a new simple idea for developing any of office programs such as powerpoint OR any idea for developing a program for developers with new thing?

Software Development visual-basic
Member Avatar for Slavrix
0
111
Member Avatar for hanuma4

if we use short then we can save memory.But eventhough if we use short it occupies 2 bytes of memory so how can we save memort?

Software Development c
Member Avatar for Dave Sinkula
0
142
Member Avatar for thehakan

int p(int x) { if(x<3) return x; else return p(x-1) * p(x-3); } say m(x) is a number of multiplication operations that the execution of p(x) performs. what can be recursive definition of m(x)?? Answer should be (x-1)*(x-3) . Am I wrong?

Software Development c
Member Avatar for thehakan
0
105
Member Avatar for sam1

hi i want to : 1. view all the books 2. search for a book i have managed to complete part of this . the code is as follow: [CODE] #include <iostream> #include <fstream> #include <assert.h> #include <stdlib.h> using namespace std; const int BOOK_MAX = 5000 ; const int USER_MAX …

Software Development c++ ios
Member Avatar for dwks
0
212
Member Avatar for sunlight

Hi every body I need to constract a code from this problem This question is based on Unit 2. A motor insurance company has surveyed a sample of its clients. The information on each returned questionnaire includes the following: o whether the client has had a claim in the last …

Software Development c++
Member Avatar for dwks
0
123
Member Avatar for atrusmre

If I have a MFC program that opens a socket connection, how would I test to see if the socket has succesfully opened or not?

Software Development c++
Member Avatar for atrusmre
0
176
Member Avatar for winbatch

If I've got a vector of strings, is there a quick one liner that gets me the longest (ie .size() ) of the string inside (or conversely, the shortest?) The alternatives I've thought of are as follows, but they all seem inefficient: - Keep a variable of the longest size …

Software Development c++
Member Avatar for winbatch
0
4K
Member Avatar for Jon182

Hey guys, I have the following code, but for some reason it does not work with bigger txt files is this because of the size of the array? And if so is there a simple way to solve the problem? Thanks in advance for any help. [code] char ch[1000]; int …

Software Development c++ file-system
Member Avatar for Jon182
0
236
Member Avatar for Ghost

Hi Everyone, I'm trying to create an instant messaging program, but for some reason the client and server won't connect. My code is below. Thanks in advanced for helping me. By the way, the client and server program are one in the same. A radio button gives you the option …

Software Development client-server ipad java java-swing
Member Avatar for jwenting
0
160
Member Avatar for namit

i have a bunch of images 1.jpg, 2.jpg etc.. I have a class called banner and wondering how to get it to randomised threw the pics? Thanks

Software Development java
Member Avatar for server_crash
0
134
Member Avatar for iamthwee

Hello I need help and fast, time is running me out. [B]StudentMark class[/B] A StudentMark object hasd three attributes:moduleNo(a string),studentName(a string) and mark an (int). There is a constructor which registers a student (studentName) with a module number (moduleNo) at the time of construction. There are methods that enable new …

Software Development java
Member Avatar for jwenting
0
157
Member Avatar for solway

hi all, ive just started learning VB6 and have come across a problem or two. can you guys help. i am trying to create a countdown timer, i have made one with a timer and textboxs (5 textboxs, mmm:ss). but i have seen some examples using pictures as the numbers. …

Software Development first-post visual-basic
Member Avatar for solway
0
136
Member Avatar for manar

hi i want to search for a specific shape in an image; the shape is an arrow and its stored in the database. the images taken from a moving camera. any comment may be helpful thanks

Software Development image
Member Avatar for tayspen
0
277
Member Avatar for blackbabydoll

I am doing a project where I have the find the smallest value and the smallest object. In this project, you will write two methods. The first will take an array of int and will return the smallest value in the array. It will have a declaration as follows: int …

Software Development java
Member Avatar for server_crash
0
134
Member Avatar for reezal

I just started both RMI and CORBA programming, yup normal basic Hello World from available tutorial at google achieve. But apparently none of them works. So could anyone pls let me know what or which software should i use ? current im having netbean 4.0 which wont work for both …

Software Development google java
Member Avatar for jwenting
0
96
Member Avatar for bops

Hi, I have recently started windows programming in C/C++, I understand most of it, but 1 thing i cant find out how to do is to put controls on the main window of the application, not in a popup dialog box...can anyone give me any tips on how to do …

Software Development c++
Member Avatar for Ancient Dragon
0
551
Member Avatar for Benfried

Hi everyone, I'm beginning to learn about progamming and I'm currently working through the seminal 'C Programming Language' which is excellent, but I have a problem regarding functions. My understanding of functions in C is that they return a value. For example: [code]x = func(a, b);[/code] ...would set x to …

Software Development c c# c++
Member Avatar for SpS
0
143
Member Avatar for kennethf

I'm coming across a screwy problem that's really bugging me. (No pun intended.) I'm working in Delphi 5. I need to host a couple of forms on a panel. I don't want the forms to display outside of this panel, so naturally I assigned the panel as each form's parent. …

Software Development delphi display google gui pascal
Member Avatar for jwenting
0
203
Member Avatar for nileshdalvi

I am new to the perl language and had just started reading the book "Perl5 by example" by David Meddinets.However in the very first chapter he says that you need to try out the programs on a perl interpreter.I have w98 and have downloaded the asi version of 5.8.7 from …

Software Development perl
Member Avatar for raj_mangoli
0
199
Member Avatar for Frank0051

I have an interesting question, I'm helping someone can help me out with this. I have been playing with the JavaSound API and I have come into contact with the FloatControls (pan and gain). Basically I know these controls only work if the line supports them. I have been working …

Software Development api display gui java java-swing
Member Avatar for jwenting
0
93
Member Avatar for complete

How does one create the process where a user can open (select) a file to read from? In C++ there are already classes to inherit from. Do I have to make a file open form from scratch in VB?

Software Development file-system visual-basic
Member Avatar for chopaface
0
214
Member Avatar for ccoleman

Ok I have an excell sheet that I have set up to email out and to add an all day event to an outlook calender. There are two problems I'm having, one is that I can't get it to update the calender unless I already have outlook open. I'm using …

Software Development email visual-basic
Member Avatar for Kegtapper
0
107
Member Avatar for JoBe

Hello ladies and gents, Ive been reading about Virtual Function in my book and there is this programming that shows how and what happens, I understand what is happening but one thing that came to my mind is that, previously in my book, there was mentioned that you should allways …

Software Development c++
Member Avatar for Ancient Dragon
0
785
Member Avatar for moridin

ive made a program that links into an access 2000db. ive written the code for the find button as [CODE]Private Sub cmdFind_Click() Dim x As String x = InputBox("Input the first few characters of the Company Name ", "Find on Name") Data1.Recordset.FindFirst "Name like '%" & x & "%'" cmdFind_ok: …

Software Development display sql visual-basic
Member Avatar for Kegtapper
0
406
Member Avatar for tyczj

i have errors and i dont know y im gettin them here is the code. a majority of them are undeclaired idetifyers but they are function calls?!?! [CODE]#include <iostream> #include <iomanip> using namespace std; class Array { public: Array(); Array(const Array& copyFrom); ~Array() { }; void append(int arrayA[]); void chop(int …

Software Development c++
Member Avatar for tyczj
0
302
Member Avatar for Dabdob

Hi guys… I want to write small program in C printing three or more people in array..how? please write to me the syntax as I am very poor in C.. How to define the name? and accept the conformation from the user? Either by yes or no The printing should …

Software Development c
Member Avatar for server_crash
0
132
Member Avatar for Micko

Hello friends, I just want to say that last week a got a job. Since I'm electrical engineer I got job in nearby Thermal power plant. Now, I don't have spare time anymore as I used to have, and I guess it's time to quit my hobbies. Sometimes I'll be …

Software Development engineering python
Member Avatar for vegaseat
0
165
Member Avatar for desiree

SORRY I GOT IT WRONG!! THE YEAR I MEAN!! before i typed it year 2005 and im sorry for that!! and now i correct it!! i tried to solve this problem!! and have a problem in sorting and searching!! hope you can guide me with this problem!!! thanks a lot …

Software Development c++ display
Member Avatar for Ancient Dragon
0
154
Member Avatar for nabil1983

Trying to understand how to do this Q. Can some explain using O-notation, how would i analyse the efficiency of the two algorithms below. ? Assuming that the critical operation is compute and size is the size of the array. 1) compute(a[1]) + compute(a[2]) + compute(a[3]) + compute(a[size]) 2) for …

Software Development c
Member Avatar for nabil1983
0
101
Member Avatar for desiree

hello people!! im new here!! please!! help me to solve my problem in programming!! this is the problem: USING C++ *array of class, use struct *create a dynamic array of customers account record with the following attributes: a) account number b)last name c)firstname d)middle initial e)account balance f)status(o-open/ c-close) it …

Software Development c++ display
Member Avatar for winbatch
0
127
Member Avatar for sam1

hi everyone, I have to talk about the java's architecture in general. Do you guys know what to talk about? I already talked about how simple and how oop etc it is.... anything else I can add? thanx

Software Development java oop
Member Avatar for sam1
0
68
Member Avatar for mina1984

Hey can someone help me, my program has to do with dates, and asks the user to input a date on or after 1/1/1800, take that date and compare these statistics to my birthday(1/20/84) If the year is a leapyear how many days the month in the dates have one …

Software Development c++
Member Avatar for mina1984
0
110
Member Avatar for Frank0051

I have been having this weird problem with this small part of code: [code] if(isURL) File audio = new File(name); else URL audio = new URL(name); [/code] Now isURL is a pre-declared boolean and name is a pre-declared string. I have all the proper imports but for some reason or …

Software Development audio java
Member Avatar for jwenting
0
124
Member Avatar for TimC

[COLOR=Red]Dear All, If i run the code below it will let me input a name. "John Doe" but it will only print out "John". I know how to create a char array[] and I also know how to use cin.getline but can the char array be used with the doctor …

Software Development c++
Member Avatar for SpS
0
161
Member Avatar for comwizz

I am having this problem with precedence of operators. Its with the increment and decrement operators. [code] int i,j=1; i=(j++)+(++j)+(j++); [/code] this evaluates to 6 instead of 7 . Why does this happen. It would be of great help to me. Thanks, comwizz

Software Development c
Member Avatar for Rashakil Fol
0
173
Member Avatar for some one

HI I KNOW I HAVE ASKED SO MUCH BUT PLEASE DO NOT IGNORE ME I HAVE APART OF QUISTION THAT I COULDNOT COMPLETE IT HERE IS IT Then create an int specialization and in it add a function that returns the sum of all elements in the DoubleSubscriptedArray HERE IS …

Software Development c++
Member Avatar for some one
0
134
Member Avatar for indianj

hi, i need someone to look at my homework and give me comment where and how should i begain with. Choose one of the stack implementations and implement a method with this specification: Object itemAt (int n) //precondition: 0<=n and n<size() //postcondition: the return value is the item that is …

Software Development java
Member Avatar for iamthwee
0
169
Member Avatar for TimC

what I am trying to do is retrive the "status" back to my main prog of the status of a patient. I thought it was a simple case of S.retrieve(index of person I was looking for) and I would recive the status (which is an integer) back to my main …

Software Development c linked-list
Member Avatar for TimC
0
88
Member Avatar for TimC

the following code will print out all the names of patients I have in a linked list. I have given the user an option to choose which patient they would like to move in the linked list. i thought if I called S.insert(passed the new postition, and P (where P …

Software Development c++ display linked-list
Member Avatar for TimC
0
138
Member Avatar for tyczj

how do u append and subtract a number in an array. i have no clue. any links to a site about this wouls greatly appreciated

Software Development c++
Member Avatar for tyczj
0
145
Member Avatar for emailsrs

I have used arrays in the program; a[3] - now i want to change the program to dynamic array value If I enter more than allocated(3) characters in the input - it throws error and the program stops running error "Segmentation fault" (i am running c on unix) - i …

Software Development c++ unix
Member Avatar for SpS
0
106
Member Avatar for bucodi

# Other field creations here.... self.Sfield1 = wx.TextCtrl(id=wxID_SEARCHBROWSERSFIELD1, name=u'Sfield1', parent=self, pos=wx.Point(144, 80), size=wx.Size(216, 21), style=0, value=u'') self.Sfield1.SetToolTipString(u'') self.staticText1 = wx.StaticText(id=wxID_SEARCHBROWSERSTATICTEXT1, label=u'Customer N\xb0', name='staticText1', parent=self, pos=wx.Point(32, 80), size=wx.Size(83, 16), style=0) self.staticText1.SetForegroundColour(wx.Colour(255, 255, 255)) self.staticText1.SetFont(wx.Font(10, wx.SWISS, wx.NORMAL, wx.NORMAL, False, u'Verdana')) self.staticText1.SetToolTipString(u'') self.staticText1.SetBackgroundColour(wx.Colour(0, 0, 128)) [B] self.Sfield1.SetFocus()[/B] [B]Why isn't the focus set to …

Software Development python
Member Avatar for vegaseat
0
1K
Member Avatar for sahil_logic

hi all, i am trying to generate a pattern [CODE] 1 121 12321 1234321 123454321 1234321 12321 121 1 [/CODE] but the code is not compiling i am getting the foolowing errors C:\Dev-Cpp\files\patterns.cpp:102: error: name lookup of `j' changed for new ISO `for' scoping C:\Dev-Cpp\files\patterns.cpp:98: error: using obsolete binding at …

Software Development c++
Member Avatar for sahil_logic
0
343
Member Avatar for TimC

Below I have attached 4 methods from my linked list class. 1) find 2)remove 3)retrieve 4) Insert. what I'm trying to do is write code that will let me MOVE the position of a node to another position in the linked list. Anyone got a clue?? regards Tim [code]SeqItemType Sequence::retrieve(int …

Software Development c linked-list
Member Avatar for TimC
0
141
Member Avatar for Dabdob

Hi guys,, i want to have C to my PC..i am using win XP. anyone can help me please

Software Development c c# c++
Member Avatar for perniciosus
0
192
Member Avatar for shanenin

I have a very simple plugin I wrote for freevo. below is the plugin. it will shutdown your computer after your avi file has finished playing, kind of like a sleep timer. [code] #!/usr/bin/env python import os import time import commands import thread import plugin from gui.PopupBox import PopupBox from …

Software Development gui python video
Member Avatar for shanenin
0
3K
Member Avatar for cindynicole

Hi all, I need a fresh set of eyes :eek: . Can anyone see what is wrong w/the sql statement? Dim sql As String = "INSERT INTO order " & "VALUES ('" & itemId & "', '" & description & "', " & oNum & ")" Danka, Cindy

Software Development sql visual-basic
Member Avatar for cindynicole
0
170
Member Avatar for TimC

Dear all, when i run the prog below it works fine when I input an integer but if I enter a char by mistake the output to the screen goes mad. what i want to do is write a piece of code that 1) if char input then print to …

Software Development c++
Member Avatar for TimC
0
163

The End.