132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for anuj_sharma

Hi, I've created a small application that allows the user to capture the screenshot and save the image at a user defined location. It also allows the user to capture the screenshot of the active window as well. The issue is with the active window. I have learnt that Java …

Software Development java
Member Avatar for anuj_sharma
0
360
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 …

Software Development gui java java-swing
0
317
Member Avatar for tedtdu

Dear all. please kindly but freely provide of your ideas and thought about following. I need to get binary bits of variety of files regardless of ASCII, Unicode, or even non-printable etc. I searched following seems to be commonly used but not for all. bits[i] = ((1<<i) & c) != …

Software Development c++
Member Avatar for Labdabeta
0
258
Member Avatar for engo

I m trying to create a html file from vb.net form using notepad. the problem i m having is i can not get more than one var at the time each inputBox with ok click. how can i get all of my 8 variables in one OK button click? Thanks

Software Development vb.net
Member Avatar for engo
0
108
Member Avatar for Torf

I have been trying to teach this myself, but I judt don't get it. I have 10 books with ISBN number, title, name of author. The linked list should display the books sorted by ISBN. I hope this collections.sort is correct: import java.util*; public class Sort { public class Sort …

Software Development java linked-list
Member Avatar for Torf
0
230
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 …

Software Development gui java java-swing
Member Avatar for Muhammad Anas
0
624
Member Avatar for waleed.makarem

Dear Experts, **Problem :** I need to save a datatable to a binary file , in binary format , in order to make the process fast because the datatable may contain up ten millions rows. So , XML is not favorable because it makes the file large sized , and …

Software Development dataset file-system vb.net
Member Avatar for Reverend Jim
0
1K
Member Avatar for SCass2010

Hi everyone, Wondering if anyone could help with a minor problem... I have a class that contains a std::map that stores pointers to various objects as a void pointer and a name for the object, so within the class I have a template function where the object type is passed, …

Software Development c++ ui-ux
Member Avatar for mike_2000_17
0
2K
Member Avatar for Fotis_13

Hi. I cannot explain my question very well. I have an array of objects. Can i perform a search in this? Check the following code as example: public class test1 { public static void main (String[] args){ test2[] array = new test2[2]; for(int i=0;i<2;i++){ array[i]=new test2(); } int a=1, b=2; …

Software Development java
Member Avatar for Fotis_13
0
206
Member Avatar for radhika1990

//This is the package file package radz1990; import java.io.*; import java.util.*; import java.lang.*; public class radz1991a1 { BufferedReader ob=new BufferedReader(new InputStreamReader(System.in)); Scanner obj=new Scanner(System.in); public String name=new String("0"); public String patientid=new String("0"); public String prescription=new String("0"); public String Illness=new String("0"); public String Address=new String("0"); public String ladate=new String("0"); public int …

Software Development java
Member Avatar for NormR1
0
191
Member Avatar for mayank.dyl

Given two integers A & B. Determine how many bits required to convert A to B. Write a function int BitSwapReqd(int A, int B); Please first define the logic to calculate the number of bits required to convert A to B and then code. Thankx a lot.

Software Development c
Member Avatar for gusano79
0
540
Member Avatar for Valiantangel

int main() My code works fine...i will be using const later ,hence my variable are capital letters.What i need a little help is when the NUM_VALUE is negative.If i am not wrong its call integer division error.(where one or more operand is negative.How can i avoild this? I inserted under …

Software Development c++
Member Avatar for gusano79
0
129
Member Avatar for sonicx2218

I made a creature composed of shapes in a Java Applet. I want to basically copy and paste the creature I made so I have say 7-8 copies on the same applet. but in different locations. Is there an easy way besides copying the entire code, and moving each coordinate …

Software Development image java
Member Avatar for sonicx2218
0
407
Member Avatar for javaprog200

Hello, The following program computes the value of Pi using the Hit/Miss method. Since I am doing all the drawing in the JPanel, I am not calling super.paintComponent(g). The program works well, but since I am not using the super.paintComponent, it does not draw the background. Is there any way …

Software Development java java-swing
Member Avatar for javaprog200
0
405
Member Avatar for Iamateur

How to make only one record at a time get inserted in the database table and also delete from the other table? Once the details are filled ,I insert it in table1 as the new record and I delete the same record from table2. Note: Table2 is the table that …

Software Development vb.net
Member Avatar for Reverend Jim
0
205
Member Avatar for Johannady2

*This program is supposed to printout all the first letters of the Strings enterned in an Array. Which works. but when I added some code to convert the first letters to uppercase, there's an error.* I put a comment in the code where the error is. what's wrong with that …

Software Development java
Member Avatar for Johannady2
0
286
Member Avatar for dls_20022002

Hello All, I am new to C programming. I was trying to write a code that will allow me to take an array of n elements, and take every combination of pairs and write it. example: array: 1, 2, 3, 4, 5 output: (1,2), (1,3),(1,4),(1,5),(2,3),(2,4),(2,5),(3,4),(3,5),(4,5) I would truly appreciate the …

Software Development c
Member Avatar for zeroliken
0
348
Member Avatar for Stjerne

Hello guys, There is a thing I need help with. When I run my program, and the window shows, I want focus on the textField. Like Google, when you enter Google, you get focus on the search panel so you can search. My program got a simple search engine with …

Software Development java
Member Avatar for Stjerne
0
181
Member Avatar for DIPY

Hi I am new to C#. I have to enable my text box whn the check box is checked. It would be very helpful if i can get the code for this.

Software Development
Member Avatar for hirenpatel53
0
3K
Member Avatar for sharath_137

hi, Can anyone tell me the exact difference between memset,malloc and calloc.I am new to c++, Know this is simple question to ask in c++ but i am getting lot of confusions in using them and i want to knw whr exactly i can use these. Regards, Sharath.

Software Development c++
Member Avatar for Banfa
0
594
Member Avatar for Johannady2

I don't understand why it just prints numbers. /* This program converts the first letters of the entered strings for an array to uppercase*/ import java.util.*; import java.lang.String.*; public class myfirstarray{ static Scanner scan = new Scanner(System.in); static String str1, str2,str3, str4,str5; public static void main (String[]args){ String[] items = …

Software Development java
Member Avatar for Johannady2
0
182
Member Avatar for marleyB

An example of a multi-tier application where each tier of the application throws its own exceptions that are caught by other tiers of the application.

Software Development java
Member Avatar for TrustyTony
0
71
Member Avatar for Lucaci Andrew

Hi. So my problem is that I can't save into a vector throughout a function, but I can save directly in the vector. /* * asd.cpp * asd.cpp is licensed under GNU GENERAL PUBLIC LICENSE * Created on: May 3, 2012 * Author: sin */ #include <iostream> #include <string> #include …

Software Development c++
Member Avatar for Lucaci Andrew
0
172
Member Avatar for goyal_2485

i have to decrypt a frame on my server. encrypted frame is coming from client device through GPRS on socket.encryption is done with "TripleDes" and with a given key.same algorithm and key i am using n server side. frame is a combination of Hex and Ascii String. problem is when …

Software Development algorithm client-server encryption java
Member Avatar for goyal_2485
0
605
Member Avatar for hwoarang69

how to remove zeros from int array? for ex if i have a array 1,2,0,34 than result is 1,2,34. i was thinking may be use trim function? another idea was to put space. for ex 1,0,2,0,3 than reslust is 1, ,2, ,3 note iam trying to do this without making …

Software Development c
Member Avatar for Vish0203
0
6K
Member Avatar for Dewey1040

I've attempted to create a linker for assembly files, what the program does is not the issue here though, I havent used pointer arithmetic in a few years and am definitely rusty in doing so. I'm getting a segmentation fault when I attempt to run the file and would like …

Software Development assembly c
Member Avatar for Dewey1040
0
172
Member Avatar for Kathy0410

I have this program I'm writing. I need help with the bet part of the program. I'll give you an idea of what I'm doing: The player starts with $500. He can bet between 0 and his current amount left on next turn. If he bets 0 the game is …

Software Development java java-swing
Member Avatar for NormR1
0
662
Member Avatar for jbutardo

Hi, I have this question about the control triggers, I have this project that have textbox, using it's textChanged function and setting the autopostback in to true. Now, when I trace the command I have notice that the function have been triggered twice, and I just want to know now …

Software Development asp vb.net
Member Avatar for |-|x
0
286
Member Avatar for cecsFTL

For the assignment we're suppose to add a findFirst, findNext, and addElement method to the given class and test them. I manage to get the findNext and addElement working but not the findFirst. Here's what the findFirst suppose to do "Method findFirst(T item) searches for and returns the index of …

Software Development java linked-list
Member Avatar for NormR1
0
137
Member Avatar for GTech4life

Can some one help me with my programming project, it is supposed to loop. If the number is even output comes out even and vise-versa. Can someone please tell me what is wrong with my code. Errors "3 errors found: File: C:\Users\Kaamil\evenodd test.java [line: 1] Error: The public type NumberEvaluator …

Software Development java
Member Avatar for TrustyTony
0
283
Member Avatar for gozo12

Imports System.IO Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load System.IO.File.WriteAllBytes("e:\", My.Resources.file.exe) End Sub End Class but alwys i get thie error access to the path e:\ is denied but the hard drive is accessable , so how i copy a fil from …

Software Development hard-drive vb.net
Member Avatar for Gé48
0
145
Member Avatar for kelvin.njuguna

/** * @(#)SavingsAccountTest.java * * SavingsAccountTest application * * @author Kelvin Njuguna * @version 1.00 2012/4/24 */ public class SavingsAccountTest { public static void main(String[] args) { double interest1,interest2; double newBalance1,newBalance2; SavingsAccount.modifyInterestRate(0.04); SavingsAccount saver1 = new savingsAccount(2000.00); SavingsAccount saver2 = new savingsAccount(3000.00); for(int=0;i < 12;i++); { system.out.printf("Month %d:\n",i+1); interest1 = …

Software Development java
Member Avatar for Johannady2
0
98
Member Avatar for Iamateur

There are 3 textboxes->textbox1,textbox2,textbox3 and 1 button. In textbox1 bname will be stored and in textbox2 aname is stored. Bname and aname are columns of databasetable. This are not unique. There are same bnames and anames records. What I am trying to do is: when the user clicks on button …

Software Development vb.net
Member Avatar for adam_k
0
103
Member Avatar for tendaishava

hello guys my code is not giving me any errors but wont execute the task it just loops can, anyone help me debug it. its a code for extracting book information from a chinese website. thanks in advance. using System; using System.Collections.Generic; using System.Collections.Concurrent; using System.Text; using System.Text.RegularExpressions; using System.IO; …

Software Development c c# c++ java-jsp listview regex
Member Avatar for skatamatic
0
337
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 …

Software Development gui
Member Avatar for skatamatic
0
196
Member Avatar for TrustyTony

This came up, maybe it is usefull to somebody. Later I plan to do a managing context interface to `with`statement for this.

Software Development microsoft python
Member Avatar for TrustyTony
0
2K
Member Avatar for neilaggarwal

I would like a user to select text on a webpage, and to capture that text as a string automatically using the least number of user inputs as possible. Ideally, the user would simply select the desired text using ctrl-c, immediately after I would run the GetClipboardData() function and obtain …

Software Development python
Member Avatar for vegaseat
0
1K
Member Avatar for M.Waqas Aslam

hello every one ! i want to make an application that can work like windows remorte desktop connection or teamviewer , but on local network , how can i do this , i even dont know where to start my work , please guide me , and help me if …

Software Development
Member Avatar for Max_Trottier
0
168
Member Avatar for Fotis_13

Hi! I have one small question. Is that possible? public class test1 { public static void main (String[] args){ test2 client = new test2(); test2[] call = new test2[1000]; int x =2; call[1].add1(x); } } public class test2 { void add1(int x) { x = x+1; } } Sorry for …

Software Development java
Member Avatar for Fotis_13
0
412
Member Avatar for effBlam

Im stuck on how i shlud set up my Maze class in order to get started with solving it recursively. The maze has values stored into a two dimensional array " char[][] maze" and from there im stuck. heres my codes so far: public class Maze { char start; int …

Software Development java
Member Avatar for NormR1
0
196
Member Avatar for Brasa619

Im suppose to have this prompt me via stderr to enter two 32-bit keys. I use fgets tofrom stdin to read up the line the user inputs. Then im suppose to parse the line into tokens using strtok_r that converts them to unsigned longs. I already have a function strToULong.c …

Software Development c
Member Avatar for DeanMSands3
0
183
Member Avatar for hszforu

i have been coding a client server program to calculate factorial of a no . The client will pass the no to the server whose factorial is to be calculated. Now the problem that i am encountering is that no matter what value i am passing to client(variable msg in …

Software Development client-server java
Member Avatar for hszforu
0
4K
Member Avatar for aminevb

i have an error in a Button click : Dim ConStr As String = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source = C:\Users\amine\Documents\projet.mdb" Dim Conn As New OleDbConnection(ConStr) Dim Save As New OleDbCommand("INSERT INTO Client(Nom,Prenom,Adresse,Téléphone,[date]) VALUES(@p1,@p2,@p3,@p4,@p5)", Conn) Try Save.Parameters.AddWithValue("@p1", TextBox1.Text) Save.Parameters.AddWithValue("@p2", TextBox2.Text) Save.Parameters.AddWithValue("@p3", TextBox3.Text) Save.Parameters.AddWithValue("@p4", TextBox4.Text) Save.Parameters.AddWithValue("@p5", DateTimePicker1.Text) Conn.Open() If (Save.ExecuteNonQuery()) Then MsgBox("Ajout réussi …

Software Development open-source vb.net
Member Avatar for G_Waddell
0
114
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 pkfx

ive declared and integer array and i need to know how the user can input a single input of "2 4 6 3 5 6 7 5 3 5 6" and get each individal digit into each index of the array and help would be greatly appreciated.

Software Development c++
Member Avatar for deceptikon
0
109
Member Avatar for spawn2004

Hi all I have a little problem with bourne shell. I've just started writing that kind of scripts I have to write a script that search in folder for header.txt, footer. and content.txt. If these files exists i have to copy the content from them (ignoring the lines with #) …

Software Development shell-scripting
Member Avatar for spawn2004
0
120
Member Avatar for hadi1370

hello friends! I want to participate in soccer simulation competition and i don't have any info about its programming. i want to use java. is there anyone help me? Thank you.

Software Development java
Member Avatar for Miladsob
0
117
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.*; …

Software Development file-system gui java
Member Avatar for NormR1
0
290
Member Avatar for ddm

Design a CPU Timer class (you may name it CPUTimer). This class should allow the user to start timer, stop timer, compute delta time and print the lapsed CPU time of any block of code in a program. #pragma once #include <iostream> #include <cmath> #include <ctime> #ifndef CPUTimer_h #define CPUTimer_h …

Software Development c++ oop
Member Avatar for MonsieurPointer
0
100
Member Avatar for king03

Hi there guys how do you know if a program is coded in an object-oriented manner? I just wanted to know if the program I have downloaded is an oop program or not. please help...

Software Development oop
Member Avatar for muze
0
127

The End.