- Strength to Increase Rep
- +3
- Strength to Decrease Rep
- -0
- Upvotes Received
- 10
- Posts with Upvotes
- 8
- Upvoting Members
- 5
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
Programming
- PC Specs
- Amazing
Chaps, I wonder if you can give me a hand with this. Here's the brief: "Create a program that draws 10 random filled shapes in random colors, position and sizes. Method paintcomponent should contain a loop that iterates 10 times. In each iteration, the loop should determine whether to draw … |
|
Hello, I'm trying to connect some C# code to a Microsoft TeamFoundation Server, but I can't seem to find any documentation for Visual Studio 2015 (Typical Microsoft?) But I did find something for Microsoft Visual Studio 2013. https://msdn.microsoft.com/en-us/library/bb286958 It turns out that they have broken the old way (2013 way) … |
|
I found this game on another forum and found it really very interesting lets start it here :) hope everyone will enjoy it Make a wish, and let the next poster give you some bizarre result based upon your wish. Example: I wish I had a million dollars. Reply: "You … |
|
Okay so i am trying to code out a canvas that has two complex objects(I have MainCanvas , Human, Dog) and I want to make a piece of the complex object move when i drag it, but i dont know if i need to put in another moving method in … |
|
Hi, I'm new to php, but I'm trying to implement a basic user system on my site. I'm having some trouble keeping a PHP session when I change pages (or something like that) where the logged in varible (`id`) isn't showing up as being defined, so a logged-in user doesn't … |
|
Hi everyone, I have made a desktop application in NetBeans IDE 7.3. In the dist folder ,there is my project's executable jar file. But by double clicking it is not opening. Can anybody make suggestions about it, Thanks in advance |
|
Hi there What are the various GPL's that can be used with C? I am currently learning SDL and I know of another, Allegro. Just trying to fine tune as well as learn more about C, so I am programming games using C.On a bright sunny day, it would definitely … |
|
Hi, I've been trying to send a `BufferedImage` through a socket. I can get it to work once, but when I try to get another screenshot, it fails. The server usually gives me a `java.lang.IndexOutOfBoundsException` at `ImageIO.write(capture, "png", client.getOutputStream());` Server Code: //already told server i'm expecting an image try { … |
|
Hi, i'm making a java program, and I started making the gui with a `JTextArea`, and tried to add a font (`Consolas`) and It crashes with a "divide by 0" error. It works fine on windows, and if you comment out the `setFont` line.. import javax.swing.*; import java.awt.Color; import java.awt.Font; … |
|
I was just wondering if someone could maybe set me on the right track or tell me exactly how to do what I am about to ask. I have a bunch of answers in a notepad file, such as TFTABCD (going downwards, a letter per line), how can I make … |
|
Please am new to java and i need an assistant on loading hexadecimal from a textfile and converting it into binary(Loader class) then the binary will be kept in another class(memory class). then the binary will be forwarded to another output file. |
|
My friends are keep telling me "Use debugg idiot !" I found out that for a code over 200 lines is very important. But i want to debug only a specific piece of code. And to review the results of a variable while the code is "executing" . Is this … |
|
Hi everyone. I am currently doing small exercises on classes. Suppose you have 2 classes: Person (superclass) and Student (subclass) the class Student is extending the class Person. When creating new objects of type Student, when do use the following options: option 1: student x= new student( ..); option 2;( … |
|
Hey guys, can anyone tell me how I could use randomaccessfile to read in a txt file and copy the content to a tree? Also how to then do the opposite and write newly changed nodes from the tree onto the text file? It's pretty much like creating a save … |
|
Hi, i'm trying to use an `AffineTransform` to transform a point to pixels on a 400x400 canvas. What kind of transform would you use? For example: given the points (-1, 1) --transform--> (0, 0) (pixels) (1, 1) --transform--> (400, 0) (pixels) (-1, -1) --transform--> (0, 400) (pixels) (1, -1) --transform--> … |
|
i need to make the Print JMenuItem to open a printdialog box when clicked but i dont know how to make it can u help me pls p.addActionListener(new ActionListener() heres the code can u add the printdialogbox i searched but i cant put it on the program import javax.swing.*; import … |
|
Okay, so it's been awhile since I've posted on here, but I am having trouble figuring this problem out. So, students need to be assigned randomly to experiments. Experiment 1 has 5 participants, 2 has 10 participants, and 3 has 20 partcipants. Every iteration through the loop, it asks for … |
|
package wow; import java.io.PrintStream; import java.util.Arrays; import java.util.Collections; import java.util.List; import java.util.Scanner; public class Wow { String question; String answer; int correct=0, number=15; Wow[] quizBank = new Wow[15]; List<Wow> quizList = Arrays.asList(quizBank); public static void main(String[] args) { Wow bank = new Wow(); bank.bankList(); bank.askQuestion(); } //end main public void … |
|
>equal button wont work =( /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package calculator; /** * * @author Gatongay Famiglia */ public class NewJFrame extends javax.swing.JFrame { double plusminus; double firstDouble; double secondDouble; double totalDouble; int plusClick; int … |
|
I made a mini compiler to help compile C code easier on linux machines with bash #!/bin/bash function project_menu { header echo "Edit project: $1" dir echo "1) New file" echo "2) Edit file" echo "3) Compile file" echo "4) Run Project" echo "5) Compile & Run Project" echo "6) … |
|
HI all, I am a bit confused about right justifying and formatting strings and numbers in general, and I was wondering if somebody can clarify this for me please. Ok, so let's take an example: // Fig. 7.2: InitArray.java // Initializing the elements of an array to default values of … |
|
`Hello and thanks for reading my post. I am trying to develop a program that will select a file for opening based on user input. I did have this code working at one point but no longer. I am a beginner at C++ so I am trying to learn from … |
|
Hello everyone, I am trying to make a chat application. For this i have made two programs-SERVER and CLIENT. But these are connecting. import java.io.*; import java.net.*; public class SimpleServer { public static void main(String args[]) { ServerSocket s=null; try { s=new ServerSocket (6666); } catch(IOException e) { e.printStackTrace(); } … |
|
hi.. I'm trying to read a .docx file using apache poi api methods.. But i'm facing a few problems.. Can anyone suggest me the changes to be made in this code?? package apiole; import java.io.*; import org.apache.poi.xwpf.extractor.XWPFWordExtractor; public class Apiole { public static void main(String[] args) throws IOException { File … |
|
In a Telnet program, the output of command doesnt fit the screen. How can i see that? |
|
Hello. I wrote a program and loaded a lot of data : dir,files,serialized frame etc. I used it and found updates to add so I changed the class so to speak by making the changes. Now of course the same serialized frame will not open so I can not access … |
|
For example let's say we have the property called Customer that returns a value of name String name; <== Global Variable public String getName() { return name; } public String setName(holdingName) { name=holdingName; } and a constructor called Match public FullName(String realName) { holdingName = realName; } Can I do … |
|
So here's my code. I had to do 3 constructor and 2 division methods. I have finished the 3 constructors. My question is on the division, where :(1) I have to divide a fraction by an integer and return, (2)divide an integer by a fraction and return. public class IFraction … |
|
hi everyone..can u please help me with my project? server to client quiz using java... please.. i really need it.. |
|
Hello Im having problems removing the ALT+0160 character from a string. iswhitespace doesnt seem to work. How can I manually remove it? |