Posts
 
Reputation
Joined
Last Seen
Ranked #411
Strength to Increase Rep
+8
Strength to Decrease Rep
-2
100% Quality Score
Upvotes Received
19
Posts with Upvotes
18
Upvoting Members
11
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
13 Commented Posts
~112.54K People Reached
About Me

easy going, don't care about much, keep a small group of friends, can get along with a lot of people, unless they bug me, i like food especially pasta, i self taught java then took a class that i aced, i am in the process of teaching myself C++, i am…

Interests
Programming building things, and studying science
PC Specs
Processor: AMD Turion 64 x2 mobile tl60 2ghz ram: 3gb OS: 32 bit windows vista service pack 1 hard drive:…
Favorite Tags

200 Posted Topics

Member Avatar for sciwizeh

Hello All, I'm trying to write a simple html editor that will highlight tags, and it does, but if the user types the caret jumps to the very end of the document, how can I stop this from happening? here's my code: [CODE=java] import javax.swing.*; /** * Main frame for …

Member Avatar for reguieg
0
349
Member Avatar for sciwizeh

I'm porting some code from a book about ray tracing from C++ to Java, because I like java better and it seems like a decent way to learn how the code works. I ported the code for the Torus Primitive and all seemed well, until I tried to view it …

0
344
Member Avatar for loken

it does depend on the requirements for the game, but if you need real time 3D rendering, your on the right track with C++ and OpenGL. Be sure to have a good knowledge of both before starting something big though.

Member Avatar for cherqeza
0
1K
Member Avatar for ~s.o.s~

i bought the [URL="http://www.amazon.com/Java-All-Reference-Dummies-Computers/dp/0470124512/ref=pd_bbs_sr_1?ie=UTF8&s=books&qid=1215757097&sr=8-1"]Java All in One Desk Reference for dummies by doug lowe and barry burd[/URL] when i first started learning java, it covers all of the basics and also includes a "minibook" on swing, web programming, and databases it helped me a lot

Member Avatar for ~s.o.s~
46
6K
Member Avatar for sciwizeh

I have user login info stored with JPA along with a room. The room has a list of users, the users have a transient field, which is where my problem is coming in. @Entity public class User{ //some other stuff ids and such @Id @GeneratedValue(generator = "increment") @GenericGenerator(name = "increment", …

Member Avatar for sciwizeh
0
282
Member Avatar for sciwizeh

I'm trying to list currently online users on a pet project I'm working on. I've found a few ways to do it, but I'm having difficutly getting the one I chose to work properly. The basic idea was to use an HttpSessionBindingListener on the users information to add it to …

Member Avatar for sciwizeh
0
198
Member Avatar for sciwizeh

Ok, so I'm working on a web-project, I connected a custom hanlder to the root Logger in `contextInitialized()` of a ServletContextListener: @Override public void contextInitialized(ServletContextEvent sce) { Logger def = Logger.getLogger(""); Handler hand = new DatabaseLoggingHandler(); hand.setLevel(Level.WARNING); def.addHandler(hand); } which looks like: import java.io.PrintWriter; import java.io.StringWriter; import java.util.logging.LogRecord; import java.util.logging.Logger; …

0
256
Member Avatar for sk8ndestroy14
Member Avatar for sciwizeh

I made this minesweeper game earlier this summer. It shows many things, including: array use, 1D array to 2D array, gridlayout, changing the way a JButton works depending on mouse button used, floodfill, loops, GUI. slightly long, 382 lines, can probably be condensed. There is one known bug that i …

Member Avatar for sciwizeh
2
858
Member Avatar for darlineth

please use code tags [*code=java*][*/code*] without the asterisks (*) what is you problem, actually making it calculate? if so, i have a thread on the subject, that has a solution at the end: [URL="http://www.daniweb.com/forums/thread128116.html"]here[/URL] the second page has the answer to that. personal preference maybe, but i don't like the …

Member Avatar for darrylnuyda
0
2K
Member Avatar for sciwizeh

Hello All, So I'm working on hand-coding a forum-like website, just for the experience, and I want to have a similar feature as you'll see above where a thread will have its ancestors linked: "Web Development > JSP > Parent traversal of tree-like Structure" I have several beans for different …

Member Avatar for sciwizeh
0
278
Member Avatar for sciwizeh

Hello, In trying to port some Java code to C++ I'm disliking the std::stream's lack of copy constructors. I know exactly what the problem is, but I don't know what I can do about it. I have a dangling reference to a stream as a member variable of a class. …

Member Avatar for vijayan121
0
2K
Member Avatar for sciwizeh

My project compiles fine, but when running a push_back on a vector, I'm getting an access violation when the vector attempts to resize itself. I have lots of code, but hopefully I can boil it down to just relevant classes. I am sorry about the HUGE amount of code, but …

Member Avatar for sciwizeh
0
6K
Member Avatar for sciwizeh

Hello all, I have not tested the code I'm posting here to see if it compiles, but I have an issue in a large codebase and I believe that this should be the simplest program to demonstrate the issue; class base { public: shared_ptr<base> clone()=0; }; typedef shared_ptr<base> baseptr; class …

Member Avatar for sciwizeh
0
20K
Member Avatar for sciwizeh

Hello, I have some java code I want to port to C++, and first class in the Heirarchy has me stumped. I'm trying to port a simple parsing framework as an exercise to figure out how it works internally, and almost everything in the framework requires, uses, or is `PubliclyClonable` …

Member Avatar for sciwizeh
0
434
Member Avatar for sciwizeh

Hello all, I'm having trouble getting google to give me anything useful because I don't know the name of the algorithm I'm looking for. ![line_types](/attachments/large/1/line_types.png "line_types") This image shows different ways of connecting two points together, A is just plain lines, C is bezier curves but what is the algorithm …

Member Avatar for firdousahmad
0
578
Member Avatar for lesliebielski

There are several problems in this code, the `if(m == 3);{` is, while not syntactically wrong, almost certainly will not do what you expect it to do. You should use remove the semicolon. At the moment if m equals three an empty statement will execute, and the code in the …

Member Avatar for lesliebielski
0
199
Member Avatar for Chrisstine

What code do you have? What specific issues are you having? No one here will do an assignment for you. If you have specific issues we will help you find the problem, but you have to show effort.

Member Avatar for sciwizeh
0
121
Member Avatar for alfredarthur

The reason the old rectangle dissapears is because the `super.paintComponent()` clears the foreground with the background color, it's the same as calling `gr.setColor(getBackground()); gr.fillRect(0,0,getWidth(),getHeight());` in the beginning of your paintComponent() method. Every time you call super.paintComponent() it clears the display. when you don't call super.paintComponnt() it never has a chance …

Member Avatar for sciwizeh
0
1K
Member Avatar for singeryoon

Your listener in the class A with the button would have to gain access to the panels in class B, because they are private you would have to add an accessor method (package or public access) in order to gain access to the panels. you would also have to make …

Member Avatar for sciwizeh
0
2K
Member Avatar for kaushik259106

i have done something like this before i used it for doubles. TYPE_WRAPPER.parseTYPE() will return a number of type TYPE. if you need a boolean value of whether it is or is not a number you can do this: [code=java] public boolean isIntNumber(String num){ try{ Integer.parseInt(num); } catch(NumberFormatException nfe) { …

Member Avatar for ScottyKnows
0
1K
Member Avatar for sciwizeh

Hello, thought I'd ask before getting too deep into code to make sure I understand this properly. As described in the Gamma et. al. book the Visitor Pattern looks something like this: interface Visitor{ public void visitX(X x); public void visitY(Y y); public void visitZ(Z z); } interface Visited { …

Member Avatar for JamesCherrill
0
1K
Member Avatar for sciwizeh

I'm working on a Graph based Image editor. My current plan is to have Nodes of the graph be operations on the image, an operation will take a number of input buffers and manipulate them in some way (be it invert a single input, composite two inputs, draw a rectangle …

Member Avatar for ~s.o.s~
0
175
Member Avatar for sciwizeh

So this is mainly a Design/Clean Coding sort of question, I know I've read something about this previously but I can't find it, I believe it's in one of my reference books on C/C++ so it wouldn't likely be useful to my predicament. This question includes a lot of Java …

Member Avatar for sciwizeh
0
253
Member Avatar for Scuppery
Member Avatar for FALL3N

It is not easy to change the shape of a button. [This thread](http://stackoverflow.com/questions/5654208/making-a-jbutton-invisible-but-clickable) has an answer that shows how to make a button invisible, as you want the image without the border you probably only need the `button.setBorderPainted(false);` call

Member Avatar for sciwizeh
0
152
Member Avatar for Nicky1224

for (int x = 0; x < studentsProcessed*10; x++) { index = studentsAnswers.indexOf(","); String letters = studentsAnswers.substring(0, index); System.out.println("Letters: "+letters); positionStudentAnswers = " " + letters.charAt(x); letters.replaceAll(letters, ""); System.out.println("Student answers: "+positionStudentAnswers); postionofmemo = " " + letterMemo.charAt(x); System.out.println("MEMO ANSWER: "+postionofmemo); if (postionofmemo.compareTo(positionStudentAnswers) == 0) { marks ++; } System.out.println("Marks for: …

Member Avatar for sciwizeh
0
162
Member Avatar for sciwizeh

Hello all, been a while since I've asked a question. I'm working on a project just to practice and for fun and I've run into a snag. I'm working on a painting type program and I'm trying to get a generic Buffer class for the images so I can use …

Member Avatar for sciwizeh
0
2K
Member Avatar for ravsau

It's not working because your calls to `location.isXX(currentLocation);` will always return false, location has no neighboring Locations and isXX() checks it instead of current location because as JamesCherrill pointed out, the parameter is never used replacing location with currentLocation should get it working

Member Avatar for sciwizeh
0
754
Member Avatar for WH88

DOM is probably the way to go heres two links that have example source: [http://docs.oracle.com/javaee/1.4/tutorial/doc/JAXPXSLT4.html](http://docs.oracle.com/javaee/1.4/tutorial/doc/JAXPXSLT4.html) the oracle tutorial explains what's happening [http://www.mkyong.com/java/how-to-create-xml-file-in-java-dom/](http://www.mkyong.com/java/how-to-create-xml-file-in-java-dom/) just more example code, not much explanations

Member Avatar for sciwizeh
0
319
Member Avatar for chixm8_49

Do you have any code? Are you already connected to the database? If so you can use the table model to insert each row into your database: TableModel m = table.getModel(); String SQL = "insert into YOUR_TABLE ("; for(int i =0; i<m.getColumnCount()-1; i++){ SQL+="'"+m.getColumnName(i)+"',"; } SQL+="'"+m.getColumnName(m.getColumnCount()-1)+"') values "; for(int row …

Member Avatar for sciwizeh
0
486
Member Avatar for crbsathy
Member Avatar for sciwizeh

Hello all, working on an assignment for a class and I'm encountering something strange. After I'm getting a bad memory allocation exception upon exiting my program. After debugging the problem it appears to be a result of trying to make vector with negative length. The program runs fine until it …

0
89
Member Avatar for omeralper

please use code tags the last post is correct, but to answer your first question: [icode]String[] args[/icode] means that it takes an array of Strings arrays are a few more pages into the sun tutorial, and i think strings are too. off topic: i don't know why the tutorial would …

Member Avatar for hfx642
0
355
Member Avatar for ~s.o.s~

[URL="http://www.allegro.cc/"]allegro[/URL] is a marvelous 2d/3d api for c, it is c++ compatible. i believe it is cross platform, it has 2d graphics primitives, and sprites 3d manipulation and a primitive GUI capability, an active community and is well documented

Member Avatar for Serapth
4
3K
Member Avatar for sciwizeh

Hello all, My friend recently rented a server, through a site, and he wanted me to help him run it, as he has very little computer knowledge. I used SSH Secure Shell (TM) (running Windows 7), to access it, and accidentally closed the window without disconnecting. Since then I have …

Member Avatar for sciwizeh
0
175
Member Avatar for sciwizeh

Hi, it's been a long time since I've had a problem worthy of this forum, but I've got a real stumper. I've got some sockets, and after running through a get (through print writer sending a command, then an ObjectInputStream recieving an object) from the server code once, and trying …

0
73
Member Avatar for Zetlin
Member Avatar for sciwizeh

Hello all, is there simple way to check if a multimap contains a value, or am I going to have to loop through all pairs? thanks

Member Avatar for sciwizeh
0
110
Member Avatar for sciwizeh

trying to use the code from an online book to learn OpenGL. i'm using Dev-C++, because i can't find a good way to get GLUT into VS 2008 PRO without muckin about in C:\windows\system32 which i try to stay away from. (any suggestions appreciated) so this is the code: [CODE=C++] …

Member Avatar for jephthah
0
676
Member Avatar for sciwizeh

Hello All, While doing an assignment, I caused a simple program to slow to a crawl by replacing the calls to Toolkit.createImage() to ImageIO.read() and making all the Image references BufferedImage references. Those where the only changes I made to the program, and it went from running quickly to barely …

Member Avatar for kvprajapati
0
355
Member Avatar for LevelSix

your vertex variable is holding a number too high, i am trying to figure out why

Member Avatar for BestJewSinceJC
0
962
Member Avatar for Stefano Mtangoo

I've used BlueJ for a year or two, but I've also used Netbeans, and Eclipse. I voted Eclipse, because I find it easier to use and faster than Netbeans, but when I want to do something that involves JOGL, I go back to Netbeans because Eclipse doesn't have samples, or …

Member Avatar for jwenting
0
151
Member Avatar for sciwizeh

Hello I have a sample program from a book, it's not working properly, when the function [icode]d3d10createdeviceandswapchain[/icode] is called the error checking causes the program to fail, after adding a few lines of code I found that the error code isn't one of the constants that the function is supposed …

0
46
Member Avatar for Ghost
Member Avatar for Clawsy
0
190
Member Avatar for leoeroy

What exactly is your question? one thing is that your not calling any method from within main(), which would be why it doesn't do anything (if that's your problem. Another thing I notice that in your constructor, you put [icode]myfield = new SpotInField[126][94];[/icode] which will not do what I think …

Member Avatar for leoeroy
0
648
Member Avatar for sciwizeh

Hello all, I have the bluej source code in eclipse, and it compiles fine, but when I try to run it BlueJ starts fine, and then pops up an error window that says that bluej couldn't create a VM. My installed BlueJ has never given me this error before, so …

Member Avatar for llemes4011
0
158
Member Avatar for sciwizeh

Hello all, As you may know by now, from my previous posts recently, I am working on a Paint application. My question, then, surprisingly does not involve Graphics or Swing. So my question is this: I would like to be able to have a directory such as "APP_HOME\tools" or something …

Member Avatar for sciwizeh
1
135
Member Avatar for Stefano Mtangoo

I see one thing that could be a problem, [icode]getValues.nextLine()=="n"[/icode] will (should) always return false, because it compares the memory addresses, so you should replace it with [icode]getValues.nextLine().equals("n")[/icode]

Member Avatar for Stefano Mtangoo
-1
327
Member Avatar for Clawsy

That's only necessary if there are other things on the JPanel (buttons other panels etc..) The problem is that your image is null, as for why, I am not sure, but that is the reason that the dimension with img.getWidth(), and height is throwing a null pointer exception, and it's …

Member Avatar for Clawsy
0
205

The End.