Ideas for programming a Gantt Chart.

Well I guess almost anybody know what is a Gantt Chart. It's the chart in charge for keeping track of tasks and task relationships always following an Agenda.
This is my next step so I would like to hear some stuff from you on how to program it.
I think it's just a JTable where rows are lower than normal and the header column represents the task days, so if a task day match a header column i use a JLabel as a TableCellRenderer, and a group of painted (JLabel) table cells in a row represent the task.
That's all i know about ideas of Gantt Chart programming.
Any other better suggestions and more ?
Thanks a lot !

I see why you are doing it, but the idea would seem to break down if you were to have tasks that take less than a day. Also, you might get an unweildy number of columns if someone were to plot out a multi month (year!) plan.
If you are just going to use this as a light weight planner, the convenience of using a JTable might outweigh the disadvantages.
A better, but much more complex solution might be to manage your own graphic objects. One thought I had was to use a JPanel with buttons that could be dragged around. (for a simple sample http://forum.java.sun.com/thread.jsp?forum=57&thread=319958 )
To take this approach, you would probably want to subclass the JButton (or JPanel), and add some sort of controls to it that would allow it to be resized (to change the task duration) and to listen for double clicks which could bring up task details. (summary, startdate, end date, etc).
humble $.02

Similar Messages

  • Ideas for program

    I am currently studying for higher ed, and taking a class that includes AS3 teachings. For my exams I am expected to present a program I've made, and I can make anything I care for, it should be of some size and so I am having difficulties choosing something that would be easy enough to be made in a couple of months, but challenging enough to show my skills.
    I am looking for ideas for what I can make that fits these criterias, all suggestions are welcome

    The first thing you need to do is assess what skills you have or wish to demonstrate.  If you don't yet have the skills this can make choosing a project more difficult because learning new skills is more time consuming than demonstrating them.  Anyone with the skills and a couple of months to spare could create an impressively large project for themselves.
    So if you already have the skills, then you should aim at something in the form of a service-provider web site that has multiple interactive features and relies on imported content/data.  Maybe something in the way of a dating site where people can sign up, submit photos, fill out forms, be analyzed thru automated evaluations, get matched with others, watch marketing movieclips designed to lure them into signing up, etc...  I don't want to stress a dating site, but something that covers a number of different types of presentations, processing, and data delivery elements.
    If you don't already have the skills, and are expected to learn them over the same months that you are expected to be creating this project, then you should refer to whatever course syllabus you have, maybe even discuss it with the instructor and other students, so that you'll have a better idea of the expectations of this project's scope.

  • Drill down to Multiple Levels for Subtasks in Gantt Chart

    Hello,
    I need to use a Gantt Chart in one of my screens. I have constructed the required data model by using VO and corresponding view links. The issue is that I am not able to drill down to the last level in a Gantt Chart. I am able to drill down to only the second level. Any help appreciated.
    Thanks & Regards
    Sandeep

    Any response to this question? Out team has similar requirement.

  • How to configure Tooltips for Project Gantt charts

    Hi,
    I am trying to Display the title of the task as a tooltip for the Project Gantt Chart.
    I referred the documentation link and am trying to configure tooltipKeyLabels and tooltipKeys as specified in the link
    http://download.oracle.com/docs/cd/E14571_01/apirefs.1111/e12418/tagdoc/dvt_projectGantt.html
    but I could not get this to work.I am unsure about what the data object key refer to in the documentation.
    Is it the key of the text resource specified in the tooltip control hints or some other thing?
    Any body who has done this before,please share your ideas on this.
    I am using jdeveloper 11.1.1.3.0 with ADF-BC.
    Regards,
    Guna

    bing

  • Gantt chart template for numbers

    I really need a template for a simple gantt chart to use in numbers, I have been trying to make one for weeks, if anyone has made one before, please explain the process.
    thanks gary

    You basically have the following:
    =PreviousBalance+Credit(Deposit)-Debit (depending how you want to show the account.)
    Simple Example:
    You can do a search for "Checkbook", "Finance", etc., to see other threads about this subject.
    Regards,

  • Problems with BusinessGraphics Gantt Chart: WebDynpro 7.1 SP3

    Hi,
    i tried the BusinessGraphics Gantt Chart and went through the Code Example for Displaying a Gantt Chart on:
    http://help.sap.com/saphelp_nw04/helpdata/en/a8/1cd93f5e0f9015e10000000a155106/content.htm
    Unfortunately my gantt does not look and behave like it should:
    1)  The bars are only small sqares in the middle of one day. I use the same data as in the sample, so the bars should be a couple of days long
    2) I added an action, added an EventID to the series and to the point, mapped the parameters. When clicking a point a roundtrip is done. I write a success message with the eventID but often the Gantt Picture is a broken image after this (small red cross).
    3) The tooltip of the point is not shown in the chart when pointing on the square
    Can anybody help, please?
    Thanks
    Frank

    Thanks a lot! This solved one of three problems. The trick is that you can set the marker for the points (without any effect) and for the series (with effect).
    The tooltip shows up now, too. No idea why now and not before...

  • CProjects - Gantt chart

    Hi Gurus
    In cProjects  - Gantt chart I am able to see the see the graph with start and finish date. I want to add actual finsih date. For eg. Task _1 start date is 01.06.2014 and finish date is 03.06.2014, but the task was completed by 6.06.2014. I need bring the actul completed date also in the graph. Please
    help. We are in cProjects 4.0
    Is there any standard report ?
    Regards
    Vidhyadharan

    Hi Vidhyadharan,
    By standard, any project management tools will have only one bar which displays your ES/LS dates with EF/LF if no actual dates are there. If actual dates are there, then those dates will be considered for display in gantt chart.
    In cProjects, actuals are indicated by the small line within the bar which comes based on the percentage completion field.
    Your next question will be, then how do I compare plan vs actual?
    For this you need to take a snapshot of our project after release and keep that as a baseline plan and use version comparison to compare & see baseline and current scheduled plan.
    In cProjects 4.0, you will only have tabular 'Version comparison', if you need graphical gantt chart for version comparison, then that feature is available only in PPM 5.0 and above.
    You can refer the below screenshot of PPM5.0 version comparison, where
    - Hatched bars - Baseline plan(From version snapshot)
    - Normal bars (Blue & red) - Scheduled plan
    - Bar with line in the center shows the completion activities.
    Hope this clarifies your question.
    Regards,
    Ravi

  • Tips for developing Gantt chart

    Can anyone say me how to create a Gantt chart...Or any link for sample programs for creating gantt chart without using any tool...Is it possilbe to develop without using any tool?

    Hi Shallini,
    Depends what you are calling a tool. Some IDE is nice, but I guess the minimal tools for creating a java application are a text editor and a java compiler. I once had a job interview where I had to develop a small application using notepad and javac on windows' cmd. I like eclipse better ;-).
    As for gantt charts, here:
    http://www.java2s.com/Code/Java/Chart/Gantt-Chart.htm
    Michael

  • Actual Time bar for the activity duration in Gantt Chart

    Hi all,
    The Actual time bar for the elapsed activity duration in Gantt chart is not appearing. The same is true for all the activities i.e. activities which are not yet confirmed and activities which are partially confirmed.
    Is there any customizing for the same? ( I am getting the bar in IDES, but not in DEV/QAS/PRD )
    Any Help in this regards will be highly appreciated
    Warm regards,
    Srinivas Potluri

    Hai Srinivas
    Got the solution.
    1)For this first check in the project profile of the Hierarchry graphic -
    Time scheduling profile - check the colour patterns which been assigned.
    2)open the project - Cj20N - go to planning board - bar chart - under settings - Planning board assistant - Gantt chart - check the dates display for Project definition , WBS , Acitivity - try to change the colour and check.
    while changing can see - basic date of the acitivity. based on the confirmation can see the bar confirmed activity with respect to basic date. the bar confirmation will show withrespect to duration.
    3) If the bar chart need in daily /hourly - can check in CNE5 . click on the graphics -bar chart - which u will get the bar chart - in this choose the Time Axis - where can select the monthly /weekly/daily /hourly format .
    Award points if clear and got the solution.
    Regards
    PP

  • HELP!! How to use setData for a Gantt-Chart

    Hello,
    how can I use the function setData? I've created a page with a resource-gantt-chart and now I want to use this function to set the data to the chart.
    The chart has the attribute "static id" = GANT_CHART.
    In the HTML-header of the page I tried
    <script language="JavaScript" type="text/javascript">
    function SetDataToChart() {
    var data = &F_GANTT_CHART_DATA.;
    var chart = document.getElementById('GANTT_CHART');
    chart.setData(data);
    </script>
    where the item F_GANTT_CHART_DATA returns the following:
    <resource_chart>
    <resources>
    <resource id="3002" name="0400006/1" />
    </resources>
    </resource_chart>
    I call the function SetDataToChart() in "Execute when page loads"
    Thank you for any help!
    Edited by: Kirsten on Aug 4, 2011 5:40 AM

    Hi Shyam,
    Have a look at this,
    START-OF-SELECTION.
      gd_file = p_infile.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          filename                = gd_file
          has_field_separator     = 'X'  "file is TAB delimited
        TABLES
          data_tab                = it_record
        EXCEPTIONS
          file_open_error         = 1
          file_read_error         = 2
          no_batch                = 3
          gui_refuse_filetransfer = 4
          invalid_type            = 5
          no_authority            = 6
          unknown_error           = 7
          bad_data_format         = 8
          header_not_allowed      = 9
          separator_not_allowed   = 10
          header_too_long         = 11
          unknown_dp_error        = 12
          access_denied           = 13
          dp_out_of_memory        = 14
          disk_full               = 15
          dp_timeout              = 16
          OTHERS                  = 17.
        IF sy-subrc NE 0.
          write: 'Error ', sy-subrc, 'returned from GUI_UPLOAD FM'.
          skip.
        endif.
    Regards,
    Sai

  • Turning Off Gantt Charts in MS Project For PDF Gen

    hi
    we have run into a problem when printing Gantt charts with PDF Gen. They can be extremely slow and on following up with Support they have confirmed that this is an issue with Distiller and there is no fix soon. So to get around the issue we tried disabling Gannt charts in MS Project by un-checking Bars and shapes in Gantt views in 3-D' (Tools > Options, View tab) in MS Project
    Now we're finding LC does not always pick up the setting. What we have noticed is that sometimes when printing to PDF with the same file, on the same server via PDF Gen, Gantt charts will appear, and sometimes not. Occasionally, the MS Project file when printing Gantt charts will stall in the Adobe Printer Queue, LC will then start to get Stuck Threads in Weblogic, and basically become unstable.
    Upon further investigation we saw that LC will use the WINPROJ.exe if it is running to do the conversion, or start a new WINPROJ.exe process if none is running. Sometimes while starting the process we get the Gantt chart setting picked up, and sometimes not, and there is no particular pattern.
    We did a lot of digging with PROCMON to see if we could find if LC was picking up a Windows Registry entry for MS Project perhaps with a different user which did not have the Gannt chart turned off, but could not find one. Our conclusion was that sometimes LC has submitted the job before WINPROJ.exe is fully loaded and somehow the No Gantt charts option gets lost, though this is speculation based on observation of behaviour.
    Anyone know what is going on?

    Hi,
    We will get this issue reproduced in-house and see if we can provide a patch to address this problem. Prima facie this does not appear to be a bug in the product; rather it appears that MS Project might be "forgetting" this setting in some cases, or a similar setting (inside the file that is being converted) might override the application-wide setting.
    We will try to see if we can forcibly set this flag (through MS Project COM APIs) each time a MS Project file gets converted. If this works, we might be able to provide a patch.
    Meanwhile, can you let me know exactly what version of MS Office (with the service pack details, if any) that you are using?
    Regards,
    Amit Batra
    Engineering Manager,
    Adobe LiveCycle Enterprise Suite

  • Ideas for a beginner to program

    I've started mentoring a young student - teaching him LabVIEW. He
    is enjoying it and we have covered the basics. Now I need to come up
    with a project for him to start writing a program(s) on his own. For
    the time being, I would like to keep it to calculations/analysis/display
    kinds of things (no Daq hardware). I was wondering if anyone had ideas
    (or previous experience) of such kinds of programs - something
    relatively easy at this point, but useful/fun enough to keep him interested.
    Thanks,
    Dave
    David Thomson Original Code Consulting
    www.originalcode.com
    National Instruments Alliance Program Member
    Certified LabVIEW Architect
    There are 10 kinds of people: those who understand binary, and those who don't.

    Here is an idea for a nice little project would be:
    (assuming no Daq or GPIB hardware).
    Open a binary file. Parse the file to identify the OP codes and operands. Translate it to "english". Display the translation and write it to another file.
    You can expand to opening a serial port, communicating to a serial device. Interpret the data (especially if there is some sort of waveform to analyze). Plot the data "real-time". Display warnings or conditions if low or high limits are reached, or if a number of samples has been achieved.
    Prompt for user intervention (what to do with the data, ie: save it to file, display it, print it, etc). Allow for user control of the vi (Run / Pause / Stop / Abort).
    The above should provide basic functionality where ther
    e is no instrument to control or a data-acquisition system to monitor.
    Are you looking for real projects? Maybe a bit more challenging?
    Regards,
    -JLV-

  • Ideas For a Simple Program?

    I need some ideas for a simple program for a project in class. Can anyone help me?

    Import Classes
    import java.io.*;
    public class tictactoe
    Define Variables
    public static InputStreamReader ISR = new InputStreamReader(System.in);
    public static BufferedReader BFR = new BufferedReader(ISR);
    public static String BOX[][] = new String[3][3]; //Integer Arry for tictactoe box
    public static String PName; //Moving Player's Name
    public static String P1Name; //Player 1 Name
    public static String P2Name; //Player 2 Name
    public static String InputPLY; //X or O
    public static String InputStr; //Player's Input
    public static boolean BreakLoop; //Set this to true in PlayGame() to exit
    public static void main(String args[]) throws IOException
    InputPLY = "O";
    BreakLoop = false;
    ClearBOXCache();
    PrintCredits();
    System.out.println("");
    System.out.println("PLEASE ENTER PLAYER 1 NAME");
    P1Name = BFR.readLine();
    System.out.println("PLEASE ENTER PLAYER 2 NAME");
    P2Name = BFR.readLine();
    System.out.println("");
    System.out.print("\nWelcome ");
    System.out.print(P1Name);
    System.out.print(" and ");
    System.out.println(P2Name);
    System.out.println("");
    System.out.println(P1Name + " = X");
    System.out.println(P2Name + " = O");
    PlayGame();
    PrintCredits();
    BFR.readLine();
    System.exit(0);
    public static void DrawGrid()
    This function is to draw the tictactoe grid.
    System.out.println("");
    System.out.println("\t/-----------------------------\\");
    System.out.println("\t|-------- TIC TAC TOE --------|");
    System.out.println("\t|-----------------------------|");
    System.out.println("\t| | | |");
    System.out.println("\t| " + BOX[0][0] + " | " + BOX[0][1] + " | " + BOX[0][2] + " |");
    System.out.println("\t| | | |");
    System.out.println("\t|-----------------------------|");
    System.out.println("\t| | | |");
    System.out.println("\t| " + BOX[1][0] + " | " + BOX[1][1] + " | " + BOX[1][2] + " |");
    System.out.println("\t| | | |");
    System.out.println("\t|-----------------------------|");
    System.out.println("\t| | | |");
    System.out.println("\t| " + BOX[2][0] + " | " + BOX[2][1] + " | " + BOX[2][2] + " |");
    System.out.println("\t| | | |");
    System.out.println("\t\\-----------------------------/");
    public static void PrintCredits()
    This function is to print credits. Intended for startup and ending
    System.out.println("");
    System.out.println("");
    System.out.println("\t-------------------------------");
    System.out.println("\t--------- TIC TAC TOE ---------");
    System.out.println("\t-------------------------------");
    System.out.println("");
    System.out.println("\t-------------------------------");
    System.out.println("\t---- MADE BY WILLIAM CHAN! ----");
    System.out.println("\t-------------------------------");
    public static void ClearBOXCache()
    This function is to clear the BOX's cache.
    It is intended for restarting a game     
    BOX[0][0] = " ";
    BOX[0][1] = " ";
    BOX[0][2] = " ";
    BOX[1][0] = " ";
    BOX[1][1] = " ";
    BOX[1][2] = " ";
    BOX[2][0] = " ";
    BOX[2][1] = " ";
    BOX[2][2] = " ";
    public static void CheckWin(String PLYW) throws IOException
    This function is to check if a player wins
    for (int X = 0; X < 3; X++)
    if (BOX[X][0].equals(PLYW) && BOX[X][1].equals(PLYW) && BOX[X][2].equals(PLYW))
    PrintWin(PLYW);
    for (int Y = 0; Y < 3; Y++)
    if (BOX[0][Y].equals(PLYW) && BOX[1][Y].equals(PLYW) && BOX[2][Y].equals(PLYW))
    PrintWin(PLYW);
    if (BOX[0][0].equals(PLYW) && BOX[1][1].equals(PLYW) && BOX[2][2].equals(PLYW))
    PrintWin(PLYW);
    else if (BOX[0][2].equals(PLYW) && BOX[1][1].equals(PLYW) && BOX[2][0].equals(PLYW))
    PrintWin(PLYW);
    else if (!BOX[0][0].equals(" ") && !BOX[0][1].equals(" ") && !BOX[0][2].equals(" ") && !BOX[1][0].equals(" ") && !BOX[1][1].equals(" ") && !BOX[1][2].equals(" ") && !BOX[2][0].equals(" ") && !BOX[2][1].equals(" ") && !BOX[2][2].equals(" "))
    ClearBOXCache();
    System.out.println("Tie Game!");
    BFR.readLine();
    System.out.println("Game has restarted");
    public static void PrintWin(String PrintWinner) throws IOException
    This function is to print which player won
    if (PrintWinner.equals("X"))
    System.out.println(P1Name + " wins!");
    System.out.println(P2Name + " loses!");
    else if (PrintWinner.equals("O"))
    System.out.println(P2Name + " wins!");
    System.out.println(P1Name + " loses!");
    BFR.readLine();
    ClearBOXCache();
    System.out.println("Game has restarted!");
    public static void PrintInstruction(String PLYINSTR)
    This function is to give instruction to the player
    if (PLYINSTR.equals("X"))
    PName = (P1Name);
    else if (PLYINSTR.equals("O"))
    PName = (P2Name);
    System.out.println("");
    System.out.println(PName + ":");
    System.out.println("PLEASE MAKE YOUR MOVE");
    System.out.println("");
    System.out.println("TL = TOP LEFT BOX, TM = TOP MIDDLE BOX, TR = TOP RIGHT BOX");
    System.out.println("ML = MIDDLE LEFT BOX, MM = MIDDLE MIDDLE BOX, MR = MIDDLE RIGHT BOX");
    System.out.println("BL = BOTTOM LEFT BOX, BM = BOTTOM MIDDLE BOX, BR = BOTTOM RIGHT BOX");
    public static void PlayGame() throws IOException
    This function is the main game function.
    It calls other game functions.         
    Define Variables
    while(true)
    if (InputPLY.equals("O"))
    InputPLY = "X";
    else if (InputPLY.equals("X"))
    InputPLY = "O";
    while(true)
    PrintInstruction(InputPLY);
    InputStr = BFR.readLine(); //Player's move
    Check player's move
    if (InputStr.equals("TL"))
    if (BOX[0][0].equals(" "))
    BOX[0][0] = InputPLY;
    break;
    else if (InputStr.equals("TM"))
    if (BOX[0][1].equals(" "))
    BOX[0][1] = InputPLY;
    break;
    else if (InputStr.equals("TR"))
    if (BOX[0][2].equals(" "))
    BOX[0][2] = InputPLY;
    break;
    else if (InputStr.equals("ML"))
    if (BOX[1][0].equals(" "))
    BOX[1][0] = InputPLY;
    break;
    else if (InputStr.equals("MM"))
    if (BOX[1][1].equals(" "))
    BOX[1][1] = InputPLY;
    break;
    else if (InputStr.equals("MR"))
    if (BOX[1][2].equals(" "))
    BOX[1][2] = InputPLY;
    break;
    else if (InputStr.equals("BL"))
    if (BOX[2][0].equals(" "))
    BOX[2][0] = InputPLY;
    break;
    else if (InputStr.equals("BM"))
    if (BOX[2][1].equals(" "))
    BOX[2][1] = InputPLY;
    break;
    else if (InputStr.equals("BR"))
    if (BOX[2][2].equals(" "))
    BOX[2][2] = InputPLY;
    break;
    else if (InputStr.equals("RESTART"))
    ClearBOXCache();
    System.out.println("");
    System.out.println("GAME RESTARTED!");
    System.out.println("");
    break;
    else if (InputStr.equals("QUIT"))
    BreakLoop = true;
    break;
    if (BreakLoop == true)
    break;
    DrawGrid();
    CheckWin(InputPLY);
    }

  • Any ideas for a (fairly) simple program?

    Does anybody have any ideas for a fairly simple program that I could try to write (I am a fair programmer, but I'm not to creative)?

    You know, Java Game Programming for Dummies is actually a pretty good book (despite the "Dummies" part!) It is written in 1.0, but it has a "ponglet", card games, and several maze games. All the applets I've tried from them actually work (some typos in the book itself, but the CD is ok). Any of these could be "starter" code.
    Yahoo has a whole bunch of Java applet games. You could try to reproduce pieces of the games you see. (These are also interesting in the sense that you can immediately see what works in a game and what doesn't.)
    It is always fun to write little components. Cool buttons (write a nice little non-rectangular button that lights up or something), text boxes that look like digital displays, funny text labels (maybe with a weird font or with letters that jump all over the place when you mouse over them).. These don't take a whole lot of time to write, but write them well and they are very useful for your future games.
    Enjoy!
    :) jen

  • I have an idea for an iPhone app that I believe would be marketable. However, I have no talent towards writing software. How does I find a reputable programer that would be will to develop and split proceeds?

    I have an idea for an iPhone app that I believe would be marketable. However, I have no talent towards writing software. How does I find a reputable programer that would be will to develop and split proceeds?

    Find an app you like.  Contact the developer of that app and see if they are interested.

Maybe you are looking for

  • Cannot reference this before supertype constructor has been called

    I'm confused. I would like it easier for a user to use a class where one item can be determined from another, but I'm having a problem with the constructors. First, one constructor that works fine:     public UndirectedGraph(List nodes, List edges) {

  • XSan with Gigabit Network

    Please, XSan solution is compatible with Gigabit Network? I have a XServer Xeon, XServer RAID but dont use a Fiber Channel cards, cable and connectors. Its Possible? Tks

  • WIP inventory status in the case of non perpetual accounting.

    Hi all, we are using non perpetual system of accounting. Under this system, we issued say 100 units of product "RM" to thte production process. As against this issue, we received 60 units of product "FG" as finished goods. Thus 40 units of "RM" are s

  • Clients in DEV system

    Dear experts!  We have standard 3-tiers SAP landscape: DEV- QAS - PRD systems in separate servers. My question is about DEV system clients. By now we have 3 clients in DEV system: 100 client (only Customizing, transport allowed, "Golden" client witho

  • +ve prefix

    I have an output table which requires the double field to have a + value in front of it (when the number is positive, ie. +7.62). the formating seems to take care of the negative and 0.00 value itself, but I want to know what the simple way to put a