CSS Bar Chart [Plug-in] in P-Track Packaged application

Hello,
In the P-Track Packaged application we have CSS Bar Char Plugin REGION. If we change the theme of that application into the Theme 23, that plugin Region loses some CSS rules. In other words, it loses its beauty. Anyone knows how to get this plugin to work find on the Theme 23 ???
Regards,
Fateh

Hello,
In the P-Track Packaged application we have CSS Bar Char Plugin REGION. If we change the theme of that application into the Theme 23, that plugin Region loses some CSS rules. In other words, it loses its beauty. Anyone knows how to get this plugin to work find on the Theme 23 ???
Regards,
Fateh

Similar Messages

  • Incident Tracking Packaged Application error

    I installed the "Incident Tracking" prepackaged application that came with my APEX 4.2. Inside the application, I created a new "Assignee" and then proceeded to assign a ticket (via Tickets screen) to the newly created assignee. When I do this, it then puts the below text in a text bubble "Updates", the text should actually read changed from to "Name of the newly created assignee" instead of a the number, which is the ID in the assignee table. Which I believe is a bug, I'm looking for a fix for this, but struggling to find where to edit the code for this, can anyone help? I think the code sits inside an internal plugin in the application, but am having trouble finding it.
    Update Assignee changed from to *284657827008667618081368371512647126206*
    [email protected] - Wednesday 20-FEB-2013 03:17 (Now)
    When searching for the code I found it in...
    ...... SNIP ......
    wwv_flow_api.create_page_plug (
    p_id=> 21813153649240572742 + wwv_flow_api.g_id_offset,
    p_flow_id=> wwv_flow.g_flow_id,
    p_page_id=> 50,
    p_plug_name=> 'Right Side',
    p_region_name=>'',
    p_escape_on_http_output=>'Y',
    p_plug_template=> 0,
    p_plug_display_sequence=> 100,
    p_plug_new_grid => false,
    p_plug_new_grid_row => false,
    p_plug_new_grid_column => false,
    p_plug_display_column=> 1,
    p_plug_display_point=> 'REGION_POSITION_03',
    p_plug_item_display_point=> 'ABOVE',
    p_plug_source=> s,
    p_plug_source_type=> 'PLSQL_PROCEDURE',
    p_translate_title=> 'Y',
    p_plug_query_row_template=> 1,
    p_plug_query_headings_type=> 'QUERY_COLUMNS',
    p_plug_query_num_rows => 15,
    p_plug_query_num_rows_type => 'NEXT_PREVIOUS_LINKS',
    p_plug_query_row_count_max => 500,
    p_plug_query_show_nulls_as => ' - ',
    p_plug_display_condition_type => '',
    p_pagination_display_position=>'BOTTOM_RIGHT',
    p_plug_customized=>'0',
    p_plug_caching=> 'NOT_CACHED',
    p_plug_comment=> '');
    end;
    declare
    s varchar2(32767) := null;
    l_clob clob;
    l_length number := 1;
    begin
    s := null;
    wwv_flow_api.create_page_plug (
    p_id=> 21813153853846572743 + wwv_flow_api.g_id_offset,
    p_flow_id=> wwv_flow.g_flow_id,
    p_page_id=> 50,
    p_plug_name=> 'Incident',
    p_region_name=>'',
    p_escape_on_http_output=>'Y',
    p_plug_template=> 21813089941594564463+ wwv_flow_api.g_id_offset,
    p_plug_display_sequence=> 80,
    p_plug_new_grid => false,
    p_plug_new_grid_row => false,
    p_plug_new_grid_column => false,
    p_plug_display_column=> 1,
    p_plug_display_point=> 'BODY_3',
    p_plug_item_display_point=> 'ABOVE',
    p_plug_source=> s,
    p_plug_source_type=> 'STATIC_TEXT_ESCAPE_SC',
    p_translate_title=> 'Y',
    p_plug_query_row_template=> 1,
    p_plug_query_headings_type=> 'COLON_DELMITED_LIST',
    p_plug_query_row_count_max => 500,
    p_plug_display_condition_type => '',
    p_plug_customized=>'0',
    p_plug_caching=> 'NOT_CACHED',
    p_plug_comment=> '');
    end;
    declare
    s varchar2(32767) := null;
    l_clob clob;
    l_length number := 1;
    begin
    s:=s||'select '||unistr('\000a')||
    ' '''' class, --use grayComment for gray look'||unistr('\000a')||
    ' ''Note'' note_type,'||unistr('\000a')||
    ' replace(sys.htf.escape_sc(dbms_lob.substr(note,2000,1)),chr(10),''
    '') note_text,'||unistr('\000a')||
    ' '''' attribute_1,'||unistr('\000a')||
    ' '''' attribute_2,'||unistr('\000a')||
    ' '''' attribute_3,'||unistr('\000a')||
    ' '''' attribute_4,'||unistr('\000a')||
    ' lower(created_by)||'' - ''||to_char(created,''Day DD-MON-YYYY HH24:MI'') created_by,'||unistr('\000a')||
    ' apex_util.get_since(created) c';
    s:=s||'reated_on,'||unistr('\000a')||
    ' '''' attribute_5,'||unistr('\000a')||
    ' created'||unistr('\000a')||
    'from EBA_INTRACK_NOTES '||unistr('\000a')||
    'where INCIDENT_ID = :P50_ID '||unistr('\000a')||
    'union all'||unistr('\000a')||
    'select '||unistr('\000a')||
    ' ''grayComment'' class, --use grayComment for gray look'||unistr('\000a')||
    ' ''Update'' note_type,'||unistr('\000a')||
    ' case follow_up_type '||unistr('\000a')||
    ' when ''STATUS_CHANGE'' then'||unistr('\000a')||
    ' ''Status changed from <strong>''||'||unistr('\000a')||
    ' (select status_name from EBA_INTRACK_STATUS where id = status_old_va';
    s:=s||'l)||''</strong> to <strong>''||'||unistr('\000a')||
    ' (select status_name from EBA_INTRACK_STATUS where id = status_new_val) ||''</strong>'''||unistr('\000a')||
    ' when ''CLOSE_DATE_CHANGE'' then'||unistr('\000a')||
    ' ''Close date changed from <strong>''||status_old_val||''</strong> to <strong>''||status_new_val||''</strong>'''||unistr('\000a')||
    ' when ''ASSIGNEE_CHANGE'' then'||unistr('\000a')||
    ' *''Assignee changed from*+ <strong>''||sys.htf.escape_sc(status_old_val)||''</s';
    s:=s||'trong> to+_ <strong>''||sys.htf.escape_sc(status_new_val)||''</strong>'''||unistr('\000a')||
    ' when ''URGENCY_CHANGE'' then'||unistr('\000a')||
    ' ''Urgency changed from <strong>''||'||unistr('\000a')||
    ' (select URGENCY_NAME from EBA_INTRACK_URGENCY where id = status_old_val)||''</strong> to <strong>''||'||unistr('\000a')||
    ' (select URGENCY_NAME from EBA_INTRACK_URGENCY where id = status_new_val) ||''</strong>'''||unistr('\000a')||
    '     when ''SEVERITY_CHANGE'' then'||unistr('\000a')||
    .... SNIP .....

    Teneriffe_141212 wrote:
    wwv_flow_api.create_page_plug (
    p_id=> 21813153649240572742 + wwv_flow_api.g_id_offset,
    p_flow_id=> wwv_flow.g_flow_id,
    p_page_id=> 50,
    p_plug_name=> 'Right Side',
    p_region_name=>'',
    p_escape_on_http_output=>'Y',
    p_plug_template=> 0,
    p_plug_display_sequence=> 100,
    p_plug_new_grid         => false,
    p_plug_new_grid_row     => false,
    p_plug_new_grid_column  => false,
    p_plug_display_column=> 1,
    p_plug_display_point=> 'REGION_POSITION_03',
    p_plug_item_display_point=> 'ABOVE',
    p_plug_source=> s,
    p_plug_source_type=> 'PLSQL_PROCEDURE',
    p_translate_title=> 'Y',
    p_plug_query_row_template=> 1,
    p_plug_query_headings_type=> 'QUERY_COLUMNS',
    p_plug_query_num_rows => 15,
    p_plug_query_num_rows_type => 'NEXT_PREVIOUS_LINKS',
    p_plug_query_row_count_max => 500,
    p_plug_query_show_nulls_as => ' - ',
    p_plug_display_condition_type => '',
    p_pagination_display_position=>'BOTTOM_RIGHT',
    p_plug_customized=>'0',
    p_plug_caching=> 'NOT_CACHED',
    p_plug_comment=> '');
    end;
    Means that the problem is with a report region on page p_page_id=> 50 of type pl/sql. The display sequence is 100.
    See the source of the region for the offending text.
    Try to debug the sql statement that is returned by the source. Does it return what you expect if you run it in sql workshop.
    Nicolette

  • Bug Tracker Packaged application installation Error.

    Hi,
    I installed 11g (apex came with 11g) and 10g application server. Now, I am trying to install the bug tracker application that came on apex.oracle.com. I am getting this error right off the bat.
    SQL*Plus: Release 11.1.0.6.0 - Production on Mon Oct 29 16:59:51 2007
    Copyright (c) 1982, 2007, Oracle. All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> @bug_tracker_installer_0.9.sql
    APPLICATION 660 - Bug Tracker, 0.9
    Set Credentials...
    Check Compatibility...
    API Last Extended:20070525
    Your Current Version:20070525
    This import is compatible with version: 20060224
    COMPATIBLE (You should be able to run this import without issues.)
    Set Application ID...
    begin
    ERROR at line 1:
    ORA-20001: Package variable g_security_group_id must be set.
    ORA-06512: at "FLOWS_030000.WWV_FLOW_API", line 46
    ORA-06512: at "FLOWS_030000.WWV_FLOW_API", line 238
    ORA-06512: at line 4
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Can somebody tell me what I might be doing wrong here?
    Thank you,
    Rahul.
    edit:
    sorry, didn't mention this earlier, but, I got the same exact error when I was installing 'Issue Tracker' application too.
    Message was edited by:
    RPuttagunta

    Scott,
    It's been a while since I did this, so, forgot. I will go ahead with your suggestion. Thank you.
    Rahul.
    Message was edited by:
    RPuttagunta

  • Stacked Bar Chart with data from a Web Service

    Hi,
    I'm working on Dashboard Design (version 14.0.1.287) and I'm trying to create a chart linked to data from a webservice.
    With a Year in input, my webservice gives an Amount per Cities and Products
    Data retrieved look like this (Sheet1) :
    Paris          Tablets          45
    Paris          Laptops          12
    Paris          Cellulars          89
    New-York     Tablets          56
    New-York     Laptops          36
    New-York     Cellulars          1
    Londres          Tablets          150
    Londres          Laptops          3
    Londres          Cellulars          45
    Then I use a Pivot Table (created manually in Excel) looking like this (Sheet2) :
                   Tablets     Laptops     Cellulars
    Paris          45          12          89
    New-York     56          36          1
    Londres          150          3          45
    The chart is a Stacked Bar Chart plugged on the previous Pivot Table
    I create 3 series (one per Product), values (X) are set with Amount
    Category labels (Y) are set with Cities
    The goal is to have a dynamic chart (series and categories must update if a new city or a new product appears)
    So my question is : how can I set up the chart directly with data retrieved from webservice on Sheet1?
    Thx a lot !
    Nicolas
    Edited by: nicolasheurtevin on Sep 14, 2011 4:58 PM

    hi
    First thing , bad news if you are using .Net framework 1,
    just forget it, Flex 2 doesn't work well with framework 1, but 2nd,
    good news, if you want to use webservices, you'll have to make an
    array of objects on .Net Side and send it as objects to flex, i saw
    an example on the net but i can't seem to remember where, on the
    other hand,if you want to simply use, like i do, HTTPSERVICE its a
    very nice way to talk with .Net and you can see my example here
    http://flex1-for-dummies.blogspot.com
    By the way, in your code, you have a request tag , but you
    aren't requesting anything, because if you were you would have to
    make like this
    <mx:request>
    <Artist>{yourinputtext.text}</Artist>
    </mx:request>
    So if you don't have an input text, you don't need a request
    tag, only the operation.

  • How to create a vertical bar chart from a table? (PHP, HTML and CSS)

    Hi everyone,
    I have created a table and wish to proceed to do it even better in terms of analysis pattern. I want
    to create a vertical bar chart from the created table but I dunno how to start it.
    Here is the code for the table:
    <?php
    $gpa11=$_REQUEST['gpa11'];
    $gpa12=$_REQUEST['gpa12'];
    $gpa21=$_REQUEST['gpa21'];
    $gpa22=$_REQUEST['gpa22'];
    $gpa31=$_REQUEST['gpa31'];
    $gpa32=$_REQUEST['gpa32'];
    $gpa41=$_REQUEST['gpa41'];
    $gpa42=$_REQUEST['gpa42'];
    $gpa51=$_REQUEST['gpa51'];
    $gpa52=$_REQUEST['gpa52'];
    ?>
    <!doctype html>
    <html lang="en">
       <head>
          <meta charset="utf-8">
          <meta name="viewport" content="width=1024">
          <title>Feng Mentor Mentee</title>
       </head>
       <body>
          <div id="wrapper">
             <div class="chart">
                <h3>GPA Performance Graph</h3>
                <table id="data-table" border="1" cellpadding="10" cellspacing="0"
                summary="The performance of students throughout the years in university">
                   <thead>
                      <tr>
                         <td> </td>
                         <th scope="col">Year 1</th>
                         <th scope="col">Year 2</th>
                         <th scope="col">Year 3</th>
                         <th scope="col">Year 4</th>
                         <th scope="col">Year 5</th>
                      </tr>
                   </thead>
                   <tbody>
                      <tr>
                         <th scope="row">Sem 1</th>
                         <td><?php echo $gpa11;?></td>
                         <td><?php echo $gpa21;?></td>
                         <td><?php echo $gpa31;?></td>
                         <td><?php echo $gpa41;?></td>
                         <td><?php echo $gpa51;?></td>
                      </tr>
                      <tr>
                         <th scope="row">Sem 2</th>
                         <td><?php echo $gpa12;?></td>
                         <td><?php echo $gpa22;?></td>
                         <td><?php echo $gpa32;?></td>
                         <td><?php echo $gpa42;?></td>
                         <td><?php echo $gpa52;?></td>
                      </tr>
                   </tbody>
                </table>
             </div>
          </div>
       </body>
    </html>
    Here's the look:
                                                              GPA Performance Graph                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         
    Year 1
    Year 2
    Year 3
    Year 4
    Year 5
    Sem 1
    Sem 2
    Please help me on this because this is my 1st project on php.

    Hi
    Are you using BI query? If yes then follow the steps -
    1. Take Sales org in rows of BI query. & take invoice type & Key figure in Columns.
    2. In VC use this query & drag chart from the output of this query.
    3. Right click on chart & go to 'Configure Element'. There select Chart Type as 'Bar chart'
    4. Below that you will get default option as clustered, there you select 'Stacked'
    5. Create Data series as per your requirement.
    6. Arrange proper layout of the model & then deploy.
    You will get required output in stacked format.
    Regards
    Sandeep

  • How to get the Grid lines in the background of bar chart

    How to get the background of bar chart given in the following link
    http://javafx.com/docs/articles/controls/barChart.jpg
    thanks in advance

    Set the border attribute of the table tag to zero.  Use CSS to assign your borders like this -
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Untitled Document</title>
    <style type="text/css">
    table {
              border-collapse:collapse;
              border:1px solid black;
    tr {
              border:1px solid black;
    tr.top {
              border-bottom:none;
    tr.bottom {
              border-top:none;
    </style>
    </head>
    <body>
    <table width="600" border="0">
      <tr class="top">
        <td> </td>
        <td> </td>
        <td> </td>
      </tr>
      <tr class="bottom">
        <td> </td>
        <td> </td>
        <td> </td>
      </tr>
      <tr>
        <td> </td>
        <td> </td>
        <td> </td>
      </tr>
    </table>
    </body>
    </html>

  • Help with stacked bar chart

    Hello,
    I'm looking for help regarding horizontal stacked bar chart. Typically for stacked bars Publisher seems to want data for each stacks per row, but my data looks like this:
    <DATA>
    <ROW>
    <TYPE>Type 1</TYPE>
    <CLASS>A</CLASS>
    <TOTAL>10</TOTAL>
    </ROW>
    <ROW>
    <TYPE>Type 2</TYPE>
    <CLASS>B</CLASS>
    <TOTAL>10</TOTAL>
    </ROW>
    <ROW>
    <TYPE>Type 1</TYPE>
    <CLASS>B</CLASS>
    <TOTAL>20</TOTAL>
    </ROW>
    <ROW>
    <TYPE>Type 2</TYPE>
    <CLASS>A</CLASS>
    <TOTAL>10</TOTAL>
    </ROW>
    <TYPE>Type 3</TYPE>
    <CLASS>A</CLASS>
    <TOTAL>40</TOTAL>
    </ROW>
    </DATA>
    So each bar would be the TYPE element, and each stack within the bar would be the CLASS element.
    Here is a very crude drawing of what I would want the chart to look like: http://i.imgur.com/3gEdEQ5.png
    How can I achieve this? Thanks in advance.

    Jody,
    I'm sorry that I missed that you didn't want an overlay solution. You wrote it plainly, I just didn't read carefully.
    This is as close as I could come to how I now read your request:
    Here I have charted your Actual and a column of zeros that I have called the Goal Reference. The last column contains the goal values and I have used them as Positive Custom Error Bars for the Goal Reference series. I'm not thrilled with the look, but unless I know for sure that I'm on the right track, I'll leave it there for now. The width difference between the goal and the actual can be adjusted.
    Jerry

  • Stacked bar chart issue

    I have a stacked bar chart that works fine until one of the series involved returns no data - then it shows an empty chart with "no data found" on top. Anyone has any idea? Thanks

    Sorry for expressing my proposal in a wrong way. This is what I meant:
    http://htmldb.oracle.com/pls/otn/f?p=31517:46
    If you click on the dept 70 (which doesn't exist in my table) the chart will still show up. This workarround is good for the most of the cases where there is a requirement like yours. There , you will also find the chart query behind.
    The problem of no data found message was in my case present mostly there, where I needed to track a development of values grouped by time periods (months, quarters) and then query some portions of it.
    Denes Kubicek

  • How to control the height of bars in a bar chart?

    I'm making a ton of horizontal bar charts and need the heights to be the same. Clicking the bar chart tool, it asks for dimensions of the chart, but that whacks out the height of bars from chart to chart.
    It would also be nice to be able to delete the bottom row of numbers as well...
    Thanks!

    We almost had an upgrade to the chart and graph feature, but they pulled the plug and I have not heard anything for two versions now.
    I might try again I just had an idea since my original feature request was for print only I think if it were for video, av and web as well it could spark a new interest. There are I am told some software that is dedicated chart and graph making programs with the right kind of features.
    There might be a work around, I will check it out.
    Thebest I could come up with is to select only the bars then use the Effect>Convert to Shape>Rectangle use relative with the extra width set to "0" andthe height to what ever is required to make your desired width.
    then copy the chart and use it like a template then select the bars again and adjust the to match the other chart. but it is not automatic though you can adjust all the bars at one time.

  • Colors of bar chart dynamically

    Hi,
    I need help on this requirement.  I have a product as a dimension and hex# color code as its attribute,  and they both coming over through the datasource.  I want to create a bar graph that would use the color hex from each product to display it on the graph.  For example,  if product A with hex #0000F1 comes up, then the bar chart for that particular product should display the color #0000F1.  Any information or examples would be very helpful. Thank you in advance.
    Vinh

    Hi Vinh,
    Do you mean that you will have the product on the x-axis of the chart and you want to display a different colour for each product bar on the same chart, or will you have a product selector that displays a single chart only for that product against a specific dimension so that all bars are the same colour determined by the colour attribute of the product?
    I am assuming your requirement is the former, in which case rather than jumping through scripting and CSS hoops, I would encourage you to reconsider the business need for this requirement in the context of Stephen Few's Rule #4 in the article Practical Rules for Using Color in Charts, an excerpt of which is shown below:
    Regards,
    Mustafa.

  • Changing Colors of Bar chart in Omini Portlets

    Hi,<BR>
    Is is possible to change the colors of bar charts in Omini Portltets? If so can any one tell How to change the colors.<BR>
    Thanks,<BR>
    Vijay.

    Hi Vinh,
    Do you mean that you will have the product on the x-axis of the chart and you want to display a different colour for each product bar on the same chart, or will you have a product selector that displays a single chart only for that product against a specific dimension so that all bars are the same colour determined by the colour attribute of the product?
    I am assuming your requirement is the former, in which case rather than jumping through scripting and CSS hoops, I would encourage you to reconsider the business need for this requirement in the context of Stephen Few's Rule #4 in the article Practical Rules for Using Color in Charts, an excerpt of which is shown below:
    Regards,
    Mustafa.

  • Help with a stacked bar chart

    I am attempting to create a stacking bar chart which expresses monthly sales goals and monthly actual sales together as one bar. Visually, it would look like a thermometer, with the sales goal rendered as an outline, and the actual sales filling in the outline. So both bars should start at 0.
    Dollar amounts appear up the x-axis, and the months appear across the y-axis. There will be 12 bars per chart. Unfortunately, each month has a different goal.
    Is there a way to create this type of chart, using only one chart? (Not by stacking two charts on top of each other.) My boss, who has requested this chart, will be updating it herself, and has told me she needs it to be as simple as possible.
    Does anyone have any suggestions for getting the bars to stack on top of each other, instead of adding together? Thank you for your time and assistance.

    Jody,
    I'm sorry that I missed that you didn't want an overlay solution. You wrote it plainly, I just didn't read carefully.
    This is as close as I could come to how I now read your request:
    Here I have charted your Actual and a column of zeros that I have called the Goal Reference. The last column contains the goal values and I have used them as Positive Custom Error Bars for the Goal Reference series. I'm not thrilled with the look, but unless I know for sure that I'm on the right track, I'll leave it there for now. The width difference between the goal and the actual can be adjusted.
    Jerry

  • Flash Bar Chart Customization

    I am trying to get a flash bar chart that shows multiple bars on a single row. The X Axis is time, so basically I want to show that something happens from 10am until 12am, and then something else happens from 3pm until 5pm. But I want them both on the same row. They cannot be stacked, because there will always be gaps.
    I looked in the Anychart documentation, and it appears that the attribute point_padding should address this problem, merely by giving it a value of -1 (because it is a percentage). But that has no impact. I tried adding it to the chart node, the block node, the set node, still nothing.
    I am trying to do this with a 2D Horizontal Range chart.
    My questions: Does Apex's chart plug-in not include some standard functionality from Anychart? Or is this perhaps an older version and is that attribute not supported? And is there anyplace where I can see what is included in the version Oracle distributes? Or failing that, does anyone have a better suggestion for how to do this?
    Thanks in advance,
    Michael

    If you are using Apex version 3, it uses Anychart version 3.
    If you want to use the custom XML option on your chart you need to know the XML spec. If you look on the Anychart website, their documentation is for Anychart version 4 and will not work! Check out the version 3 documentation at;
    http://3.anychart.com/products/docs/anychart/index.htm

  • Displaying graphical representation of data in hash tables as bar chart?

    I want to be able to display results in my hash table as a bar chart i don't know how to do it could someone help me I've looked through tutorials couldn't find any information that actually helped.
    In my program it doesnt allow matching the capital and small letters
    so for instance if I already have Mike it allows for me to input mike in again so there are 2 Mikes.
    I also want to do a simple user interface the tutorial for it is not simple to understand could any one tell me how to create a simple user interface like putting a button into a place wher i want it to be.
    im not asking anyone to do it for me i just want people to show me how to do it
    thank you
    Edited by: Tek_Hedef on Dec 1, 2007 4:30 AM

    Thanks for the ideas pal but I did have a go at it but my bit of code is making it crash but i removed it now so here's what I have so far
    import java.io.*;
    import java.util.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    class StudentDetails extends JFrame implements ActionListener
         private JTextField StudentNameTxt, StudentMarkTxt;
        private JButton DeleteStudentDetailsBtn, DisplayAllStudentsBtn, SearchStudentBtn, FailedStudentsBtn, PassedStudentsBtn, DistinctionStudentsBtn, AddStudentDetailsBtn, ExitBtn;
        private JPanel DisplayStudentDetailsPnl;
        private JLabel StudentNameLbl, StudentMarkLbl;
        private JTextArea DisplayResultsTxt;
        private Hashtable StudentDetailsTbl;
        private String StudentName, StudentMark;
        public static void main(String[] args)
            StudentDetails frame = new StudentDetails();
             frame.setSize(600,600);
            frame.createGUI();
            frame.setVisible(true);
        public void display(JPanel DisplayStudentDetailsPnl)
            Graphics paper = DisplayStudentDetailsPnl.getGraphics();
            paper.setColor(Color.white);
            paper.fillRect(0, 0, 500, 500);
            paper.setColor(new Color((int)(Math.random()*255),(int)(Math.random()*255),(int)(Math.random()*255) ));
        private void createGUI()
            setDefaultCloseOperation(EXIT_ON_CLOSE);
            Container window = getContentPane();
            window.setLayout(new FlowLayout());
            StudentDetailsTbl = new Hashtable();
            StudentNameLbl = new JLabel("Student Name");
            window.add(StudentNameLbl);
            StudentNameTxt = new JTextField(15);
            window.add(StudentNameTxt);
            StudentMarkLbl = new JLabel("Student Mark");
            window.add(StudentMarkLbl);
            StudentMarkTxt = new JTextField(3);
            window.add(StudentMarkTxt);
            AddStudentDetailsBtn = new JButton("Add Student and Mark");
            window.add(AddStudentDetailsBtn);
            AddStudentDetailsBtn.addActionListener(this);
            DeleteStudentDetailsBtn = new JButton("Delete Student");
            window.add(DeleteStudentDetailsBtn);
            DeleteStudentDetailsBtn.addActionListener(this);
            DisplayAllStudentsBtn = new JButton("Display all Students and Marks");
            window.add(DisplayAllStudentsBtn);
            DisplayAllStudentsBtn.addActionListener(this);
            SearchStudentBtn = new JButton("Search Student");
            window.add(SearchStudentBtn);
            SearchStudentBtn.addActionListener(this);
            FailedStudentsBtn = new JButton("Students which Failed");
            window.add(FailedStudentsBtn);
            FailedStudentsBtn.addActionListener(this);
            PassedStudentsBtn = new JButton("Students which Passed");
            window.add(PassedStudentsBtn);
            PassedStudentsBtn.addActionListener(this);
            DistinctionStudentsBtn = new JButton("Students with Distinction");
            window.add(DistinctionStudentsBtn);
            DistinctionStudentsBtn.addActionListener(this);
            ExitBtn = new JButton("Exit");
            window.add(ExitBtn);
            ExitBtn.addActionListener(this);
            DisplayResultsTxt = new JTextArea();
            DisplayResultsTxt.setPreferredSize(new Dimension(200, 200));
            DisplayResultsTxt.setBackground(Color.white);
            window.add(DisplayResultsTxt);
            DisplayResultsTxt.enable(false);
        public void actionPerformed (ActionEvent e)
             if (e.getSource()== AddStudentDetailsBtn)
                  StudentName = StudentNameTxt.getText();
                   StudentMark = StudentMarkTxt.getText();
                  DisplayResultsTxt.setText("");
                  StudentDetailsTbl.put(StudentName, StudentMark);
                Enumeration enumStudentName = StudentDetailsTbl.keys();
                Enumeration enumStudentMark = StudentDetailsTbl.elements();
                String[] keys = (String[]) StudentDetailsTbl.keySet().toArray(new String[0]);       
                Arrays.sort(keys); 
                    for (String key : keys)
                         DisplayResultsTxt.append(key + " : " + StudentDetailsTbl.get(key)+ "\n");
                    StudentNameTxt.setText("");
                    StudentMarkTxt.setText("");
             if (e.getSource() == DeleteStudentDetailsBtn )
             if (StudentDetailsTbl.containsKey(StudentNameTxt.getText().trim()))
                  DisplayResultsTxt.setText("");     
                  String txt = StudentNameTxt.getText();
                Enumeration enumStudentName = StudentDetailsTbl.keys()  ;                   
                    String currentelement = (String)enumStudentName.nextElement();
                     StudentDetailsTbl.remove(txt);
                     DisplayResultsTxt.append(txt + " has been deleted");  
            if (e.getSource() == SearchStudentBtn)
            if (StudentDetailsTbl.containsKey(StudentNameTxt.getText().trim()))
                 String txt = StudentNameTxt.getText();
                 String result;
                 DisplayResultsTxt.setText("");
                 Enumeration enumStudentName = StudentDetailsTbl.keys();
                Enumeration enumStudentMark = StudentDetailsTbl.elements();
                   while (enumStudentName.hasMoreElements())
                        String currentelement = (String)enumStudentName.nextElement();
                    result = (StudentDetailsTbl.get(currentelement).toString());
                        if (txt.equals(currentelement))
                             DisplayResultsTxt.append(currentelement + " " + result);
                        else JOptionPane.showMessageDialog(null, "Student Name could not be identified");
            if (e.getSource() == DisplayAllStudentsBtn)
                  DisplayResultsTxt.setText("");
                 Enumeration enumStudentName = StudentDetailsTbl.keys();
                Enumeration enumStudentMark = StudentDetailsTbl.elements();
                while (enumStudentName.hasMoreElements())
                DisplayResultsTxt.append(enumStudentName.nextElement()+ " " + enumStudentMark.nextElement()+ "\n");
            if (e.getSource() == PassedStudentsBtn)
                 DisplayResultsTxt.setText("");
                 Enumeration enumStudentName = StudentDetailsTbl.keys();
                Enumeration enumStudentMark = StudentDetailsTbl.elements();
                while (enumStudentName.hasMoreElements())
                     int Mark = Integer.parseInt((String)enumStudentMark.nextElement());
                     String Name = (String)enumStudentName.nextElement();
                     if (Mark >=40)
                          DisplayResultsTxt.append(Name + " " + Mark + "\n");
            if (e.getSource() == FailedStudentsBtn)
                 DisplayResultsTxt.setText("");
                 Enumeration enumStudentName = StudentDetailsTbl.keys();
                Enumeration enumStudentMark = StudentDetailsTbl.elements();
                while (enumStudentName.hasMoreElements())
                     int Mark = Integer.parseInt((String)enumStudentMark.nextElement());
                     String Name = (String)enumStudentName.nextElement();
                     if (Mark <40)
                          DisplayResultsTxt.append(Name + " " + Mark + "\n");
            if (e.getSource() == DistinctionStudentsBtn)
                 DisplayResultsTxt.setText("");
                 Enumeration enumStudentName = StudentDetailsTbl.keys();
                Enumeration enumStudentMark = StudentDetailsTbl.elements();
                while (enumStudentName.hasMoreElements())
                     int Mark = Integer.parseInt((String)enumStudentMark.nextElement());
                     String Name = (String)enumStudentName.nextElement();
                     if (Mark >=75)
                          DisplayResultsTxt.append(Name + " " + Mark + "\n");
    }

  • Adding data to a bar chart "live"

    Is it possible to add data to a series during a presentation so that the bar chart stays on screen but an extra column appears. I don't want to keep fading in and out I want it on screen all the time. I'm trying to do a "live scoreboard" using bars to represent scores. Any ideas? Many thanks....

    Keynote builds what's going to be displayed prior to putting it up onscreen. So, there isn't currently a way to alter any of that information once the presentation starts.

Maybe you are looking for

  • How to create a XPdf doc. in Acrobat Pro 10 through code?

    Hi All..!!! I wanted to know whether there is a way to create an XPdf document in Acrobat Pro 10. I know that we can create a pdf document through code using the SDK.. I wanted to know whether the same can be done for XPdf documents.. Thanks!! 

  • Export/Import the new Theme from Apex 2.2

    Ok, I am so very sold the new theme 15 in Apex 2.2 after 1 day playing. I really want to use it in the new app I am going to build very soon. Export/Import does not work at all because all the images whatsoever are NOT there. May somebody let me know

  • T-CODES AND TABLES IN CRM

    Hi all, Please can anyone help me out in how to get T-codes in SAP CRM as I am beginner working in SAP CRM and also how to get main CRM tables which are important and to be remembered mostly. Regards, Quantuscumque Edited by: quantuscumque on Aug 16,

  • Credit Checking Functionality in OM

    Hi All, Could you please advise us regards this ...whether the Credit Checking validation for a given Customer could be triggerred at the order line level. Currently in the Order Mgmnt setup for the Transaction Types ( order types ) we have mentioned

  • Choosing the view dynamically from mm02

    Hi Experts, I am making a BDC Program  of transaction MM02, As per the requirement I need to choose a particular  view and  change the value of a field (which is a custom field added through extention) now  i have cheked many materials , with change