132,726 Archived Topics
Remove Filter ![]() | |
hi i want to add Scroll Pane to JTable [CODE]JScrollPane jScrollPane = new JScrollPane(table); jScrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS); jScrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS); add(jScrollPane,BorderLayout.CENTER);[/CODE] in the above code table is and Object of JTable with default model i write above code but that code display the scrollbar but they dont work Software Development java | |
My application is suppose to save the information that I put in the application that is in a listbox in form2. All the information is in form1, but I got it to save it in the listbox in form2 and I can see it when I load up the form2. … Software Development vb.net | |
Hi, Continuation of a previous thread. This is different question, so new thread. I have an array of 5 taxpayers. User enters 5 SSNs and Incomes. An array is instantiated to fill this data. I need to display all five objects listing SSN, income and tax. I am having difficulty … Software Development | |
Hello All, Have somebody heard about a C++ library which help Agent programming like Java Agent Development Environment(JADE). Please let me know. I googled it but I could not find. Thank you ThiLiNa Software Development c++ | |
Any help would be appreciated with this program : I have a file with 5 lines....each line has name, id , phone ...etc... I have to read that intro an array of structures and display the results. This is what I have so far .. I doesn't not display anything … | |
Hello..... i am new to C#, can some one please give me a simple code example for an array data structure to read Name, Age, Salary, and Address for the employee by Asking the user to enter the number of employees. Thank you Software Development data-structure | |
I am experiencing a strange error with the constructor for a binary search tree. The project is for an Hoffman Encoding scheme however the issue is whenever i insert more than two items into the STL priority queue, the copy constructor crashes. [CODE] void copyTree(myTreeNode* & copy,myTreeNode* originalTree) { cout<<"Copy … | |
Hello, I have been trying to get this program to work for a while now with no luck and I was hoping that someone could clear things up. My problem is the program always gives the failure to open file message so I can't tell if anything else works or … | |
Reviewed with answer from my quiz, I want to make sure that I understand it right? If not, what is yours? int x=1; int j; for(j=0; j<=2; j++) x=x*j; System.out.print(x); --------------------- answer is x=0 My understanding is since this for loop has no curly bracket, therefore, no loop after the … Software Development java | |
This game is like the game scramble that you play on facebook. Also similar to boggle. Basically you input the dimension of the grid of letters that you want and the dictionary.txt file and it will print you all the words found. It's suppose to find words in all directions … | |
Hey guys im using Ms Visual C++ Compiler, im encountering this error bt i cant manage to solve it, pliz help. Attached pliz find the source code Error : 1>c:\users\h\desktop\wautil\wautil\wautil.cpp(23) : error C2144: syntax error : 'int' should be preceded by ':' 1>c:\users\h\desktop\wautil\wautil\wautil.cpp(33) : error C2144: syntax error : 'double' … Software Development c++ | |
how to combine this 2 statment.. [CODE] IsConnected("Select * from manager_table", False) Call Loader() IsConnected("Select * from Clerk_table", False) Call Loader()[/CODE] i hve 2 listview, 2 table from accessdatabase..i put listview in tabcontrol..1 in tab 1 & second in tab 2... | |
Hello everyone. I am trying to find the max values of each column in this 5 column array. I have skipped the first column because it is just the product name. The other 4 columns contain revenue of that product. The function I wrote below works for col 1, 2 … Software Development c++ | |
I want to make a project, have 3 files: main.cpp header.h declerations.cpp where i have all the function declarations. But I'm not sure how to link them all together. When I make a header file, it automatically types the #ifndef header_h but I thoguht that should be in the declerations.cpp?? … | |
[CODE] // this is main.cpp // stuck on getting the ouput of the distance NOT to be 0 i think its someting to do with the variables // in the distance method in the point.cpp file // The invokeX and invokeY are set to 0,0 cout << "The distance from … Software Development c++ | |
I've written some code below and I can't get it to compile. I think I have my While and If in the wrong place. Any help is greatly appreciated! Here is the structured english: [CODE]PlayerOneScore <- 0 PlayerTwoScore <- 0 OUTPUT ‘How many balls do you wish to face?’ INPUT … Software Development pascal | |
hi i make code for double linkedlist.. but i didn't have a syntax erroe .. i don't know where the error . [ICODE]#include <iostream.h> struct dnode { int info; dnode *next; dnode *prev; }; class dlist { private : dnode *head; dnode *tail; dnode *current; public : void addEnd(int y){ … Software Development c++ linked-list | |
Hi Guys, I have developed a program which continuously draws a circle using a timer. Now every time the circle gets displays it flickers and which is because i have used me.refresh. Is there any other way to avoid this flickering. here is my code [CODE]Private Sub Timer1_Tick(ByVal sender As … Software Development image social-media vb.net ![]() | |
Hi guys, I have a class (DrawPanel) which extends Jpanel.This class generates random shapes (lines,recangles and ovals) . I am suppose to add a statusbar to this class but I can't add even a simple lable to this panel... I am so frustrated and would be so appreciate if anyone … Software Development java | |
Hello all!!! It's been a while but glad to have enough time to be back. My question is basically one of design. I'm working on a new project using pygame at the moment, mainly to brush up on and enhance some Object Oriented skills. The project itself is basically going … Software Development python | |
when I try to run a java program on my mac or linux box with the <code> java -version:1.6+ -jar jdesigner.jar </code> it tells me there is no jre found meeting the requirements even though when I type <code> java -version </code> it tells me the version is 1.6.0_20 or … Software Development java | |
Hello Members, The following code compiles and runs accurately, but gives the following message: [CODE]Note: List.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details.[/CODE] [CODE]import java.util.*; public class List { private final static int[] array = {1,2,3,4,5,6,7,8,9,10,11,12,56}; public static void main(String args []) { ArrayList x = … Software Development java | |
Does anybody know how to query all groups with provided user in managed by field? Thx in advance. Software Development asp.net c# file-system windows-server | |
my problem is i cant get the overall numeric score and the grade letter import java.io.*; import java.util.Scanner; public class GradePrg { BufferedReader keyboard = new BufferedReader(new InputStreamReader(System.in)); int quiz1, quiz2, quiz3; float tMidTerm, tFinal, tQuiz; int midTermExam = 0; int finalExam = 0; float finalScore= 0; String name; char … Software Development java | |
So I'm learning OpenGL on my own and I have to say I'm really liking it. I really have not been able to do much, you'd laugh if i told you how much i knew but are there any real techniques for drawing shapes? I'm having trouble trying to figure … | |
Hi everyone, Here is my problem: I have different data files each with several columns and row of data. datafile1 , datafile2, ... Now I need to do some simple math procedure of this data files, Lets say I need to add the 3rd column of datafile1 to the 2nd … Software Development shell-scripting | |
Hi all, I'm sure it's an error by me, but I'm having a problem with ifstream inside a loop. The reason for the loop is read in a piece of text from multiple files, and cases within the switch statement change the filename, path is previously declared. The first iteration … | |
Hey fellows, I've created a fairly large math suite for my spectrometer research, which is basically a set of programs that does several math operations, generates plots etc... It's beginning to get pretty bulky, and seems like it would benefit from a nice class; wherein, I could store all the … | |
I am working on visual studio 2008 what i want to do is read till the end of the file the code i am using is [CODE] StreamReader ^sr= gcnew StreamReader("example.txt"); String ^str; while(sr->Read()!= 0) { str=sr->ReadLine(); textBox2->Text=sr->ReadLine(); MessageBox::Show(str); } sr->Close(); [/CODE] what could be used inside while condition that … Software Development asp.net c++ visual-studio | |
Hi guys, i'm doing a 7 week C++ course at the min and am struggling to keep up. Any help on the following is appreciated. Background Info: The game of craps: A player rolls two dice. Each die has six faces. These faces contain 1, 2, 3, 4, 5 and … Software Development c++ | |
I am trying to get the midpoint between two points. one of the points by default is (0,0). The other point is entered by the user. the problem i am having is getting it to work correctly from the point class in point.cpp. it worked correctly when i put it … Software Development c++ | |
When i click button an I always get an Error that[COLOR="Red"]An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes … Software Development open-source vb.net | |
Hey friends lets checkout a small, simple and cute python program for taking photos with with your webcam without the help of any third party application programs. [CODE] import os import datetime import opencv.adaptors from opencv import highgui import Image def get_image(camera): im = highgui.cvQueryFrame(camera) # Add the line below … | |
I spent so much time from scratch to finish and to the point that I couldn't figured out what is all my mistakes about. I need a fresh set of eye, may you help? (errors at the bottom, sorry for have to scroll down the long page) Thanx [code]/* *Description: … Software Development file-system java | |
I've only written one simple class before, yesterday. I am required in this assignment to use all of these functions, even though I don't think they are all necessary. I believe that my problem is just a matter of not knowing exactly how to pass one variable, which is created … Software Development c++ | |
[CODE]#include<stdio.h> int main() { char *arg[10],*c; int count=0; FILE *fp,*fq; printf("Name of the file:"); scanf("%s",arg[1]); fp=fopen(arg[1],"w"); printf("\t\t%s",arg[1]); printf("Input the text into the file\n"); printf("Press Ctrl+d to the stop\n"); while((*c=getchar())!=EOF) { fwrite(c,sizeof(char),1,fp); count++; } return 0; } [/CODE] Software Development c | |
I have a SQL file that needs to be BCP exported to pipe delimited because of limitations on the recieving end. I have tried the following with no sucess; [BCP sql statement] + '.txt" -t"|", -c -T' [BCP sql statement] + '.txt" -t\|, -c -T' [BCP sql statement] + '.txt" … Software Development | |
Hello everyone on Daniweb!:) I'm all new with working with swing and I'm having some problems making my paint method work:/. Atm I'm just tryin to make it write a ball, which I can control into different directions. Right now there is quite alot of unnecessary stuff in my code … Software Development image java java-swing | |
I have two datagridviews: -> dgvMenu -> dgvMenuItem dgvMenu: will display all the menus that are in the database. dgvMenuItem: Will display all the items of the menu selected in the dgvMenu. How can i get the items of the menu? [B]My DataBase[/B] tblMenus: -> ID (PK) -> Name -> … Software Development | |
I get this error and i don't know what is wrong i declared a new class and initialized it yet the compiler still gives me the error above. public class Vec { private double[] v; public Vec(int length) { double[] v= new double[length]; for(int i=0;i<length;i++) { v[i] = 0.0;} } … Software Development java | |
im looking to check a binary value at a certin bit and determin if that bit is a 1 or a 0. For example: A = 10000000 B = 01111111 I want to check the first bit and if it is a 1 load it into one array and if … Software Development | |
can anyone say how to use java in windows 7 I installed it but its not working. i am unable to compile a java program. please help me in solving this problem. i am getting this message in command problem when i use javac "'javac' is not recognized as an … Software Development java | |
I'm creating a silly game, and the first thing I want to make is to tell you "You Lose" if the all that you control with the mouse is not inside the frame. I created a JComponent and every 20 milliseconds it is repainted (A thread does that). Inside it, … | |
I wrote a program which I tested in the IDE of python 3.2, it worked but whenever I open the program directly or run from command prompt, it doesn't run correctly, after the user inputs the correct answer, the program keeps saying try again. [URL="http://www.daniweb.com/software-development/python/code/359115"]here's the program it's in the … Software Development daniweb-bug ide python | |
hello to all, i got a problem in vb.net program, i dont how to delete multiple rows in a single table i used "truncate" command. this is my code for deleting: [CODE] Private Sub tranc() Try Dim dbconn As OleDbConnection Dim dbcom As New OleDbCommand dbconn = New OleDbConnection(cnnstring()) dbcom.CommandText … Software Development vb.net | |
This code has gven me more problems than it is probably worth. Can anyone help me please? [CODE]package payrollprogram2; import java.util.Scanner; public class PayrollProgram2 { //begin class public static void main(String[] args) { //begin main System.out.println("Welcome to the Payroll Program"); //output Welcome to the Payroll Program Scanner input = new … Software Development java | |
i founds this code to search data in datagrid.. [CODE]Me.BS.Filter = "date = " & DateTimePicker.text "'"[/CODE] what BS mean & are this code true ?? Software Development vb.net | |
Guys need help with this one. Here's the condition / algorithm. "If first digit is number/int and last digit is letter add two zero in front of the string" Hoping for any idea! Thanks. Software Development algorithm |
The End.