Search Results

Showing results 1 to 40 of 131
Search took 0.01 seconds.
Search: Posts Made By: degamer106
Forum: C# Oct 31st, 2008
Replies: 1
Views: 579
Posted By degamer106
Let me explain what I'm supposed to do first.

My assignment is to take text from a dictionary entry and display it in my client area. This dictionary entry contains characters like \ " ' and...
Forum: C# Sep 22nd, 2008
Replies: 5
Views: 921
Posted By degamer106
Well, the code does compile. It's just that when I maximize or minimize the window or drag the sides of the window and let go, the rectangle, which is centered, doesn't get redrawn. I don't know if...
Forum: C# Sep 22nd, 2008
Replies: 5
Views: 921
Posted By degamer106
Ok, ty. Now, how do I make the syntax work? It's not doing what it's supposed to.
Forum: C# Sep 21st, 2008
Replies: 5
Views: 921
Posted By degamer106
Hi,

In on of the lecture notes that was given to me by my prof, I was told that setting the ResizeRedraw value to true would allow whatever I drew on the form to be, well, resized. However, it...
Forum: Java May 8th, 2008
Replies: 0
Views: 422
Posted By degamer106
Ok, I looked in the API and was able to create the scroll bars. Problem is, I can't make them scroll, even though the parameters I passed in explicitly said to have the bars around. What I'm trying...
Forum: Java May 8th, 2008
Replies: 6
Views: 2,854
Posted By degamer106
I have a bunch of text and combo boxes. For example,

Day: [Day Combo Box]
Date: [Date Combo Box]
AMPM: [AMPM Combo Box]

I used BoxLayout.Y_AXIS to align them vertically but the boxes seem to...
Forum: Java May 8th, 2008
Replies: 6
Views: 2,854
Posted By degamer106
Ok I got it.

A question related to layout managers though: I know BoxLayout tends to "stretch" the components to make them fit inside a panel. How do I modify the panel's dimensions?
Forum: Java May 8th, 2008
Replies: 6
Views: 2,854
Posted By degamer106
When I add buttons to a panel, the buttons seem to take a huge amount of space. How do I get rid of the space? For example:


import java.awt.*;
import java.awt.event.*;
import javax.swing.*;...
Forum: Java May 8th, 2008
Replies: 5
Views: 547
Posted By degamer106
All right I managed to get it. Thanks a bunch.

I'm still a little unclear about some of the fields in Calendar/GregorianCalendar though. I had to find out the hard day that decrementing...
Forum: Java May 8th, 2008
Replies: 5
Views: 547
Posted By degamer106
Thanks, it worked perfectly.

I have another question though: Given some date, how do I find out what the date for the first day of the week is? For instance,


GregorianCalendar cal = new...
Forum: Java May 8th, 2008
Replies: 5
Views: 547
Posted By degamer106
Suppose I have a week that begins with Sunday and ends with Saturday (so UMTWThFS). How do I get the date for each day of the week if, lets say, we use this month and year? I looked in the API but...
Forum: Java May 6th, 2008
Replies: 5
Views: 629
Posted By degamer106
hmmm I tried that as well and I still don't get anything in the frame.

I can view each component separately if I only have one added to the frame, but not both. Does it have something to do...
Forum: Java May 6th, 2008
Replies: 5
Views: 629
Posted By degamer106
I tried both. Nothing gets drawn to the panel.

frame.setLayout(new FlowLayout());

Can JComponents be nested?
Forum: Java May 6th, 2008
Replies: 5
Views: 629
Posted By degamer106
I'm having a little trouble trying to nest two component classes (both extend JComponent) together. When I create the frame in my tester file, instantiate each class, and try to add both of them to...
Forum: Java May 4th, 2008
Replies: 2
Views: 383
Posted By degamer106
1) How do I tell if I have java 5 or java 6 installed?

2) I have my program commented using javadoc syntax. However, when I run javadoc from the command prompt and then open the html files, I do...
Forum: Java Mar 20th, 2008
Replies: 1
Views: 387
Posted By degamer106
The problem is that I have an ArrayList which stores objects that contain a Shape (actually a Composite shape like a Car) and (x,y) coordinates. Suppose I'm supposed to retrieve each object and the...
Forum: Java Mar 20th, 2008
Replies: 3
Views: 603
Posted By degamer106
Hi,

I changed my add method so that it returns a JButton and it works fine. One thing I forgot to mention though was that the Box class was supposed to be a container of Buttons (each button has...
Forum: Java Mar 20th, 2008
Replies: 3
Views: 603
Posted By degamer106
I'm trying to put all the buttons (and their icons) into a single class. However, when I try to draw just one button in a frame, it doesn't show up. I can get it to be displayed if I instantiate...
Forum: Java Dec 18th, 2007
Replies: 1
Views: 1,297
Posted By degamer106
I'm stuck trying to figure out how to update the text field after I click on the button in the GUI. The number of roaches is supposed to be updated each time I click, but I can't seem to find the...
Forum: Java Dec 3rd, 2007
Replies: 8
Views: 1,211
Posted By degamer106
c:\fall2007\test\Homework\Due Dec 5> javac WorkerTester.java

The WorkerTester.java file as well as all the other files associated with it is located in the directory, so I don't think I have to...
Forum: Java Dec 3rd, 2007
Replies: 5
Solved: Interfaces
Views: 802
Posted By degamer106
ohhh, ok ty. I wasn't aware of the instanceOf.
Forum: Java Dec 3rd, 2007
Replies: 8
Views: 1,211
Posted By degamer106
Still getting the same problem.
Forum: Java Dec 3rd, 2007
Replies: 5
Solved: Interfaces
Views: 802
Posted By degamer106
eh, I just went through my class notes again and figure it out.
Forum: Java Dec 3rd, 2007
Replies: 8
Views: 1,211
Posted By degamer106
This is a relatively simple program but for some reason, I can't compile it. I'm pretty sure the code is correct and working.

My compiler keeps saying that it cannot find a constructor matching a...
Forum: Java Dec 2nd, 2007
Replies: 5
Solved: Interfaces
Views: 802
Posted By degamer106
See this is what I'm confused about: how do I know what I'm going to compare given that the compareTo() method is supposed to be able take any type of object argument? Different data types added to...
Forum: Java Dec 2nd, 2007
Replies: 5
Solved: Interfaces
Views: 802
Posted By degamer106
So we're supposed to modify this class, which implements Comparable, so that it accepts any type of object. The Comparable interface contains the method signature for compareTo, which I need to...
Forum: Java Nov 30th, 2007
Replies: 9
Views: 1,941
Posted By degamer106
I did something along the lines of what mickinator posted up. Thx for the replies.
Forum: Java Nov 28th, 2007
Replies: 9
Views: 1,941
Posted By degamer106
thx for the reply.

The goal of this problem was for us to practice handling exceptions. I actually managed to solve the problem, though my solution was rather messy. I ended up using 2 scanner...
Forum: Java Nov 28th, 2007
Replies: 9
Views: 1,941
Posted By degamer106
So here's the problem



Here's what I'm trying to do.

while (flagA)
{
try {
while (flagB)
Forum: Java Oct 24th, 2007
Replies: 2
Views: 4,445
Posted By degamer106
Heya, thanks for the reply but I already finished it =P.
Forum: Java Oct 24th, 2007
Replies: 2
Views: 4,445
Posted By degamer106
Ok, so my goal is to draw a rectangular spiral in java. So far, I've created the Spiral Viewer class and the SpiralComponent but I'm not quite sure how I would implement the SpiralGenerator class. ...
Forum: Java Oct 24th, 2007
Replies: 2
Views: 777
Posted By degamer106
I'm supposed to design a method that takes in a double value and translates the value into the closest letter grade. 4,3,2,1,0 denote A, B,C,D,F, respectively. + increases a grade's numerical value...
Forum: Java Oct 10th, 2007
Replies: 3
Views: 1,175
Posted By degamer106
I'm trying to get this ISBN checker to work. I've used the formula from this site (http://mathworld.wolfram.com/ISBN.html) and also this site...
Forum: Assembly Oct 6th, 2007
Replies: 1
Solved: Quick question
Views: 823
Posted By degamer106
nvm i figured it out -.-
Forum: Assembly Oct 6th, 2007
Replies: 1
Solved: Quick question
Views: 823
Posted By degamer106
I was a little confused by the brief explanation that my Assembly teacher gave on pipelining. I don't think I really understand the process that well...

1) In a 4-stage non-pipelined processor,...
Forum: Java Oct 3rd, 2007
Replies: 4
Views: 940
Posted By degamer106
Thank you, that cleared some confusion up for me. That helped me finish this Bar Chart program.

However, there's one thing I don't understand from here and that is the Graphics2D.

In the...
Forum: Java Oct 3rd, 2007
Replies: 4
Views: 940
Posted By degamer106
One of the things that's been confusing me so far is why we have to override the paintcomponent() function after extending it. For example, this program draws an ellipse:

import java.awt.Color;...
Forum: Java Sep 26th, 2007
Replies: 1
Views: 5,126
Posted By degamer106
Hi, I need help with drawing an ellipse that is bounded by the window it is drawn in. I have to use the Ellipse2D API.

Maybe I'm overlooking something but I can't seem to get the circle to fit...
Forum: C++ Mar 22nd, 2007
Replies: 3
Views: 824
Posted By degamer106
ok cuz I thought that I could just directly access protected member data in the base class through an instance of the derived class (the uncommented part doesn't work). I'm not sure why that is...
Forum: C++ Mar 21st, 2007
Replies: 3
Views: 824
Posted By degamer106
If I do a public inheritance and the member data in the base class I'm deriving from is protected, is the only way to access the data in the base class via member/friend functions of the derived...
Showing results 1 to 40 of 131

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC