- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 3
- Posts with Upvotes
- 3
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
23 Posted Topics
I am using the openssl seal and open functions to store some encrypted data for later retrieval. After the data is sealed, I store the envelope and envelope key on the server along with the public and encrypted private key. Later, a user will enter the password which decrypts the …
So this is my first attempt at a GUI in swing, and so far things seem to have been going somewhat smoothly. However I am un-able to update a JList named objectsL. I imagine this is because I have already added it to a panel? So, now Im am very …
I am attempting to the compile the source at this [page](http://sourceforge.net/projects/sserver/files/). After resolving the dependencies, I am able to configure successfully, however make does not execute without errors. I was under the impression that a successful configure was meant to ensure a successful make, but since this does not seem …
What I am trying to do is the following: [CODE] ReceiptBag zero("zero"); ReceiptBag one("one"); ReceiptBag bags[2]; bags = &zero; (bags+1) = &one;[/CODE] Of course that is not valid code. My goal is to be able to reference the same zero or one object by using its variable name or by …
Well what you have looks fine, I just don't see any code which would take the information you got from the database and make it visible to the user... at least not in your btnGetAScheduledEvent_Click method. Once you call the GetEventByID method of currentEvent, currentEvent should have data in its …
You can read a file with code that looks like this: [CODE] String infile1 = @"c:\ipAddresses.txt"; StringBuilder currentWords = new StringBuilder(); StreamReader sr = new StreamReader(infile1); try //read the file into lines of data { do { currentWords.AppendLine(sr.ReadLine()); } while (sr.Peek() != -1); } catch { MessageBox.Show("File [" + infile1 …
The user does not need to enter data. But you will have to create 4 Book objects through code. These 4 book objects will test your Book class. Otherwise, you are not quite on the right track. It seems you don't quite understand exceptions. You can go ahead and delete …
If all you are really trying to do is replicate the directory structure of the release folder to some specified directory, that can definitely be done. Never done it in c#, but it looks like the File class has functions which will solve most of your problems: [URL="http://msdn.microsoft.com/en-us/library/system.io.file.aspx"]http://msdn.microsoft.com/en-us/library/system.io.file.aspx[/URL]
Your form class should look more like this: [CODE]using System; using System.Collections; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace WindowsFormsApplication1 { public partial class Form1 : Form { ScheduledEvent currentEvent; public Form1() { InitializeComponent(); //currentEvent is going to be our scheduledEvent object which will …
[CODE]public partial class Form1 : Form { public Form1() { InitializeComponent(); Child c = new Child(); c.MyEventHappened += new Child.MyEvent(c_MyEventHappened); } void c_MyEventHappened(int i) { textBox1.Text = "My event happened"; } } class Child { public delegate void MyEvent(int i); public event MyEvent MyEventHappened; public Child() { } public void …
What I would like to do is get an integer index of a TextPointer, as if the flowDocument was just a normal string. So basically I want to replicate the indexOf method of String, but for a flowDocument instead. I currently have this partially working solution: [CODE]private int GetIntFromPointer(TextPointer mark, …
All I am really trying to do is create a textBox where non-contiguous segments of text can be highlighted at any given time. From the experimenting I have done, it would appear that the System.Windows.Controls.RichTextBox is a good fit for this when customized slightly. Extending RichTextBox and getting multiple pieces …
So I am writing a voice activated recording program, and one of the things I would like it to do is plot the current and past volume level on a JPanel. Write now I am simply reading one byte from the audio buffer, converting it to an int, taking its …
When is it more efficient to store the value of a calculation than perform that calculation 2 or more times? I have always been under the impression that performing a simple arithmetic calculation two or three times is faster than instantiating a variable to hold the value of the calculation. …
So I have a couple pieces of hardware which I don't need anymore. -Onkyo TX-8511(B) receiver -Sony CDP-CX355 -Creative L3500 speakers -HP deskjet 930c -HP Officejet 5510 -Nostromo n50 speedpad (PC) -Logitech MOMO force steering wheel & pedals (PC) -Lenmar Camera tripod -Sony 1Gb memory stick duo w/ memory stick …
The only experience I have in programming is with Java, and I am somewhat experienced in that. However, I have only just touched the surface of javascript by implementing google maps into a page of mine. My question is in regards to what I should keep in mind when creating …
Hmmm, my guess would be that you either pass s as another parameter or instantiate s outside of the method. If you choose the latter you will have to reset s once length = 0. That's my guess anyway, hope it helps.
A friend of mine and I are taking an external computer science test. While studying the review it has become apparent that some of the syntax presented is quite unfamiliar. Here are a few examples: [INLINECODE]Stack<Integer> s = new Stack<Integer>();[/INLINECODE] For this line of code what exactly is the purpose …
I was going through the questions in my study guide for computer science, and I noticed a few blocks of code that contained syntax that I had never used before. My first question is on the ^ operator. What exactly does this do? My second questions is on the use …
As for learning swing, try this page: [URL]http://java.sun.com/docs/books/tutorial/uiswing/TOC.html[/URL]
I've never actually ran a CLI based program outside of bluej. And after exporting one of my programs to a jar, I noticed I was not able to get any results when double clicking the jar. So, I'm guessing CLI based programs are run by a different method, or require …
I think you may be best off using KeyboardReader to take input. And you definitely have to use Ancient Dragon's suggestion for the bubble sort.
Yeah the File Class should have all the methods that you would need. [URL]http://java.sun.com/j2se/1.3/docs/api/java/io/File.html[/URL]
The End.
kimbokasteniv