43,549 Solved Topics
Remove Filter ![]() | |
Hello, I have made a web application program that takes one string and outputs it through an array into three seperate textboxes using comma seperated values. This works fine - BUT I want data 0 to only allow entry of strings (it's a name), data 2 to only allow entry … Software Development | |
Hi, I need two functions one that checks if the inputed number is a prime number and second one that splits the given number in to prafactors. I have the first function done but the second one is a bit annoying. The function has to take the given number and … Software Development python | |
Here's my problem. I need to add only the first and last elements of each row, and display them separately. Ex. Row 0=11 Row 1=11 Row 2=8 [CODE]int arr[][]={{5,9,6},{3,2,8},{7,0,1}}; int sum=0; for(int row=0;row<arr.length;row++){ for(int col=0;col<arr[row].length;col++) sum=arr[row][col]+ arr[row][col]; System.out.println(sum+" ");[/CODE] this is my code, and i think i just need some … Software Development java | |
How could I empty my JTable (AbstractTableModel)? If I run [ICODE]tableModel.deleteData();[/ICODE], then the message "0 >= 0" appears. Thanks! [CODE]class QueryTableModel extends AbstractTableModel { Vector cache; // will hold String[] objects int colCount; String[] headers; String url; String databasename; String login; String pass; Connection db; static Statement statement; public QueryTableModel(String … Software Development java | |
Hi! How could I open a file saved on FTP Server? I'm using org.apache.commons.net.ftp.FTPClient to save/delete files. There are only 5 types of files: doc, docx, xls, xlsx, pdf. If I select a pdf file, then it must be opened in Adobe Acrobat, etc. So, what is the best approach … | |
How do I allow the display to show numbers with the commas, but then when it does the calculations, have the commas go away for the math since obviously java can't read commas in calculations? example [CODE] DecimalFormat df0 = new DecimalFormat("###,###.00"); JFormattedTextField loanText = new JFormattedTextField(df0);[/CODE] the user puts … Software Development java | |
I know this is probably overly simple but I am terrible with math. This is a section from a game I'm attempting with PyGame. Instead of using pixels for coordinates I have my own render function that uses blocks(actually just cnverts block value to pixels), which are 32x32 pixels, so … Software Development python | |
Well, I've been Googling for at least 30 minutes, and looking through past posts about this, but just can't seem to find an answer that works. Basically, I've got a component class that has a single method I'm trying to test out. The entity class has a private array of … Software Development c++ | |
Hi, ^^ I'll be competing for a java programming contest next week and one of the instructions is to "Receive input from the console window (of JCreator)." Thus, programs shouldn't involve any GUI. I've found this very useful tool called Scanner in the java.util package. My self-training was going smoothly … | |
Hey Guys i was wondering if i could get a bit of help I'm creating a program that contains a number of different sorting methods (insertion, quick, merge) that sort an array of bikes. [CODE] Bike[] bikes = new Bike[13]; bikes[0] = new Bike("Mountain", 160, "Diamond", 6, 18, "Standard", "Hardtail", … Software Development java | |
Hello. I going to write fames.xml with my app. I need to know the best way to handle adding a block of XML but not at the end because I need to have the root element at the end. Any ideas. 1.never end it but when I use it add … | |
Hi! I saw a post on this site that exhibited the same exact problem that I have for a homework assignment and while it was solved, my issue with the homework assignment is different. The C++ program that I wrote asked the user to input information but once you enter … Software Development c++ | |
Hello everyone, I've used this website many times to help myself based off of others' questions, but now I have a problem of my own that I can not solve. I was assigned the task of creating a stack program in C++ using a linked list. Seems simple enough, but … Software Development c++ linked-list | |
I'm making a student database using array based lists. I'm having trouble with making the list size created by the user. I have a for loop there now but once I put it there, I get an error saying aStudent is an undeclared variable and I don't understand why. There … Software Development c++ | |
Here is my code: [url]http://pastebin.com/KTR86nzD[/url] This is input.csv: name,age Fred,88 Stella,11 Nellie,99 George,22 Violet,33 Rose,77 Bob,66 Lena,55 Billy,44 It should print the above in this format - Fred is 88 years old Stella is 11 years old Nellie is 99 years old ... Billy is 44 years old. Afterwards, it … Software Development java | |
Hi! If I run the code shown below from my local machine, where the FTP server is installed, then everything works correctly. However, if I try to run it from some other machine, then the message "Cannot connect to the FTP server!" appears. Settings of my FTP Server are shown … Software Development client-server java | |
Hello. I have a question regarding a task I was given. It goes : Fill the array with random numbers and then print out how many times theyve appeared like so : [CODE] /* ARRAY : 0 0 0 0 1 1 1 2 2 2 2 2 6 6 … | |
Hello. Can anyone bring me up to speed to use XML to manage adding and removing tabs from a JTabbedPane? I am adding tabs and I Would like some code or links that could show me how to serialize any changes I make to a JTabbedPane. Thanks Software Development xml | |
i am trying to build an interface array for my checker class. i have 3 classes: main class, checker class and king class. my interface: [CODE] interface IchecherMove{ bool isMoveValid(IchecherMove[,] checker, int columnStart, int rowStart, int columnEnd, int rowEnd); string FindPiece(); string print(); bool pieceDevour(IchecherMove[,] checker, int columnStart, int rowStart, … Software Development | |
![]() | Hello, During development of one of my projects i have a tool strip bar when the user clicks a button the tool strip button = a URL of a website. but if the URL is a Google search page the text would be very long and you would only be … Software Development visual-studio ![]() |
Hello guys.. I have this makefile: [CODE=c] MyMatrix‬‬: MyMatrix.o gcc MyMatrix.o -o MyMatrix MyMatrix.o: MyMatrix.c gcc -c MyMatrix.c MyStringMain: MyString.o MyStringMain.o gcc MyString.o MyStringMain.o -o MyString -o MyStringRun MyStringMain.o: MyStringMain.c MyString.c MyString.h gcc -c MyStringMain.c MyString.o: MyString.c MyString.h gcc -c MyString.c .PHONY:clean clean: rm -f *.o test.out [/CODE] For some … Software Development c | |
Hello, Having trouble with a program for school. Prof gave a shell that has color declared as static. Here is what I have so far. [CODE]class MyRectangle { private double width = 1; //private class instance fields private double height = 1; private static String color = "white"; public MyRectangle(){ … Software Development | |
Hi all, I need to have a program to word count remove punctuation and sort it in alphabetical order. I had done the word count portion but i am lost in removing punctuation and sorting in alphabetical order portion. Hoping to get some help. [code] #include <fstream> #include <iterator> #include … | |
First I'd like to say how much I appreciate these forums. They have helped me before, but this is the first time I've posted a question myself. My problem is that I use a different IDE than my teacher does (probably not the best idea) so I want the program … | |
Hello Everybody, I am a beginner, I am got stuck with following error at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Unknown Source) at java.lang.Class.getConstructor0(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1089) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) at org.apache.catalina.core.StandardHost.start(StandardHost.java:736) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:448) at org.apache.catalina.core.StandardServer.start(StandardServer.java:700) at org.apache.catalina.startup.Catalina.start(Catalina.java:552) … | |
anyone here can help me to make and sample codes for class variable and class methods using the static keyword in vb.net.. thanks Software Development vb.net | |
Below is the program for swapping variables without any extra variable. [CODE] #include "stdio.h" #include "conio.h" void main() { int a=7;b=5; clrscr(); a=a+b; b=a-b; a=a-b; getch(); }[/CODE] Software Development c | |
Hi all, I have a silly question regarding how to translate this command in CMakeLists.txt g++ x04.cc -o demo -lplplotcxxd x04.cc is c++ file , information about lplplotcxxd can be found here [url]http://ubuntuforums.org/showthread.php?p=8538977[/url] since the command " g++ x04.cc -o demo -lplplotcxxd" is working on my computer so I think … Software Development c++ | |
Hi, this is my first time posting and I would like thank everyone in advance. I'm doing a homework assignment that requires me to design a teller application which simulates a bank. I'm currently getting a segment fault, after I call one of my getBranch(). I've tried to do this … Software Development c c# c++ file-stream ios | |
I normally program in Java and Haskell to me seems completely alien and weird. All I want to do is read the contents of a file into a big string then be able to do stuff with that string like split it on newline and store it in a list … Software Development | |
![]() | A short semi fast flood fill. If anyone has trouble with this, please post. I'm about to run it on 10+ million shapes. There always seem to be a few unique situations where something doesn't work. Public Sub Fill(ByVal bmp As Bitmap, ByVal pos As Point, ByVal color As Color) … Software Development vb.net ![]() |
Can someone look at this code and tell me why I am getting errors and warnings. I have everything just like the book says but it doesn't work. Here is the code: Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load ' Class-level declarations … Software Development vb.net ![]() | |
Wrote this program to find if 2 phrases are Anagrams of one another. Works except that I need to make it ignore any other character than letters(including spaces) As is now I get 4 errors, all in that last boolean 1&2: cannot find symbols for phrase1/2.length (tried anag.phrase and didnt … Software Development java | |
Hi guys I'm trying to take a user input (name) and replicate the input in other methods. Can anybody help? Here is the code: [CODE]import javax.swing.JOptionPane; public class example { public static void main (String[]args) { entername(); } public static void entername() { String a=""; a = JOptionPane.showInputDialog("Welcome. Enter name … Software Development java java-swing | |
I have a macro that uses "If Then" to choose what macro to run based on the ActiveCell. I would like to use the Select Case method instead, but need help to do it. How would I change this code? Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range) … Software Development vb.net ![]() | |
Hi. I am writing a program to read user input numbers until '0' is entered. I then figure out if each number is even or odd and find the average of all the evens and all the odds (even average is one number, odd average is another.) I have it … Software Development c++ | |
I need an code to go this page: [url]http://steamcommunity.com/groups/KiFFERSTUEBCHEN/members[/url] And grab the data beetwen: [url]http://steamcommunity.com/id/[/url] and " [CODE]href="http://steamcommunity.com/id/otti">threeD</a><br />[/CODE] so it will grab in this case the word "otti" Theres a lot of lines like that, so i need a code that grab all the specified words of the page … | |
Hi! How could I create/delete a directory on the remote machine using FTPClient of org.apache.commons.net.ftp.*; ? The code used to save a file on the remote machine is shown below. But I would like to update it for creating/deleting directories. Thanks! [CODE] private void saveAttachedFileToRemoteMachine(String pathToFile, DefaultMutableTreeNode selectedNode) { FTPClient … | |
Hi! I would like to get an advise about the following question. There is a set of text fields. The task is to generate a new JFrame and align text fields based on the information given, i.e. a row and column of each text field. Let's say there is a … Software Development java | |
So im putting together a program that decompositions numbers on prefactors. Example: 252=2^2 3^2 7^1 and 1944=2^3 3^5 Put this into tuples: (wont use split, just for example) >>> split(252) [(2, 2), (3, 2), (7, 1)] >>> split(1944) [(2, 3), (3, 5)] This is the code that determines whether a … Software Development python | |
I want to make a button in a root window.My question is should i draw it or shoud i make a new window in my root window? Software Development c | |
program is working fine on YES option but on NO option it does not return ? any one give me hint ?? this.addWindowListener(new WinAdapter(){ public void windowClosing(WindowEvent e){ String cnic1 = (String)cnic.getValue(); String name1 = name.getText(); String fname1 = fname.getText(); String age1 = (String)age.getValue(); String add1 = add.getText(); String pro1 … Software Development java | |
Hey guys, I'm trying to code a testing app which will display questions on a JForm for a period of time. I need a way of keeping track of time so I know when the user's time is up. What should I use? So far, I've found these: [B]javax.swing.Timer[/B] [B]java.util.Timer … Software Development java java-swing | |
Hi! Does anybody know how to group JLabel and JTextField in order to get a single component? Thanks! Software Development java | |
This is part of my code. I want to declare an array of List, and I want to be able to pass this array to the functions listed below, so that I can do work on the array (i.e. add/delete nodes). But I have problems getting my head around pointers … Software Development c++ | |
I have been able to successfully load another java program (Calculator) within a java program with the following code: [CODE]Calculator.main(null)[/CODE] The program loads successfully but both programs have the code: [CODE]addWindowListener( new WindowAdapter() { public void windowClosing(WindowEvent e) { System.exit(0); } } );[/CODE] So once I close the Calculator program … Software Development java | |
am using sql 2005 and vb 2008.i need to compare dates and select matching records betweem a selected date range.say records between 11/13/2010 and 11/20/2010.e.thing is working ok except when it comes to selecting dates between 11/1/2010 and 11/9/2010.this is happening because when am retrieving the dates from database,its being … Software Development vb.net | |
I'm just trying to make a cash till and something is wrong because when i try to execute it it just freezes. I think something is wrong with my loop, also i don't know how to refresh my sale total when i click clear order. It clears it but when … Software Development vb.net | |
Hello all, In lots of applications there are copy,cut,and paste buttons where the user can highlight some text and click "Copy" or "Cut" or "Paste" and then the program would do the corresponding actions. I was just wondering how to code such a button in Visual Basic 2010? Thanks in … Software Development vb.net visual-basic | |
Please any one guide me or give me some hint ... can i run my java application directly from batch file or any other way from which i can directly access GUI of application. Regards, |
The End.