Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
22% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
4
Posts with Downvotes
3
Downvoting Members
4
1 Commented Post
~33.7K People Reached
Favorite Tags

59 Posted Topics

Member Avatar for Web_Sailor

Hi :-/ I have a java function that I want to call inside my JSP page. My function has got parameters.Now the problem is I cannot call it using JavaScript and if I put it inside <% %> tags it just executes while loading the webpage itself. I need to …

Member Avatar for hessah1986
0
205
Member Avatar for Web_Sailor

Hi, I need to create a user name and password login client server. Attached is my attempt. This is my first try on socket and network programming in C. I have reached to a certain level but just a little problem is stopping me because of less C knowledge. I …

Member Avatar for raptr_dflo
0
3K
Member Avatar for Web_Sailor

Hi :) I want that one of my fields in database should be redirected to some URL. For Example: Sample Table: 1111 2222 3333 4444 5555 6666 7777 8888 9999 1100 Suppose I want my 3 field to be redirected to a URL when a user clicks on the output …

Member Avatar for javaAddict
0
68
Member Avatar for Web_Sailor

Hi, I have a submit button in my JSP page. I also have drop down menus and text area in my form. Now my condition is like if drop down values or text area are null in this case if a user wants to submit he should get an alert …

Member Avatar for rakhi4110
0
880
Member Avatar for Web_Sailor

Hi... I am creating an HTML Table in my JSP page taking values from text file. Now the problem comes when I read the file again to update the Table content. In this case I have to refresh my whole page to see updated Table. :icon_cry: How can I refresh …

Member Avatar for Shanti C
0
1K
Member Avatar for Web_Sailor

Hi, I want to prevent the sorting and preserve the original order in my container. below is the example. How can I do it ? string one = "6"; string two = "7"; string three = "2"; string four = "8"; veck.push_back(one); veck.push_back(two); veck.push_back(three); veck.push_back(four); veck.push_back("9"); veck.push_back("12"); veck.push_back("13"); veck.push_back("5"); I …

Member Avatar for Ancient Dragon
0
101
Member Avatar for Web_Sailor
Member Avatar for Web_Sailor

Hi :) I am using basic replace function but getting some runtime error as below:- [CODE]terminate called after throwing an instance of 'std::out_of_range' what(): basic_string::replace Aborted [/CODE] I already know the position where I should replace so don't need to find it. Can somebody tell me how to avoid this …

Member Avatar for Fbody
0
385
Member Avatar for Web_Sailor

Hi gurus's :cool: I have got an actionListner in my code. The problem is that when I try to set my JLabel as true it does not work and does not show up in the GUI ? :@ [CODE]Button.addActionListener( new ActionListner(){ public void actionPerformed(ActionEvent e){ label.setVisible(true); myFunction() //here's some timeconsuming …

Member Avatar for Web_Sailor
0
3K
Member Avatar for Web_Sailor

Hi.. :?: I have written a program that reads a file and loads it into the 2D matrix but the problem is that it only loads the first line into 2D Matrix and duplicates the same. Can somebody point out the mistake. Here is my input file[CODE]14 12 5 4 …

Member Avatar for Web_Sailor
0
138
Member Avatar for Web_Sailor

Hi, I have a written a program using multimap and its not giving me the results I am expecting. I have used pair in my program. There is some problem which I am unable to figure out. Perhaps I am using pair for the first time with multimap. Here is …

Member Avatar for Web_Sailor
0
151
Member Avatar for Web_Sailor

Hi, I am trying to compare 2 vectors to remove any kind of overlap. I have written a simple program but it gives a segmentation fault once I increase / decrease number of vector elements in both. Is there a better way of doing this. Especially suppose one of the …

Member Avatar for Web_Sailor
0
176
Member Avatar for Web_Sailor

Hi all, I have a java swing based client server application. The GUI is in swing and I am using glass fish as my server. Is there a way or any software available to create an environment where I can test my application by creating virtual user connections so that …

0
68
Member Avatar for Web_Sailor

Hi gurus, I have a simple question regarding file parsing. I am trying to parse a file and store the fields I require in a multimap. Now I want to pass an array which is of int type and specifies field number to be extracted in a file. I am …

0
55
Member Avatar for Web_Sailor

Hi... I want to read only the first line of a file and print the line. I don't want to read the whole file. How can I do that ? Here is how we normally read the file [CODE]import java.io.*; import java.io.BufferedReader; import java.io.FileNotFoundException; import java.io.FileReader; import java.util.logging.Level; import java.util.logging.Logger; …

Member Avatar for rAun007
0
8K
Member Avatar for Web_Sailor

Hi, I am trying to solve a riddle. I am passing a value to multimap like this:- combined = string1+"\t"+string2 and then setting the output to fix size using maximum length and [CODE] cout.width(combined.length()) cout.fill(' ') [/CODE] The problem is that the fixed length format is not coming properly but …

0
60
Member Avatar for Web_Sailor

Hi, I have a data I want to make fix length records Like suppose:- [CODE]one two three four one two three one[/CODE] In this case the fixed length should be of the maximum string length which is of the first line. My code below is giving creating faulty fix lengths. …

Member Avatar for jonsca
0
233
Member Avatar for Web_Sailor

Hi, I have a jRadiobuttongroup. I have 3 types of jradiobuttons in my group. [CODE]A B C 1 1 1 2 2 2 3 3 3 4 4 4[/CODE] Now the problem is that when I selected suppose A type of buttons some of the A type buttons get selected …

0
61
Member Avatar for Web_Sailor

Hi :) I was trying to find the max length in my multimap. here is how I define it: [CODE]multimap<int, string> mm; multimap<int,string>::iterator it; mm.insert(pair<int, string>(some_int, myvalues));[/CODE] Now the main part that I want to discuss is this. I have created 2 functions to find the size of records in …

0
55
Member Avatar for Web_Sailor

Hi, I want to change the color of a selected jradiobutton in a button group to RED when clicked on it. I am not able to do it make it happen till now. The problem is actually that when I select any jradiobutton the selection spot should stay and get …

Member Avatar for Ezzaral
0
901
Member Avatar for Web_Sailor

Hi :icon_smile: I have written a C++ program which works very fine. The problem comes in terms of efficiency and speed. I am using a multimap which is required for my type of requirement. [CODE]multimap<string,string>[/CODE] Now the problem is that for files more than 100 MB it takes a lot …

Member Avatar for Web_Sailor
0
69
Member Avatar for Web_Sailor

Hi, I am struggling with a Layout problem. Here is the definition of the problem:- 1) I have a JFrame where I specify space alignment in GroupLayout for JScrollPane as per the other (JButton/ comboBox etc..). My JScrollPane contains a JTable. I use get and set methods to set scrollpane …

Member Avatar for Perveance
0
185
Member Avatar for Web_Sailor

I want to control the number of clicks in my button group which is inside DefaultTableModel of JTable. Like only one click for a certain Radiobutton. Suppose I have 3 radio buttons in a button group: 1) A 2) B 3) C If a user clicks A he can select …

Member Avatar for javaAddict
0
134
Member Avatar for Web_Sailor

I have got a problem with the layouts. I am creating a Grouplayout for my JLabels / Buttons etc in a window .. Then I am adding a Jtable using the JFileChooser for which I am specifying GridBagLayout and then adding the layout to Jframe again after JFilechooser creates a …

Member Avatar for Ezzaral
0
113
Member Avatar for Web_Sailor

Hi, I am trying to develop an application that has got a Jbutton and allows to search a file and then loads selected line of that file in the JTable. I am able to do that when I hard code it inside the code but when I try to let …

Member Avatar for Web_Sailor
0
134
Member Avatar for Web_Sailor

Hi. I am trying to browse a file and use the path variable in my File code. Both the things are in same class. The problem is that I am getting NullPointerException. Please check if I am doing it correctly Here the code snippet I am declaring [CODE]public class MyClass …

0
58
Member Avatar for Web_Sailor

Hi, I am trying to create a button group which can give me both Jcheckboxes as well as Jbuttons. The problem is that I am creating a button group and not able to fit the checkbox criteria into it. Actually I want to create 2 radiobuttons followed by one checkbox …

Member Avatar for Web_Sailor
0
147
Member Avatar for Web_Sailor

Hi, I am working on creating a jradiobutton group using JTable. Here is a brief definition of the problem. My program gives an output like this:- [CODE] Questions Answers 1 radiobtn1 radiobtn2 radiobtn3 2 radiobtn1 radiobtn2 radiobtn3 3 radiobtn1 radiobtn2 radiobtn3 [/CODE] I am able to set horizontal control that …

Member Avatar for peter_budo
0
526
Member Avatar for Web_Sailor

Hi.. I have 3 JPanels. (one) JPanel contains the scrollpane and the (two) JPanel contains a JButton. I am adding (one) + (two) into (combine) JPanel and then adding to the frame.Now I am really having a hard time align the scrollpane and the Jbutton. scroll pane is coming squeezed …

Member Avatar for KirkPatrick
0
150
Member Avatar for Web_Sailor

Hi. I have a constructor like below whose class extends JFrame. The problem is that my for loop is printing only the last string.( I am using this information ultimately to build a JButton table). Can somebody tell me whats wrong with this ? Below is the code:- [CODE] public …

Member Avatar for masijade
0
104
Member Avatar for Web_Sailor

Hi.. I am trying to load a text file into JTable. The file is tab delimited. I want to achieve the following things:- 1) Show the first line of headers on the left hand side. 2) Show my buttons on the right hand side of the JTable. The problem is …

-1
63
Member Avatar for Web_Sailor

Hi. :-/ I am trying to create multiple output files while reading a single input file. The multiple files will be created based on the value in the first field. My set1 contains 1,2,3,2,1,3. That is Field1 values. My multimap contains the other fields (field2 and field3). Now what I …

0
71
Member Avatar for Web_Sailor

Hi.. How do I skip the first line of a text file. I am not using getline() so I think I cannot use ignore() function. Is there any other way to ignore first line ? [CODE] ................. FILE *in; char line[1000]; char *token; in = fopen(argv[1],"rt+"); if( in == NULL) …

Member Avatar for Web_Sailor
0
8K
Member Avatar for Web_Sailor

suppose I have a file like below and I would like to create 3 output files based on my first field .. .i.e, 1 /2/3. Thats means 3 lines will go to the three files [CODE] 1 AAAAAA BBBBBB CCCCC 2 DDDDDD EEEEEE FFFFF 3 GGGGGG HHHHHH IIIII 2 copy …

Member Avatar for csurfer
0
228
Member Avatar for Web_Sailor

Hi I was trying to do a type checking in my input file while reading it. I am getting some compile time errors. Compile time error report is :- [CODE]NEW.cpp:26: error: invalid conversion from ‘char*’ to ‘int’ NEW.cpp:26: error: initializing argument 1 of ‘int isdigit(int)’ [/CODE] [CODE] Line 26 is …

Member Avatar for Web_Sailor
0
238
Member Avatar for Web_Sailor

Hi, I was wondering if there is any way to get the largest size of a multimap key / value. I mean something like this:- if there are 4 values in a multimap:- [CODE] my name is web_sailor [/CODE] Suppose I want to get the maximum size key / value. …

Member Avatar for Web_Sailor
1
1K
Member Avatar for Web_Sailor

Hi.. How do I check the data type in an input file ? Suppose my text file looks like this. Tab separated :- [CODE] 123 456 ABCD 789 890 EFGH 298 764 IUHJ [/CODE] Now I read the file like char or string in my while loop using getline. So …

Member Avatar for Web_Sailor
0
142
Member Avatar for Web_Sailor

Hi I was trying to count rows and columns in a tab delimited flat file. Like here in example below i should be able to detect automatically the no of rows and columns. So I should get 5 columns and 6 rows. Something like that. [CODE]one two three four five …

Member Avatar for Web_Sailor
0
138
Member Avatar for Web_Sailor

Hi I have written a program in c++ and I feel that it is a bit slow for very large datasets like > 1GB. Well I am not that confident in char* since I have just started coding in c++. So can anybody help me to make it more efficient …

Member Avatar for dkalita
0
145
Member Avatar for Web_Sailor

I am able to build a logic which does exactly how I want it to work but when I add more records there are some problems in flagging. Here is the example:- when my input is : [CODE] mymm.insert(pair<char,int>('a',50)); mymm.insert(pair<char,int>('b',100)); mymm.insert(pair<char,int>('b',150)); mymm.insert(pair<char,int>('b',200)); mymm.insert(pair<char,int>('c',250)); mymm.insert(pair<char,int>('c',300)); mymm.insert(pair<char,int>('d',300));[/CODE] output is correct :- [CODE]single …

Member Avatar for dkalita
0
122
Member Avatar for Web_Sailor

Hi, I am used to array of hashes in perl. So I was trying to do something like that in c++. Suppose I have created an array and now I want to store multimap in it. How can I do that ? I need to get some clues about this. …

Member Avatar for Web_Sailor
0
169
Member Avatar for Web_Sailor

Hi.. Suppose I have a multimap like below [CODE] multimap<string, int> m; m.insert(pair<string, int>("a", 1)); m.insert(pair<string, int>("c", 20)); m.insert(pair<string, int>("b", 3)); m.insert(pair<string, int>("b", 4)); m.insert(pair<string, int>("a", 5)); m.insert(pair<string, int>("b", 6)); [/CODE] I want to print a output flags for first element, middle element and last element for multi map. Like …

Member Avatar for Web_Sailor
-1
183
Member Avatar for Web_Sailor

Hi, I have done a lot of regex in perl and feel like in no mans land in c++ :) Well I want to parse a tab delimited file and want to print specific fields as per my needs. One more thing the input file may not be sorted and …

Member Avatar for iamthwee
0
249
Member Avatar for Web_Sailor

Hi, I am trying my hands on Java Regex. Here is my program below with the description of what I require it to do actually. The thing is that this MyKeyword May occur multiple times in a file. Also My program works for a file like this:- [CODE](\\S+)<tab>MyKeyWord<tab>(\\S+)<tab>(\\S+) (\\S+)<tab>MyKeyWord<tab>(\\S+)<tab>(\\S+)[/CODE] but …

Member Avatar for masijade
0
109
Member Avatar for Web_Sailor

Hi, I am trying to print a String value like this but still not able to get it,. my method is like this:- [CODE] Class1 { public String mystring; public void mymethod(){ mystring = ""; } //Then I am setting the value of mystring in other method like this:- public …

Member Avatar for Godstryke
0
94
Member Avatar for Web_Sailor

Hi, I am having problems in accessing the value of a string variable (string1 here). It is working in one way when i put it inside constructor:- [CODE] public class Demo1 extends JFrame implements ActionListener, ItemListener public string string1; Demo1 { Action a1 = new AbstractAction("Some Action") { public void …

Member Avatar for Thirusha
0
92
Member Avatar for Web_Sailor

Hi, I want to convert a Treepath into a String so that I can use it for IO operations ... How can I do it ? Suppose I have a Treepath variable like this:- [CODE]TreePath path = m_tree.getPathForLocation(x, y)[/CODE] Thanks in advance

Member Avatar for JamesCherrill
0
94
Member Avatar for Web_Sailor

I donno why I am not able to get the popup for this JTree. This tree is found almost in all tutorial ? [CODE]import java.awt.*; import java.awt.event.*; import java.io.*; import java.util.*; import java.text.SimpleDateFormat; import javax.swing.*; import javax.swing.tree.*; import javax.swing.event.*; public class FileTree2 extends JFrame { public static final ImageIcon ICON_COMPUTER …

Member Avatar for Web_Sailor
0
188
Member Avatar for Web_Sailor

I was trying to read a file and print it to the JTextArea in other class. My program complies but its not printing the file content in JTextArea. Here is my MouselIstener Code [CODE]class MySaveMouseListener extends MouseAdapter { MyClass1 myobj = new MyClass1(); public javax.swing.JTextField myjtext = myobj.getTextField(); public String …

Member Avatar for JamesCherrill
0
147
Member Avatar for Web_Sailor

Hi, I need to create a program in java that will create versions for the different text files I upload to my specific folders. Like suppose:- 1) I have downloaded 1st batch of files. Version control software will create some version ID for them based on date. 2) When I …

Member Avatar for JamesCherrill
0
88

The End.