43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Pravinrasal

Following is my program i need to add scroll to jframe and I have paint method in it package other; import java.awt.BasicStroke; import java.awt.Color; import java.awt.Container; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.ScrollPane; import java.awt.Stroke; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.geom.Line2D; import javax.swing.*; public class MainDrawCycle extends JPanel implements ActionListener { …

Software Development java java-swing
Member Avatar for Pramodkumar_1
0
7K
Member Avatar for Kris_3

Hi guys , so I just started learning C++ so I am trying to do something but id does not turn out quite how I want it to be. So my idea is to create a text game and I'm at the very beggining and I have a lot of …

Software Development c++
Member Avatar for Kris_3
0
223
Member Avatar for Slavi

In the past couple of days, I've been practicing with JavaFX and I made myself an app, which I am planning to use in the future. It is supposed to keep track of web pages and the passwords I use for them, usernames as well of course. The program itself …

Software Development java
Member Avatar for Slavi
0
246
Member Avatar for Slavi

Please before you answer NOTE , I am not trying to implement a keylogger, this is just a QUESTION. So, It just randomly happened that I started thinking about this and I figured that in java if you want to have a keyEventListener the key should be entered in a …

Software Development gui java
Member Avatar for Slavi
0
295
Member Avatar for Agouri

Hello gentelemen, I'm sure many of you are experiencing what I am experiencing right now. I'm halfway into Christmas break, back at my parents', with the paperbacks I brought along depleted, the roguelike I downloaded unable to start after an OS upgrade and literally nothing else to do for the …

Software Development c++
Member Avatar for BeautyBeast
0
784
Member Avatar for sGirl123

I want to split sentence that has + I code this: String[]s; String a; s=a.split("+"); but it throw this exeption: Exception in thread "main" java.util.regex.PatternSyntaxException: Dangling meta character '+' near index 0 what should I do?? thanks

Software Development java regex
Member Avatar for sGirl123
0
142
Member Avatar for Muhammad Shahg

What is the difference between Static Variable and Ordinary Variable?Which Variable is expensive to use in c++ programming?Give some resion?

Software Development c++
Member Avatar for melissad
0
300
Member Avatar for ocw91

I am currently trying out a code to generate image from html pages and i was trying with the code from [bitmap webbrowser](http://www.charith.gunasekara.web-sphere.co.uk/2010/09/how-to-convert-html-page-to-image-using.html). some how i just keep on getting error when the following method run for second times (i guess the threading is the main issue). i am using …

Software Development
Member Avatar for ocw91
0
178
Member Avatar for abaddon2031

I am trying to do a search for sub-folders in a directory that conaint numbers. The format could be a date range for example: 1-1, 01-1, 1-01, 01-01. The first number will only go up to 12 and the second one will go as high as 31 and im trying …

Software Development python
Member Avatar for Gribouillis
0
479
Member Avatar for Mya:)

Is it just me or is Delphi not so popular when it comes to programming laungages?

Software Development delphi pascal
Member Avatar for Matt_13
0
495
Member Avatar for realmattbender

I am looking to do exactly what the title states. I have a radio field that i would like to persist across a page refresh. The following is my code: <div id="RadioFields"> <input type="radio" name="country" value="usa" id="usa" />USA <input type="radio" name="country" value="foreign" id="foreign" />Foreign Country <div id="countryerror"> <div class="asterisk" runat="server"> …

Software Development java
Member Avatar for realmattbender
0
150
Member Avatar for henryz_box

I'm having trouble getting the Cards off the table in this card game I'm working on. The cards are JLabels that hold images of the cards. These JLabels are created dynamically into a JLayeredPane. I have created some variables to hold the info I believe I need in order to …

Software Development java
Member Avatar for henryz_box
0
131
Member Avatar for rfresh

I've added a splitContainer to my form but I can't figure out how to set the splitContainer.panel2 width and height? I have two panels: splitContainer.Panel1 and splitContainer.panel2. I have the splitContainer.Dock set to Left. When I try to set the splitContainer.panel2 width I get an error saying to set the …

Software Development
Member Avatar for rfresh
0
6K
Member Avatar for henryz_box

I have an issue with accessing a table in my database after using the truncate command on it. Having to delete the whole database and recreate it not every time but often. The table is used to hold the index of a card and the card's value. This is the …

Software Development java sql
Member Avatar for henryz_box
0
241
Member Avatar for vishalcap

hi i am trying to automate one form in selenium using java code. the same codee working fine in firefox but getting error in IE. Started InternetExplorerDriver server (32-bit) 2.42.0.0 Listening on port 10840 Exception in thread "main" org.openqa.selenium.NoSuchElementException: Unable to find element with name == ImpersonateUserId (WARNING: The server …

Software Development java session
Member Avatar for JamesCherrill
0
278
Member Avatar for sing1006

here is my code for delete Private Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.Click If MsgBox("Are you sure you want to delete this item?", vbYesNo + vbQuestion, "Delete") = vbNo Then Else If Me.DataGridView1.Rows.Count > 0 Then If Me.DataGridView1.SelectedRows.Count > 0 Then Dim x As Integer = Me.DataGridView1.SelectedRows(0).Cells("FNo").Value …

Software Development microsoft microsoft-access vb.net
Member Avatar for sing1006
0
240
Member Avatar for aluhnev

Hi,can you explain the use of **for_each and lambda** in c++11.What are they for,how to use? I have seen a few examples but do not get the meaning.Thank you.

Software Development c c# c++
Member Avatar for Hiroshe
0
207
Member Avatar for V3N0M

Hi everybody I am beginner developer and I was wondering if you store the algorithms lets say on paper or in the computer once you are done solving a problem or do you just wait if a similar problem and jump into solving it again? Thanks!

Software Development
Member Avatar for Hiroshe
0
128
Member Avatar for MasterHacker110

As I understand it, Fortran 2008 is the latest release? I have searched goolge but was un - able to find a Fortran compiler and tutorials Fortran 2008.

Software Development
Member Avatar for covert
0
142
Member Avatar for ankit.baphna

Hi Friends, I am using this code to upload image but it seems my call is not getting inside function. I put some echo commands for debugging. all I get output is after selecting file "hello entering function". but do not get other echo command print. Neither insert command is …

Software Development image php
Member Avatar for ankit.baphna
0
409
Member Avatar for henryz_box

I have a Jframe that contains a JPanel which has a label that I use as a background image and a second JPanel that I want to add my controls into. I am attempting to add and position labels dynamically. I can add the labels but they all appear at …

Software Development java java-swing oracle
Member Avatar for JamesCherrill
0
491
Member Avatar for Hussein.Soufan.einstein.313

Problem 1: You are given n you are required to print the following rhombus. Example: n=5 1 121 12321 1234321 123454321 1234321 12321 121 1 Problem 2: Max Subsequence sum using 3 nested for loops. (n^3) Max subsequence sum using 2 nested for loops. <-- Challenge (n^2) You shold print …

Software Development c++
Member Avatar for jwenting
-1
134
Member Avatar for senait.kifle.127

Hello Everyone, This question is quite hard for me to understand it. I have gone this further. your help will be appreciated. The program is used to calculate volumes of tanks. #include <stdio.h> #include <stdlib.h> #define PI 3.14152 /*Declare for storing the data of a cylindrical tank new structure type …

Software Development c data-structure
Member Avatar for David W
0
279
Member Avatar for aluhnev

Hi i started the book c++ from ground up,but looks like it's too old.I came across the bonded array.Question- what are they,where to use them,how and are they still used in c++11? Thank you .

Software Development c++
Member Avatar for Hiroshe
0
644
Member Avatar for Jjajangmyeon

I'm trying to run a program with command line arguments. I keep getting the following error: This application has failed to start because libgcc_s_dw2-1-.dll was not found. Re-Installing the applicatiob may fix this problem. I have no clue what to do with this. The code works on the school computers …

Software Development c++
Member Avatar for Jjajangmyeon
0
271
Member Avatar for Pazuzu156

I'm sure this question has been asked before, but I'm at a loss here. I've been attempting to get a piece of C++ code to work. It works perfectly on Windows AND Linux (Multiple distros tested on) however Mac is proving a pain. I'm executing a Jar from C++, and …

Software Development c++
Member Avatar for Pazuzu156
0
191
Member Avatar for Joemeister

Hey all, I was wondering about this piece of code on how to make it simpler to find the needle in the haystack for example "abbaabbaabb", "abba" - the needle, "abba" is found 2 times in the haystack "abbaabbaabb". I have this code: unsigned int substringCount(const std::string& strng, const std::string& …

Software Development c++
Member Avatar for Joemeister
0
2K
Member Avatar for flebber

I am doing ex4 from the fundamentals of C#. But I cannot solve the problem. I am unable to slice the array correctly and instead just endup with System.int32[] Simply all I am supposed to do is find the maxmimal sequence of equal consecutive elements. I am trying to follow …

Software Development asp.net
Member Avatar for ddanbe
0
280
Member Avatar for MrJUBU

need help for my assignment im a IT student.

Software Development c++
Member Avatar for MrJUBU
0
99
Member Avatar for markdean1989

here is my code, it is very simple Me.Validate() Me.TableBindingSource.EndEdit() Me.TableTableAdapter.Update(Me.Database1DataSet.Table) MsgBox("Update successful!", MsgBoxStyle.OkOnly, "") Me.TableTableAdapter.Fill(Me.Database1DataSet.Table) Actually, I have been programming for a year or two three years ago but I stopped after my laptop was stolen and due to work. But now I I have a new laptop, and …

Software Development vb.net
Member Avatar for markdean1989
0
151
Member Avatar for MasterHacker110

I have a small program that queries a database and retrieve some information about employees. The only problem I have is that when I search for the employee my program never finds any employee after the first employee. Here is my code: private void buttonSearch_Click(object sender, EventArgs e) { string …

Software Development open-source
Member Avatar for hericles
0
198
Member Avatar for jared.geli

Hi guys I have this problem where a certain cell will select a value from a table based on another cell (like an id or something). First I select some values to be put in Datagrid (a typical OleDBCommand) then add some more columns using Datagridview.Columns.Add. Here's the scenario I …

Software Development dataset vb.net
Member Avatar for jared.geli
0
1K
Member Avatar for aluhnev

The containers SET/VECTOR/LIST/MAP are very similar in use,so how to choose which one to use? Is where any special cases? Thanks

Software Development c++
Member Avatar for mike_2000_17
0
278
Member Avatar for Varunkrishna

I am using PrintWriter to write the input from the standard input to a file, here I am trying to create an ascii table in the text file, but there is no proper alignment of the table in the text file. Here is my code guys. package code.practise.MyIdeas; import java.io.FileNotFoundException; …

Software Development file-system java
Member Avatar for Taywin
0
260
Member Avatar for aluhnev

//Hi,can someone explain what is the difference of declaring the main in C++/C++11 //What is most common may to use or it's metter of personal choice? int main() { return 0; } /////////////////// int _tmain(int argc, _TCHAR* argv[]) { return 0; } /////////////////// int main( int argc, char ** argv …

Software Development c++
Member Avatar for NathanOliver
0
353
Member Avatar for nhrnjic6

So I've built a Queue data sructure(all the needed methods) and I just wanted to know how can I use my Queue objects in different project ?

Software Development c++ queue
Member Avatar for Schol-R-LEA
0
236
Member Avatar for Schol-R-LEA

**note:** This was also posted to the [comp.lang.scheme](https://groups.google.com/forum/#!forum/comp.lang.scheme) earlier today. I normally wouldn't cross-post, but after I noticed the extremely low traffic on the newsgroup, I decided to try a more active, if less specialized, forum. As part of a larger project, I am writing a macro that defines a …

Software Development
Member Avatar for Schol-R-LEA
0
320
Member Avatar for aluhnev

#include<utility> #include<tuple> #include "stdafx.h" #include<string> using namespace std; int _tmain(int argc, _TCHAR* argv[]) { pair<int, string>p(42, "forty-two"); cout << p.first << " " << p.second << endl; p = make_pair<int,string>(112,"one-one-two") ; cout << p.first << " " << p.second << endl; return 0; } // Can some one help to …

Software Development c++ visual-studio
Member Avatar for aluhnev
0
232
Member Avatar for nathan.pavlovsky

Hello programmers! I am working on a program that checks if a user's input is a palindrome (in this case, the input is a string). I am using a custom class template "stack", that is a constrained version of my custom class "List", which is a linked list class template. …

Software Development algorithm c++ linked-list
Member Avatar for nathan.pavlovsky
0
418
Member Avatar for SoreComet

Can string be compared with == operator? I know that they can be compared using strcmp() function. But this snippet confused me a lot #include <stdio.h> #include <stdlib.h> int main() { char str1[]="Good Morning"; char str2[]="Good Morning"; if(str1 == str2) printf("Equal"); else printf("Not Equal"); return 0; } The output of …

Software Development c
Member Avatar for SoreComet
0
123
Member Avatar for cambalinho

i'm creating the form class. the form us showed and the window procedure works. the problem is that some messages(like WM_CREATE) aren't working. so how can i connect, correctly the form to window procedure?

Software Development c++
Member Avatar for cambalinho
0
616
Member Avatar for cambalinho

i'm build a function for do the combination of keys(like the kombat games: we do some combination keys for do an actions): bool CombineKeys(std::vector<int> const keys) { static bool PreviousKeyPressed; static DWORD StartTimer = GetTickCount(); static int i=0; if((GetAsyncKeyState(keys[0]) & 0x8000) and PreviousKeyPressed==false) { i=0; SetWindowText(a,"hello"); PreviousKeyPressed=true; i++; } else …

Software Development c c# c++
Member Avatar for cambalinho
0
235
Member Avatar for Varunkrishna

Hi all Here is my snippet for(int i = 1;;i++){ System.out.println("Please enter the name:"); name = input.nextLine(); System.out.println("Please enter the email:"); email = input.nextLine(); if(!email.matches(EMAIL_PATTERN)){ System.out.println("Please enter a valid email.\nThe details are not saved please start from the beginning."); i--; // break; continue; } else { printwriter.println("|"+i+")\t|"+name+"\t|"+email+"\t|"); printwriter.println("+-----\t+-----\t+-----\t+"); } if(i>=1){ …

Software Development java
Member Avatar for Varunkrishna
0
121
Member Avatar for Needhelp2

Hi all, I have a large txt file (3 Million lines). Like to use python , to parse the file , so it can be managed by excel. I am very new with Programming and python, like to learn it. Thanks for your support... input file format: .. ... ... …

Software Development python
Member Avatar for Needhelp2
0
3K
Member Avatar for abaddon2031

I have a python code that reads a specific folder for specific files. Once it finds a file that matches the re.split peramiters that it is given it then writes the data to a csv file. The issue is that for every file that it loops through and writes it …

Software Development file-system printer python
Member Avatar for abaddon2031
0
2K
Member Avatar for new_developer

Hi there, I am having problem with deallocating string two-dimensional dynamic array. My program works fine but for some conditions such as when row size is greator than column size in 2d dynamic array, the program crashes when it goes into destructor. My program is as follows : #include <iostream> …

Software Development c++
Member Avatar for new_developer
0
254
Member Avatar for Slavi

I am following [this](http://code.makery.ch/java/javafx-2-tutorial-part1/) tutorial to get into JavaFX using scene builder and so far I really like it as the person who made it explains things in deep detail. I finished the first part and tried executing the code so far, but it returns multiple errors. Here is more …

Software Development java
Member Avatar for Slavi
0
2K
Member Avatar for mrbungle

SYSTEM: Windows 8.1 Tablet, VS 2012 OLD SYSTEM: Windows 7, VS 2013 Enterprise (thanks to my employer) Something is wrong. I never had any errors on my old system. On my new system, I'm getting the following: An unhandled exception of type 'System.Exception' occurred in Microsoft.VisualBasic.dll Additional information: Cannot create …

Software Development microsoft microsoft-office tablet vb.net
Member Avatar for Reverend Jim
0
914
Member Avatar for subhraakasuny

Hi Team, I am beginner in Java. I am trying to prepare report using Java,the code will generate a Microsoft Word Document and add some text and images in it. I am using Apache POI for this.I am able to create and add text in the doc file and the …

Software Development apache image java
Member Avatar for subhraakasuny
-1
8K
Member Avatar for dumicom

Hi, this program of mine can plot timestamp & irradiance but how can i plot another line of data for temperature? This is my txt data: TimeStamp,Irradiance,Temperature 21/7/2014 0:00,0.66,26.2 21/7/2014 0:00,0.71,23.4 21/7/2014 0:00,0.65,25.4 21/7/2014 0:00,0.67,25.3 21/7/2014 0:01,0.58,30.5 21/7/2014 0:01,0.54,26.7 21/7/2014 0:01,0.63,25.5 21/7/2014 0:01,0.65,26.9 21/7/2014 0:02,0.64,22.2 and this is a snippet …

Software Development python
Member Avatar for Gribouillis
0
348

The End.