Welcome, Guest
You have to register before you can post on our site.

Username/Email:
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 2,799
» Latest member: Jerrygef
» Forum threads: 856
» Forum posts: 3,643

Full Statistics

Online Users
There are currently 3 online users.
» 0 Member(s) | 1 Guest(s)
Bing, Google

Latest Threads
Looking for Adventure? Fi...
Forum: Random Discussion
Last Post: iHOMEz
11-16-2024, 09:18 PM
» Replies: 0
» Views: 457
Prettys Womans in your to...
Forum: Random Discussion
Last Post: iHOMEz
10-30-2024, 07:45 AM
» Replies: 0
» Views: 735
Prettys Womans in your ci...
Forum: Random Discussion
Last Post: iHOMEz
10-26-2024, 10:50 AM
» Replies: 0
» Views: 766
Beautiful Womans from you...
Forum: Random Discussion
Last Post: iHOMEz
10-19-2024, 02:48 PM
» Replies: 0
» Views: 862
Prettys Womans in your ci...
Forum: Random Discussion
Last Post: iHOMEz
10-06-2024, 05:00 PM
» Replies: 0
» Views: 1,031
Womans from your city - V...
Forum: Random Discussion
Last Post: iHOMEz
07-28-2024, 10:26 AM
» Replies: 0
» Views: 1,408
Supreme Сasual Dating - A...
Forum: Random Discussion
Last Post: iHOMEz
06-14-2024, 11:28 AM
» Replies: 0
» Views: 1,831
Beautiful Womans in your ...
Forum: VB.NET
Last Post: iHOMEz
06-09-2024, 09:23 PM
» Replies: 0
» Views: 1,633
Hangman in Rust
Forum: Other
Last Post: brandonio21
02-04-2018, 11:14 AM
» Replies: 2
» Views: 20,631
How to: Search files from...
Forum: VB.NET
Last Post: brandonio21
11-25-2017, 12:55 PM
» Replies: 1
» Views: 15,942

 
  Draw on JPanel
Posted by: yomarius95 - 04-10-2014, 03:55 AM - Forum: Programming Help - Replies (1)

Can someone explaine to me how to draw on JPanel?
I want to make the snake game a runnable jar.


Here is the Project archive.
https://www.dropbox.com/s/hp7ga6mce34uu1g/Snake0.jar

Thanks!

Print this item

  Help with inventory application
Posted by: jyancy2 - 04-01-2014, 01:11 PM - Forum: VB.NET (Visual Basic 2010/2008) - Replies (1)

Hello, I'm having a hard time trying to get a certain part of my code to work. I have created an inventory application that displays system info prints software specs and hardware as well, of all computers on my domain. So far I have a list-box that populates on load of all the computers on my network, and now I would like to select a computer and display all system info in one tab and software in another tab and so on. Being a newbie sucks! I have researched and researched please help. I have a class called OSINfo that I'm trying to use to get the info but Im not able to call to to the class.

Print this item

  Question
Posted by: mchfphr - 03-28-2014, 12:53 PM - Forum: Java - Replies (1)

Hey everyone,

I've firstly started programming in C, and in C there's a great website that displays all of the basic libraries you can use, and covers all the parameters and examples of usage for any basic function(method) - http://www.cplusplus.com/reference/.

Basically I'm looking for a similar website for java, I want to know about what functions can be found so I can look into the options available in Java.

Thanks in advance,
Kfir.

Print this item

  Making a random int
Posted by: mustafa6155 - 03-23-2014, 03:52 AM - Forum: Programming Help - Replies (1)

Hello I've got this code, and I hope you can help me out a little bit.
[code2=java]import java.util.Random;
public class objectIntro {

public static void main(String[] args)
{
String a = "blabla";
String b = "lala";
Random weight = new Random();
//Random rnd = new Random();
//System.out.println("The weight is: " + rnd.weight(100));
if(weight <= 55)
{
System.out.println(b + "is slimmer then: "+ a);
}else if(weight >= 80)
{
System.out.println(a + " is fatter then: "+ b);
}

}

}[/code2]

So what does not work?
I want to make the weight int. random and later it can show who is fatter/smaller.
Like the output:

The weight it: (random generated) 83
blabla is fatter then lala

please help me.

GRTZ,
- mustafa6155

Print this item

  Program That will Help School
Posted by: jonaskie231 - 02-23-2014, 08:05 PM - Forum: VB.NET (Visual Basic 2010/2008) - Replies (1)

hi Guys can you help me what program that will help my school tnx <!-- sSmile --><img src="{SMILIES_PATH}/icon_e_smile.gif" alt="Smile" title="Smile" /><!-- sSmile -->

Print this item

  Auto-generating Drop Menus from User Input
Posted by: MadManMallard - 01-26-2014, 04:56 PM - Forum: Programming Help - Replies (2)

I was hoping someone could help me with this. I am semi-experienced in coding, but I'll let you know if I don't understand something.

I want to make the drop down menus under the menu strip buttons have traits/names based on previously entered information from text boxes.

I'm trying to make a trading system for a game. So under the Trade tab, I would like it to list the names of the players that are entered manually in separate text boxes beforehand. Then, in each name, have the submenus generated by other previously entered information.

I hope this is explained well enough.

Thanks to all who reply! (If you need images, just request them)

-Blake

Print this item

  Java Programming Tutorials
Posted by: dmcnic - 01-25-2014, 10:04 AM - Forum: Your Things - Replies (1)

I thought to drop Brandon a line that his Java programming tutorials on YouTube have been recommended for a class I am taking. We were surprised when our professor mentioned that Java was "kind of" a prerequisite for the class and passed along a link to BP videos. I'm through the first 12 and am quite pleased with how they are getting me into the language after more than 15 years away from it. Between the videos and Eclipse, I have more confidence that I thought possible after just one week.

Print this item

  Java Videos on Youtube
Posted by: Alex - 01-13-2014, 02:58 PM - Forum: Request a Video - No Replies

I have been following Java tutorials on Youtube posted under BrandonioProductions channel. They are really helpful. My question is that can you, BrandonioProductions, post videos on Encapsulation,Polymorphism, Abstraction please? I watched video on Inheritance which has been really helpful to clear the concept but did not find anything related to above 3 concenpts. As a Java newbie, I want to learn all four concepts of object oriented programming.

Thanks for posting videos in Youtube.

Print this item

  Website Giveaway Program
Posted by: brandonio21 - 01-06-2014, 11:12 AM - Forum: Code Snippets - No Replies

Many of the viewers of the website giveaway video have requested that I share the source code of the program used. In order to heed these requests and ensure that everyone knows that the giveaway is fair, here is the code for the website giveaway program.

Basically, it reads from a text file containing all the comments, parses the text file for usernames, and randomly selects one of them. Any forced waiting is simply for dramatic effect and time creation.

The winner selector:
[code2=java]import java.util.Scanner;
import java.util.Random;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.io.File;
public class comments
{
private static ArrayList<String> commentList;
private static ArrayList<String> removeList;
public static void main(String[] args)
{
System.out.println("Welcome to the giveaway calculator!");
System.out.println("This is for use by BrandonioProductions for his");
System.out.println("2013-2014 website giveaway! Press <ENTER> to begin");
Scanner waiter = new Scanner(System.in);
waiter.nextLine();
System.out.println("First, gathering YouTube comments, please wait.");
for (int i = 0; i < 5; i++)
{
System.out.print(".");
rest();
}
System.out.println();
commentList = new ArrayList<String>();
removeList = new ArrayList<String>();
//First, we need to read from the file
try
{
Scanner reader = new Scanner(new File("comments.txt"));
reader.useDelimiter(System.getProperty("line.separator"));
while (reader.hasNext())
{
String line = reader.next();
if (line.contains("week"))
{
//This is a username
int ind = line.indexOf("1 week ago");
String username = line.substring(0, ind);
if (commentList.contains(username))
removeList.add(username);
else
commentList.add(username);
}
}
reader.close();
}
catch (FileNotFoundException e)
{
e.printStackTrace();
}
System.out.format("We found %d entries! Press <ENTER> to continue", commentList.size());
waiter.nextLine();
System.out.println("Removing duplicate entries, please wait..");
for (String s : removeList)
commentList.remove(s);
for (int i = 0; i < 5; i ++)
{
System.out.print(".");
rest();
}
System.out.println();
System.out.println("We are good to go! Press <ENTER> to get the first winner!");
waiter.nextLine();
Random rnd = new Random();
int winner1 = rnd.nextInt(commentList.size());
System.out.format("The first winner has entry # of %d", winner1);
for (int i = 0; i < 5; i++)
{
System.out.print(".");
rest();
}
System.out.println();
System.out.format("The first winner is: \n %s \n", commentList.get(winner1));
System.out.println("Press <ENTER> to get the second winner!");
waiter.nextLine();
int winner2 = rnd.nextInt(commentList.size());
System.out.format("The second winner has entry # of %d", winner2);
for (int i = 0; i < 5; i++)
{
System.out.print(".");
rest();
}
System.out.println();
System.out.format("The second winner is: \n %s", commentList.get(winner2));
}

public static void rest()
{
try
{
Thread.currentThread();
Thread.sleep(1000);
}
catch (Exception e) {}
}
}[/code2]

The text file is attached
[attachment=0]<!-- ia0 -->comments.zip<!-- ia0 -->[/attachment]

You can also find the program on Pastebin:
<!-- m --><a class="postlink" href="http://pastebin.com/DzLdPzGc">http://pastebin.com/DzLdPzGc</a><!-- m -->



Attached Files
.zip   comments.zip (Size: 5.58 KB / Downloads: 815)
Print this item

  Drunk_Snake Game PLEASE HELP!!
Posted by: andre2pi - 12-29-2013, 04:16 AM - Forum: Programming Help - Replies (2)

Hello everyone! I'm trying to implement a funny version of the snake game posted on youtube by brandonioproduction , and I'm kind of stucked. The idea is to make the snake wobble after eating some fruits ( that in the end will be changed to beers <!-- sWink --><img src="{SMILIES_PATH}/icon_e_wink.gif" alt="Wink" title="Wink" /><!-- sWink --> )
so by the move() when the snake is going direction.NORTH for example , the coordinates are (head.x , head.y -1) so it goes straight up.
I have to implement something that changes the head.x like this:

case Direction.NORTH:
newPoint = new Point(head.x -1, head.y - 1);
then
newPoint = new Point(head.x +1, head.y - 1);
then
newPoint = new Point(head.x -1, head.y - 1);
then
newPoint = new Point(head.x +1, head.y - 1);

so you get the idea here. The snake would zigzag in x axis when moving vertically. and of course also would zigzag in the y axis when going horizontally.

Any Ideas are very welcome !!
cheers!

Print this item