199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for C41R0

can i have more then one JTextArea and JTextField for one inner class (MyUndoableEditListener())? [CODE=JAVA] . . MainTabbed mPane = new MainTabbed(); . . . mPane.area.getDocument().addUndoableEditListener(new MyUndoableEditListener()); mPane.locField.getDocument().addUndoableEditListener(new MyUndoableEditListener()); mPane.dateField.getDocument().addUndoableEditListener(new MyUndoableEditListener()); mPane.ndBuddyField.getDocument().addUndoableEditListener(new MyUndoableEditListener()); mPane.depthField.getDocument().addUndoableEditListener(new MyUndoableEditListener()); mPane.firstBuddy.getDocument().addUndoableEditListener(new MyUndoableEditListener()); mPane.weightField.getDocument().addUndoableEditListener(new MyUndoableEditListener()); mPane.timeInField.getDocument().addUndoableEditListener(new MyUndoableEditListener()); mPane.tOutField.getDocument().addUndoableEditListener(new MyUndoableEditListener()); mPane.startTimeField.getDocument().addUndoableEditListener(new MyUndoableEditListener()); mPane.sTimeField.getDocument().addUndoableEditListener(new MyUndoableEditListener()); mPane.bTimeField.getDocument().addUndoableEditListener(new MyUndoableEditListener()); mPane.startField.getDocument().addUndoableEditListener(new …

Member Avatar for C41R0
0
192
Member Avatar for C41R0

currently i am facing a problem for these method. when my program copying or cutting a selected text and paste to another selected area, unexpected result, it paste the selected text to all of the fields and areas of my program. is there anyway to check current selected area or …

Member Avatar for C41R0
0
121
Member Avatar for newasp.net

Hello everyone!!!!!!! I am using the following timescript code in master pages for 2 projects in same solution. I need to embed this JS in a common library. My question is: This timeout script redirects to "Timeout.aspx" page after 15 mins of inactivity. Now this path location is different for …

Member Avatar for newasp.net
0
170
Member Avatar for beelzibub

[ICODE]/* * To change this template, choose Tools | Templates * and open the template in the editor. */ /** * * @author beelzibub */ import java.awt.*; import java.awt.event.*; import javax.swing.*; class ChessBoard extends JFrame implements MouseListener, MouseMotionListener { GridLayout Board = new GridLayout(8, 8); GridChessBoard brd; int xMove, yMove, …

Member Avatar for beelzibub
0
147
Member Avatar for bbradley

Please help. I really need to find out how to get a data value from one for onto another form. For example I put a value in an edit box in Form1 and I want that same value to be in Form2, but if I were to chage the value …

Member Avatar for jsosnowski
0
326
Member Avatar for ff4930

Hello everyone, This program compiles fine and runs fine in Eclipse(C++ IDE) but when I compile it in UNIX and Visual Studio its fine but when I run it, it gives me an error. For Unix is segmentation fault The problem is when I initialize VNT, it calls Matrix and …

Member Avatar for ff4930
0
79
Member Avatar for deineMutti

Hello Java powers that be, I've implemented a JTable that I can add/delete rows of information to/from, but I can't actually see the changes until I do something stupid like resize the columns. I currently use a "fireTableCellUpdated(row, col);" doo-hicky in my AbstractTableModel(whenever data is changed) that I thought would …

Member Avatar for woo37830
0
16K
Member Avatar for zoner7

As I write my code, I am realizing there are numerous places where a type int could easily be substituted with a type char. Because type char uses less memory than its int counterpart, I am curious why people don't prefer the former more often. for example, it's not uncommon …

Member Avatar for Radical Edward
0
530
Member Avatar for 007tron

Hi all, i was hoping some on could help me solve this problem i am having:i have been going over it for the past two hours but can not find the mistake\s. I have three files i am working on 1 header and 2 cpp ones(implementation of header file and …

Member Avatar for 007tron
0
134
Member Avatar for driplet

Hi there: I am trying to output a single variable to a binary file, but couldn't get it done correctly. [code] result = 17.0; if ((OutFp1 = fopen("myfile.bin", "wb")) == NULL) { Application->MessageBox("File can't open.", NULL, IDOK); return; } fwrite(&result,sizeof(result), 1, OutFp1); fclose(OutFp1); if ((InFp15 = fopen("myfile.bin", "rb")) == NULL) …

Member Avatar for driplet
0
121
Member Avatar for zeropulse

Hi guys..i've been cracking my head for the past few days, i can't seem to print out the result of my multiplication..I'm using MASM615..Can anyone give me some pointers ? [CODE].MODEL MEDIUM .STACK .DATA ;================================== ONE DW 04DEH ; First signed number A = (-79H) = FF87H (2'Compliment form) TWO …

Member Avatar for stefannn
0
224
Member Avatar for suriname0

Hello! I have a little problem. I am a relatively new Java learner, and I just finished a little project for a friend. I use an IDE, called JCreator, that solves basically all of my needs without ever having to touch the command line. Since all the coding I've done …

Member Avatar for suriname0
0
134
Member Avatar for hjast

Is there a way to make a application that has a windows form gui on the server machine and then a asp.net frontend for users on the internet to interact with it? Reuben

Member Avatar for hjast
0
115
Member Avatar for sniper29

[SOLO] Write a program that uses a two-dimensional array to store the highest and lowest temperatures for each month of the year. The program should output the average high, average low, and the highest and lowest temperatures for the year. Your program must consist of the following functions: a. FunctiongetData:Thisfunctionreadsandstoresdatainthetwodimensionalarray. …

Member Avatar for jephthah
0
406
Member Avatar for smartdog

Heloo, i have just encountered a problem in comiling a module of a program made by python and um not experienced in it, where should i run the module, in the command prompt of windows or in the shell, i dunno wheather i post this thread in the right place, …

Member Avatar for Fuse
0
226
Member Avatar for dadelsen

The following script function "btnRunScript_onclick" works as long as it does not access the HTML control "txtMessage". If it does, "Page Error" is shown in the statusbar of Internet Explorer (6). Knows anybody why? Thank you. [code] <%@ Page Language="vb" AutoEventWireup="false" Codebehind="GuessingGame.aspx.vb" Inherits="Ch07Le04.GuessingGame"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> …

Member Avatar for dadelsen
0
401
Member Avatar for monxxx

Hi, i need some help about using swap() functions i am using this code: [CODE]var x: integer; begin x := $11223344; x := swap(x); edit1.text := inttohex(x); end; [/CODE] this code is working fin its swap like this: '22114433' but if i pud/add byte on like this: [CODE]var x: integer; …

Member Avatar for Clive29
0
268
Member Avatar for tanha

Hello everybody, In the faculty we are told, to develop a project for Faculty Library with more functionalities and facilities. [B]Who roles:[/B] Administrator Librarian Lecturers Faculty Students Others faculty students has different Access level [B]Criteria:[/B] Store Book Information Store Users Information Store information on lending books Achieve information on returned …

Member Avatar for tanha
0
142
Member Avatar for FreeFull

[CODE=c++]#include <iostream> using std::cout; bool help = 0; bool expl = 0; int main(int argc, char *argv[]) { for(int i=1; i + 1 <= argc; i++) { if((argv[i] == "-h" | argv[i] == "--help" ) && help != 1) { cout << "This is an experiment for parsing arguments.\n" << …

Member Avatar for William Hemsworth
0
122
Member Avatar for maydhyam

How could I put the following sql statement into a php variable? [code=sql]load data local infile ".$filename." INTO table testtsttbills FIELDS TERMINATED BY ',' ENCLOSED BY '"' LINES TERMINATED BY '\n'(account,service,date,time,timebandtype,destination,callednumber,mins,airtimecharge,tollcharge,amt,privatenumber)[/code] when I tried to putting it in the variable...it's showing not working because it recognizes the double quote in …

Member Avatar for R0bb0b
0
194
Member Avatar for spoksss

Hello, I have a problem with calling a staticmethod from another staticmethod when I try use dictionary {} to handle. My code is very basic, but in the future I will add many other static method: [CODE] # -*- coding: utf-8 -*- import sys class DateFormat(): """Class to format and …

Member Avatar for bvdet
0
129
Member Avatar for TheOneElectroni

Hi everyone, I'm new in this forum. By the way it's not longtime since I started learning python. After a couple o months of studying and tutorialing I'm now nearly finished with my first application. I've used Tkinter as GUI and there's one thing that's making me nervous: I want …

Member Avatar for TheOneElectroni
0
3K
Member Avatar for Jennifer84

I wonder something. I have a Form with Vertical ScrollBars. When running this code below that are inside a buttoncontrol when the scrollbar is at the top of the Form, the Form Scroll downs a bit, perheps 5-10 cm. This is because I set button1->Enabled = false; [I](I don´t know …

Member Avatar for Jennifer84
0
437
Member Avatar for joshmo

I am doing a simple program that will add elements to a static stack using structures but Iam failing to implement it. The proram accepts input the first time but then crashes after that. Here is my structure declaration [code=cpp] struct stack{ int top=1; int values[4]; }; [/code] the definition …

Member Avatar for Sky Diploma
0
90
Member Avatar for 007tron

Hello everyone, I have got some questions and i am really hopping someone could help me out with them. I have a class privately encapsulated in another class. Now, I'm trying to make an object of it in my testDriver but I'm not quite sure how to do that. I've …

Member Avatar for 007tron
0
119
Member Avatar for theUnspeakable

[code=cplusplus] #include <iostream> #include <string> using namespace std; int findNum () { int num; cout<<"You have 10 chances to guess the number that is generated by this program."<<endl; cout<<"All numbers generated are of positive integers"<<endl<<"Good Luck!!"; cout<<"Enter you guess "; cin>>num; return num; } string start (int guess) { int …

Member Avatar for Sky Diploma
0
94
Member Avatar for Fiume

So.... I"m trying to use MPI_Bcast because it seems like the easiest way to take a multidimensional array (the full program has a 3-d one all filled out) and make it available to every process. The code below, however, does not work... 'grid' holds nothing but 0s when accessed from …

Member Avatar for Fiume
0
181
Member Avatar for m_saad

I've tried [URL="http://developer.yahoo.com/yui/editor/"]YUI rich text editor[/URL] and found it great but I still can't figure out how to to integrate it with php . If I put the textarea in a form with method=POST what will be the $_POST['??'] that will give me the html ? thanks.

Member Avatar for m_saad
0
93
Member Avatar for parthiban

Hi all, I have searched about difference between KeyPressed and KeyTyped Events but still I'm not clear about that . One thing I have found is Keypressed is triggered first than KeyTyped . Please clarify me when these are triggered exactly . Which is appropriate to use for which purpose …

Member Avatar for javaAddict
0
429
Member Avatar for mgouge

I need to create a query of records in one table along with a count of how often those records occur in 2 other tables and the difference between the counts.

Member Avatar for mgouge
0
131
Member Avatar for daviddoria

Right now this is my setup: I have these classes Point2 Point3 Vector2 Vector3 Ray2 Ray3 Both Point classes and both Vector are independent. Ray2 contains a Point2 and a Vector2 object, and Ray3 contains a Point3 and a Vector3 object. I have two questions. 1) Should I somehow just …

Member Avatar for Radical Edward
0
115
Member Avatar for niitian

hello everyone. i need a bit of help in this project of mine which is due in 2 weeks.. here's what needs to be done, but i have no idea about the logic:( if somebody can help me with the pseudocode or algorithm, i could write the code maself.. [B]Write …

Member Avatar for Nick Evan
0
159
Member Avatar for rpamballa

Can someone go through the following code whic generates shortest path for randomly generated processes. My code is generating a segmentation error when I run it, and I am unable to locate the bug. //This program implements the O(n) algorithm for finding shortest path for randomly generated processing times [code=cplusplus] …

Member Avatar for Cybulski
0
174
Member Avatar for Yourself

hi, I develloping an engine but I have an small error and can't find it... I want the user the say with icon he wants to use for his program : [CODE] WNDCLASSEX wndclass; // ... wndclass.hIcon = LoadIcon(m_hInstance,MAKEINTRESOURCE(GetIcon())); wndclass.hIconSm = LoadIcon(m_hInstance,MAKEINTRESOURCE(GetIconSmall())); // ... void SetIcon(WORD icon) { m_wIcon = …

Member Avatar for Yourself
0
345
Member Avatar for servis

hellow every body, script is giving error for the following code [ICODE] $link = "<a href="reset-password.php?ui=$row['user_id']&ak=$upassword">Reset the Password </a>"; [/ICODE] i have tried variables with quotes as well but result is sme. the error is following "Parse error: syntax error, unexpected T_STRING in C:\wamp\www\ProTest\password-forget.php on line 26" secondly update query …

Member Avatar for nav33n
0
78
Member Avatar for bigbob

Hi, I am very new to php and this forum so sorry if this has been asked over and over but I can't find anything when searching. Anyway I have used some script I found on the net which has a register a new member form and a login form …

Member Avatar for nav33n
0
202
Member Avatar for parmenio79

Hi All, Beginner programmer here with an easy question I hope. I want to be able to compare the value of the first item in a list to the second item in the list to see if they are sequential. so in this list: numblist = [1 , 2 , …

Member Avatar for parmenio79
0
27K
Member Avatar for whisper_101

Hi Guys I have a List Box ("LISTJOBTYPE") and so the User can select more than one Item: Junior Stylist Hair Stylist Senior Stylist Principle Stylist In my database I have the following: APP_NAME Jack APP_JOBTYPE Hair Stylist, Senior Stylist APP_NAME Jill APP_JOBTYPE Hair Stylist This is my SQL: SQL …

Member Avatar for vicky_rawat
0
135
Member Avatar for Marikanna

Hi I am very new to GIS Technology with Asp.Net. I have developed a map. Now I want to post this map in a webpage. I am using ArcView. Any help is much appreciated.

Member Avatar for ciraj
0
216
Member Avatar for techker

hey guys cool forum..looks like there is lots of cool stuff here! i have a quick question. i need to do a list box for inserting a date. like a liste box of day/month/year that part is good.it is the inserting in database the hard part for me.see i never …

Member Avatar for nav33n
0
71
Member Avatar for lydia21

hi I want to fetch data from four tables using a single query.please tell me how to do that. thanks in advance

Member Avatar for varmadba
0
100
Member Avatar for Fost

Hi guys, Im working on a bit of MySQL and was wondering if there is a way (without using php arrays or other) to search a table for a value (say 1) and return the rows which '1' wasnt found in. != wont work because the table contains more than …

Member Avatar for tesuji
0
96
Member Avatar for FTProtocol

main.cpp [CODE] #include <windows.h> #include "Resource.h" HWND hWnd; LRESULT CALLBACK DlgProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam); INT WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { DialogBox(hInstance, MAKEINTRESOURCE(IDD_Main), hWnd, reinterpret_cast<DLGPROC>(DlgProc)); return FALSE; } LRESULT CALLBACK DlgProc(HWND hWndDlg, UINT Msg, WPARAM wParam, LPARAM lParam) { HWND hwStart, hwServer, …

Member Avatar for FTProtocol
0
713
Member Avatar for heels

hi, I am doing a insert query over here and if the query is executed successfully, there will be a success message. However, whenever the query is being executed successfully, the success message is not being displayed. here is a snipet, can anybody guide me along? thanks alot. [code=php]//Execute SQL …

Member Avatar for heels
0
79
Member Avatar for kux

Hello, I have a CListCtrl and a button to modify the selected row in the CListCtrl. My problem is that my list has several columns and I want to be able to select a row by clicking on any column of the row that I want selected. Now I can …

Member Avatar for Aashath
0
1K
Member Avatar for Cybulski

I'm trying to call this function requested times. All functions and variables are members of one class, access is public. So, I'm calling like this: [code] void MultiReader::CreateThreads() { unsigned int nThreadNo; for( nThreadNo = 0; nThreadNo < vDirectories.size(); nThreadNo++) { CreateThread( NULL, 0, &MultiReader::ReaderThread, vDirectories.at(nThreadNo).sDirectoryName, 0, NULL); } } …

Member Avatar for Cybulski
0
883
Member Avatar for tiger86

I don't know much about php but I do know how insecure it is and it is driving me up the wall. Why is this language insecure and what can I do to make php scripts more secure?

Member Avatar for pritaeas
0
104
Member Avatar for bunary2k

i have 2 tables : 1.Ms_Menu Menu_Id,Menu_Name 001 | Menu1 002 | Menu2 003 | Menu3 2.Tbl_User User_Id,User_Name,Menu_Id User1 |Name1 |001 User1 |Name2 |002 User2 |Name2 |002 i want to joined 2 tables using UNION(or other way if works is fine->left/right join) my coding : [code=sql] SELECT User_Id,User_Name,Menu_Id,'' Menu_Name FROM …

Member Avatar for debasisdas
0
118
Member Avatar for daniyalnawaz

hi, i have two entities products and categories. both have many-to-many relation. how can i get the products that are not related with the categories. i mean the ones which not not mapped in junction table. thank you! daniyal nawaz

Member Avatar for varmadba
0
102
Member Avatar for theybasis

[COLOR="Green"]hi there ...I am Debasish. New here and am wondering here and there thinking about what to do??? Is there any tech guru who can show me a way???[/COLOR]

Member Avatar for debasisdas
0
104

The End.