Skip to main content

Posts

Showing posts from 2012

Jython Set Look and Feel

Here is a code snippet to add look and feel using java's UIManager in jython.
Add this snippet to your code and then reference it in your class __init__ function.


Example


from javax.swing import UIManager

class App:                                                       
    def __init__(self):
        setTheme("Nimbus") #If none specified it uses default LAF

        #...Rest of code

#ADD THIS FUNCTION  
def setTheme(theme=None):                                                       
    lookAndFeel = None                                                          

    for info in UIManager.getInstalledLookAndFeels():                           
        if info.getName() == theme:                                             
            lookAndFeel = info.getClassName()                                   

    if lookAndFeel:                                                             
        UIManager.setLookAndFeel(lookAndFeel)                                   
    else:������������������…
A custom 404_page I made for my website.


Community Service Site WIP

A snapshot of my senior capstone project. Getting ready to launch it into alpha tests soon. I used the Django web framework.
I was having some trouble texturing a tree in gimp so I turned to my favorite tool Inkscape and here is the result. I still need to play with it some more but I am pretty happy about this style.
512x512 texture.
GameDev Notes:
Got most of the basic concept art done, very basic and just some sketches. Most likely to change.
Working Title: NiteLite
Realistic Goals: Week 1
1 stage
1 enemy 1 tower 1 character

Website Mockup

Hey everyone it's been a long time since I've posted anything. But here is something I've been working on lately. This is just a mock up/work in progress. I am still coding the back end. Hope you guys like it.