Guidance for creating a simple 2D GUI for game.

Me and a couple of friends are developing a Risk-like game (the board game) with java. We have all the logistics done and we are only missing the GUI. We are comfortable with building normal GUIs based on buttons, menu, input fields, labels, etc. But for this we want to develop something similar to the actual board game. So it would be like a map, divided in countries, etc. How can this be done? Any guidance, tutorials? (If you don't understand what i am saying just imagine you are creating a map of the world on java, with each country having an action listener so that an action can be activated when it is clicked)
Thanks in advance.

Well it sounds like you want 2D, so check out the Java2D API and Swing of course. I'm not really sure what kind of advice you want. You might want to use VolitileImage (hardware acceleration). Implement double buffering. Offer a zoom feature, overlays if you can, etc. Sorry, not sure what else to recommend. Post specific questions for more specific recommendations.
It would be nice if you did this in Java3D so you can rotate the board around and stuff, maybe camera animate down to the game pieces.

Similar Messages

  • Creating a simple java client for a session EJB local interface

    Hi all
    Is it possible to create a simple java client for a session ejb local interface with JDeveloper.
    The problem is that it creates a test client for a remote interface only...
    i.e.
    MySessionEJB sessionEJB = context.lookup("MySessionEJB")
    and once i try to adjust it manually for the local interface...
    MySessionEJBLocal sessionEJB = (MySessionEJBLocal) context.lookup("MySessionEJBLocal") (MySessionEJBLocal - is the name of my local interface)
    it generates the exception:
    javax.naming.NotFoundException: SessionEJBLocal not found
    at...........................(RMIClientContext.java:52)
    There is still no problem with accessing the local interface object from the jsf project where i've added <ejb-local-ref> tag into the web.xml file.
    but i need the possibility of testing the simple java client for the local interface to test business methods wich should return objects without indirect properties
    Thanks in advance.
    Alex.

    Pedja thanks for reply.
    I still dont understand what is wrong with my example.
    The first peace of the code i wrote (getting the reference to the remote interface object) works pretty well, and even more it is produced automatically by JDeveloper, so why we cant get a reference to the local interface object the same way?
    Certanly we should use the local interface for getting access to the resource functioning under the same local jvm and i think it doesnt metter wich app server we really use wls or oas or others
    Thanks. Alex.

  • FM/BAPI for creating the credit memo request for Vendor

    Hi Experts,
        I need an RFC/BAPI,  for creating the credit memo request for Vendor.
    Thanks in Advance,
    Kiruba.R

    Hi,
    Use this BAPI 'BAPI_DRMCREDITMEMOREQ_CREATE' - Credit Memo Request Creation
    Regards,
    Jyothi CH.

  • Any FM for create an external number range for equipment number ????

    Hi all,
    Any FM for create an external number range for equipment number??????
    thanks & regards
    indu.

    Hi
    you can use below FM to get number range
       CALL FUNCTION 'NUMBER_GET_NEXT'
        EXPORTING
          nr_range_nr                   = 'Z1'
         object                        = 'ZTEST'
         object                        = 'ZFIREC'
         quantity                      = '1'
         subobject                     = p_compcd
         toyear                        = p_fisc
       IMPORTING
         number                        = v_seqno.
    thanks & regards,
    bhupal.

  • What is the best method for creating a simple DVD from X?

    Now that I no longer have DVD SP on my system, I need to know the preferred method of creating a simple menu driven DVD. The DVD needs to have a simple (one click) since the local cable company needs that so it will trigger at a specified time. I shoot in 720p 60. The DVD is SD. I do have Toast, Compressor, and iDVD on the computer. Any input will really be appreciated. Thanks in advance.
    Cheers.
    Tom

    Thanks Luis.
    Can't beleive I missed that. I am so used to using Compressor or Toast. This method works great. Thanks.
    Best.
    Tom

  • I need the code for creating popup windows and code for open and close

    I can write the code for creating popup window , i am getting problem while trying to open and closing that popup windows.
    Can anybody help me in that pls ?
    Regards
    Sreeni.

    Hi
    For pop up window
    IWDWindowInfo windowInfo = (IWDWindowInfo)wdComponentAPI.getComponentInfo().findInWindows("PopWin");
    IWDWindow window = wdComponentAPI.getWindowManager().createModalWindow(windowInfo);
    window.setWindowPosition (300, 150);
    window.show();
    wdContext.currentYourNodeElement().setPopupAttribute(window);
    For closing window code
    IWDWindow window = wdContext.currentYourNodeElement().getPopupAttribute();
    window.hide();
    window.destroyInstance();
    For more infornation refer this link
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/20d2def3-f0ec-2a10-6b80-877a71eccb68&overridelayout=true
    This link is very useful for you.
    Regards
    Ruturaj
    Edited by: Ruturaj Inamdar on Aug 13, 2009 9:10 AM

  • T code or path for creating Z out put type for picking

    if I need  to create u201CZ u201Cout put type for picking list copying standard out put type( EK00). Which T- code I have to use or  which path  , I  have to follow in IMG  .
    I want to create u201C Z u201Ccondition type for picking list , copying   EK00 which is standard condition type for picking  list .
    Thanks u2026

    it is part of V4 application, if you dont see V4, use tcode v/38 .... there you will find it.

  • Do I have to pay for creating a iTunes or pay for the apps??

    - Okay, I'm new to iTunes, do we have to pay for creating a iTunes with a monthly fee? Or pay by the drink? (Meaning: Pay for the apps that's not free.)

    iTunes is a Free Download... Apps are either Free or Cost money... depending on the App.

  • How to create a simple spot the difference game

    Hi everyone. I'm new to the forums and relatively new to flash, so bear with me
    I'm looking to do a very simple spot the difference game using flash CS3 and actionscript 2 for a school project.
    As it stands, I have 2 images on separate layers on a timeline in the same frame, which has been paused using the 'stop' command. I am looking to have around 4 differences that, when clicked, will be recorded at the bottom of the screen.
    The problem is, I am unable to find a way to get the differences recorded at the bottom in the order the user finds them, where each one is entered when the user clicks it, leaving gaps for those that haven't been found.
    Being only a basic user, I am only familiar with scenes and basic timeline controls, and i'm hoping there's a relatively simple way of achieving this. However I am perfectly comfortable with using more complex actionscript, having done some programming before.
    Thanks in advance,
    Laurence

    Thanks so much for all your help
    Just one last thing about the 'if' script you gave me, what do i replace 'somemovieclip' with if I've already definied the movie clips I want to be monitored? Also, do I put that script on the frame? If not, where? It just doesn't work properly at the moment (skips straight to the completion frame even though the movie clips are hidden at the start) and i'm not sure about those things ^
    Sorry to be of more trouble
    Laurence

  • How to create a simple File structure for a large project?

    Hi to all,
    I've own and operated my own website design/development (a 1 woman office, plus many sub-contractors) over the period of 8 years. I started hand-coding HTML sites in 1997, before the creation DW (though I think the first ver was for Mac in '97). Over the recent years I've udated my skills to include CSS and enough Java/PHP to customize and/or troubleshoot current projects (learn as I go).
    The majority of my clients have been other 1-10 person entrepreneur companies. I've recently won a bid to redesign a government site which consist of 30 departments, including their main site.
    The purpose of this thread is to get some ideas on creating a file management/structure. Creating file management setup for smaller companies was a piece of cake, using a simple file mgmt structure within DW. Their current file structure is all over the place. I've read about a very good, simple file struture in a DW CS4 manual and wanted to get feedback on different methods that have worked, and have not worked, or your client:
    Here's my thinking:
    1. within the root dir place home.htm and perhaps a few .htm related only to home
        2. create the following folders off the root, "docs, imgs/global, CSS, FLA, Departments"
                - sub folders within docs for each dept
                - site wide css's placed into CSS
                - site wide FLAs into the FLA
                - sub-folders created within 'imgs' for each dept, including a 'global folder' for sitewide images and menu imgs (if needed)
    - OR -
    1. create same file structure for each dept folder, such as 'imgs/CSS/FLA/Docs'
    Open for suggestions....
    Ciao

    It is a problem I have thought over at length and still feel what I use could be better. You are doing it the right way around researching before you start, as moving files once things are underway can course real problems. One issue is the use of similar assets across site(s), and version control if you have multiple versions of the same asset.
    Can not say I have built a site(s) of that size but would recommend putting together a flow chart to help visualise the structure and find out better ways organising (works for me). Good luck, post back with your solution.

  • How to create a simple filing system for my personal material

    --After using Windows for several years, I have bought my first Apple computer last month: MacBook Pro, with OS X Mavericks 10.9.5. I find that just creating files, saving text/photos etc in them, and then creating a folder and saving the files in the folder, is a major operation for me. Obviously there must be a simple, straightforward way to do it, that I don't know. I have not found anything in my Apple books - too basic for them. If somebody could help me, I will appreciate. I am new to the Apple system, so please describe to me step-by-step the way.
    --Also, should I download the new Yosemite 10.10 now? Thanks.

    Hi ..
    You can save text files to the Documents folder.
    You can save photos to the Pictures folder.
    Open the Finder. From the Finder menu bar click Finder > Preferences then select the Sidebar tab.
    The Finder can also be opened by clicking the Finder icon in the Dock.
    Select both:  Documents and Pictures
    That makes it convenient to save text files and photos.
    As far as Yosemite goes, since you're coming from Windows, it be better to learn Mac OS X there first, then upgrade to Yosemite at a later date. It's free and available at the App Store. The App Store icon should be in your Dock.
    Bob LeVitus writes a very helpful Dummies for Mavericks manual for sale at Amazon here.

  • Advice for creating a simple iPad presentation

    Hello,
    Just wondering what my options are for getting a document created in InDesign onto an iPad? I've been reading up on the DPS but there seems to be a lot of conflicting information out there depending on when it was written and by whom.
    Basically we do many presentations and pitches in my agency, these so far have consisted primarily of printed documents and boards. What they would like to do now is give the presentation to the client at the end of the meeting on an iPad for later viewing. These presentations are usually being worked on up to the last minute, so any iPad version needs to be as simple as exporting a file, plugging in the iPad and pressing an upload button.
    A few questions:
    1. They would like the presentation to appear as a standalone icon on the main iPad screen, as opposed to a document within a reader application. Is this possible?
    2. The DPS method of organising files and syncing with online servers doesn't seem ideal in my case. Am I right in saying there is still no local sideloading feature available?
    3. The 'stack' and 'article' method of sorting separate files seems very unwieldy in my case, is there are way to just have one long document (for printing and easy layout) and then have it scroll sideways like a magazine on the iPad?
    4. Failing all these, do I have any other options?
    Thanks for any help.

    Hi Aaron,
    Here are your answersd:
    1. No
    To enjoy your own Icon, would mean to go through the process of building a custom viewer in DPS and sending your app to Apple. It usually takes 5-20 days to have it accepted. So, no last minute changes.
    2. Yes
    You are right.
    3. Yes, sort of
    Instead of of on long document you create an Indesign book file, where each Indesign document represents one DPS article. You can then print your whole presentation with one click. In DP, you set your articles to horizontal swipe only.
    4. Yes
    Interactive PDF is an obvious one.
    Regards,
    Tomek

  • Can anyone suggest a app or programme for creating a simple text based logo with a font I already own?

    Hi.
    I run my own company and would like to create my own simple text based logo using a font I've downloaded. Can anyone suggest an app or programme that will be simple enough for a dunce like me to create vectored graphics and reliable enough to create something professional and usable, please?
    Thanks.

    I believe if you copy the font into the font folder, any application should be able to use that font.

  • How to create a simple web.xml for using servlets

    Hello i wanna configure the web.xml that i can use sevlets and beans, but how can i do that?
    This is de directorie i have installed my webapp
    C:\Tomcat 4.1\webapps\testapp
    C:\Tomcat 4.1\webapps\test\WEB-INF\classes (in this dir, I wanna put my beans and servlets, I got one servlet and the name is LogIn.class).
    And i wanna request my servlets with the url http://localhost:8080/testapp/servlet/LogIn
    How can i create a very basic web.xml with working beans, servlets and session? It is for testing-use only, so the security is not important for me at this moment.
    Tnx

    under your web-inf
    in your web.xml file you must map
    the servlets
    under the <web-app> tag type
    <servlet>
         <servlet-name>LogIn</servlet-name>
         <servlet-class>com.LogIn</servlet-class>
    </servlet>
    <servlet-mapping>
          <servlet-name>LogIn</servlet-name>
          <url-pattern>/LogIn</url-pattern>
    </servlet-mapping>ps: start using some IDE such as NetBeans or Ecclipse
    since they will take care of mapping all servlets and Beans
    and generate all the necessary files for your web-app

  • Creating a SIMPLE Java APPLET for a HTML website

    Hello!
    I was wondering if anyone can help me.
    i have designed a very simple HTML website and wanted to make an applet.
    which program would be best (eclipse, blue j...etc)
    and how do i go about it!
    i am very new to this and would appriciate the help
    many thanks in advance

    sabre150 wrote:
    gimbal2 wrote:
    your brain to do all the hard work. It needs to be preloaded with knowledge of programming, the Java language, the Java platform and the Java plugin relating to applets before it will work.So that's where I have been going wrong!Lies, I know for a fact that you know a thing or two. What are you trying to do here? Hide from your responsibilities as a knowledgeable person?

Maybe you are looking for

  • Two delivery documents for a single schedule line of scheduling agreement

    Hi experts, i have a query, client needs the information of each schedule line delivery details. if all the quantiry in a schedule line is delivered in single delivery ,i can get the ref. from delivery header,,item details table. if i need to deliver

  • No longer can use bluetooth to phone

    Hi, I was transferring files to my phone a few days a ago, but since last update am unable to do so any more ;-( Phone asks for pin which I enter but it fails to connect Tried changing hcid.conf to none [security and pin!] Still nothing bluetooth-sen

  • 1200 Series Access points

    I have an problem with multiple access points losing the ability to telnet to them.They access points work fine but the only way I can get the ability to telnet back is to restart them. Has anyone else had this problem.

  • IMac Display Freaking out

    My wifes iMac (Intel 2.66 GHz/1 G Ram/ 20" display)has recently began to freak out with numerous blank blocks on the screen (up to 12) opening up when switching applications. It doesn't happen when working in an app, only switching between apps. The

  • How to unlock the SIM in activation mode for iPhone 4s

    After Remote Erase iPhone 4s can not activate it anymore. Through WiFi it says try again later or through itunes, and through itunes it asks to unlock the SIM which i can't in activation mode. How do get out of this loop thanks