Java Swing #3 Part I Interface 'BorderLayout & Threads' Tutorial

preview_player
Показать описание
In this tutorial I'll be making a prime number generation program with borderlayout for the interface.

Download to Primes file, includes .class, .java and an api

Source from this tutorial
Рекомендации по теме
Комментарии
Автор

Huge help for my BattleShip game project!

KyleBridenstine
Автор

Hey, how do I use two panels in one JFrame? I want two different sections.

JMathewTech
Автор

I find it interesting that you pasted the code for your prime numbers on a tutorial about swing rather than the code for the swing. This tutorial is great, but actually looking at your code in the video about swing is hard as your going through it so fast. Would it be possible for you to post the swing aspects of the code? 

seanholt
Автор

Is there a problem with this code and the latest version of Java? I'm trying to run it and I get an error

Exception in thread "AWT-EventQueue-0" java.lang.Error: Unresolved compilation problem:
    List cannot be resolved to a type

    at

LouisLeGros
Автор

It uses a lot more caching than your usual floating point generator and you loose less detail since it generates less detail. I designed it for voxel engines and similar instances where you are going to snap the heightmap to a grid. It is less detailed that floating point generation but still looks smooth because I gave the height value a customizable fixed decimal place so less detail is lost during rounding.

nathanross
Автор

I was wondering how java programmers could remember how to spell functions without having a compiler like Visual C++ that warned you before compiling. Now I know that all programmers, including myself, use the internet to remember.

I have almost finished a fixed point noise generator in C++ that is a lot faster that floating point noise generation. I was wondering if you could help me get it working in gamemaker after I change some variable names to make it more user friendly.

nathanross
Автор

i found it i also want to code some more in this want a winner to be declared after winning this game...and i m not getting the logic to do i need your help  reply

deepanshumehandiratta
Автор

Some early programmers try to use random numbers in a terrain generator and wonder why it looks random (not smoothed) or use noise values to generate noise based images. My fixed point noise generator would be perfect for them, but I need your help getting it to work in GM. I do not know as much about GM as you do, such as whether or not GM supports floating point variables or how many bits an integer uses.

nathanross