Displaying a timeline on a panel

Hi everyone!!
I am trying to develop a project management tool, so I need to know the best way of implementing a timeline (in months) to display on a JPanel. Basically, when the user selects a start date and duration of the project, I need a timeline to appear depending on what the user has selected from the combo box. The timeline needs to start from the start date and continue for x amount of months (where x is the duration). At the moment I have used loads of switch statements, but there must be a much better and efficient way of implementing this. If anyone can help me with this then it will be most appreciated. My code is provided below which can be complied and run from the "NewChartTest" class file. Thanks.
* NewChartTest.java
* 23/11/02 (Date start)
* This class is for test purposes for
* the "New Chart" wizard
import javax.swing.*;
import javax.swing.event.*;
import java.awt.*;
import java.awt.event.*;
import java.io.*;
public class NewChartTest extends JPanel
private JButton newButton;
public JFrame wizardFrame;
static NewChartTest instance;     
public NewChartTest()
     instance = this;
// create new button
newButton = new JButton("New Chart");
// create tooltip for every button
newButton.setToolTipText("New Chart");
// add our button to the JPanel
add(newButton);
// construct button action
NewButtonListener listener1 = new NewButtonListener();
// Add action listener to button
newButton.addActionListener(listener1);
private class NewButtonListener implements ActionListener
public void actionPerformed(ActionEvent evt)
wizardFrame = new JFrame("New Chart Wizard*");
NewWizardPanel wizardPanel = new NewWizardPanel();
wizardFrame.getContentPane().add(wizardPanel);
wizardFrame.setSize(410, 280);
wizardFrame.setVisible(true);
// Main entry point into the ToolBarPanel class
public static void main(String[] args)
// Create a frame to hold us and set its title
JFrame frame = new JFrame("New Chart Test");
// Set frame to close after user request
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
// Add our tab panel to the frame
NewChartTest nct = new NewChartTest();
frame.getContentPane().add(nct, BorderLayout.CENTER);
// Resize the frame
frame.setSize(680, 480);
// Make the windows visible
frame.setVisible(true);
* NewWizardPanel.java
* 23/11/02 (Date start)
* This class is for test purposes for
* the "New Chart" wizard
import javax.swing.*;
import javax.swing.event.*;
import javax.swing.border.*;
import java.awt.*;
import java.awt.event.*;
import java.io.*;
public class NewWizardPanel extends JPanel
private JLabel projectNameLabel;
private JLabel maxCharacterLabel;
private JLabel durationLabel;
private JLabel monthLabel;
private JLabel startDate;
private JLabel forwardDash;
private JLabel forwardDash1;
private JLabel dateFormatLabel;
public JTextField projectName;
private JComboBox projectDay;
private JComboBox projectMonth;
private JComboBox projectYear;
private JComboBox projectDuration;
public String daySelect;
public String monthSelect;
public String yearSelect;
public String durationSelect;
private JButton okButton;
private JButton cancelButton;
private JFrame wizardFrame;
private JFrame drawChart;
static NewWizardPanel instance1;
public NewWizardPanel()
instance1 = this;
// create additional panels to hold objects
JPanel topPanel = new JPanel();
JPanel middlePanel = new JPanel();
JPanel lowerPanel = new JPanel();
JPanel buttonPanel = new JPanel();
// Create a border around the "toppanel"
Border etched = BorderFactory.createBevelBorder(BevelBorder.RAISED, Color.black, Color.blue);
Border titled = BorderFactory.createTitledBorder(etched, "Please provide a title to your project");
topPanel.setBorder(titled);
// Create a border around the "middlepanel"
Border etched1 = BorderFactory.createBevelBorder(BevelBorder.RAISED, Color.black, Color.blue);
Border titled1 = BorderFactory.createTitledBorder(etched1, "Please enter the start date of your project");
middlePanel.setBorder(titled1);
// Create a border around the "lowerpanel"
Border etched2 = BorderFactory.createBevelBorder(BevelBorder.RAISED, Color.black, Color.blue);
Border titled2 = BorderFactory.createTitledBorder(etched2, "Please select the duration of your project");
lowerPanel.setBorder(titled2);
// initialise label objects
projectNameLabel = new JLabel("Project Name", JLabel.LEFT);
maxCharacterLabel = new JLabel("(Max 20 Chars)");
durationLabel = new JLabel("Duration (in months)", JLabel.LEFT);
monthLabel = new JLabel("(1 - 12 months)");
startDate = new JLabel("Project Start Date", JLabel.LEFT);
forwardDash = new JLabel("/");
forwardDash1 = new JLabel("/ 20");
dateFormatLabel = new JLabel("(e.g. 31/12/02)");
projectName = new JTextField(20);
projectName.setColumns(15);
topPanel.validate();
String[] theDay = {"01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16",
"17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31"};
projectDay = new JComboBox(theDay);
projectDay.setEditable(false);
String[] theMonth = {"01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12"};
projectMonth = new JComboBox(theMonth);
projectMonth.setEditable(false);
String[] theYear = {"01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12"};
projectYear= new JComboBox(theYear);
projectYear.setEditable(false);
String[] theDuration = {"1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"};
projectDuration = new JComboBox(theDuration);
projectDuration.setEditable(false);
// initialise buttons
okButton = new JButton("Ok", new ImageIcon("D:/My Uni Work/Final Year Project/Test/ok.gif"));
cancelButton = new JButton("Cancel", new ImageIcon("D:/My Uni Work/Final Year Project/Test/cancel.gif"));
// set tooltips for buttons
okButton.setToolTipText("Ok");
cancelButton.setToolTipText("Cancel");
// add objects to panels
topPanel.add(projectNameLabel);
topPanel.add(projectName);
topPanel.add(maxCharacterLabel);
middlePanel.add(startDate);
middlePanel.add(projectDay);
middlePanel.add(forwardDash);
middlePanel.add(projectMonth);
middlePanel.add(forwardDash1);
middlePanel.add(projectYear);
middlePanel.add(dateFormatLabel);
lowerPanel.add(durationLabel);
lowerPanel.add(projectDuration);
lowerPanel.add(monthLabel);
buttonPanel.add(okButton);
buttonPanel.add(cancelButton);
// create instance of cancelButtonListener
CancelButtonListener cancelListen = new CancelButtonListener();
// create instance of okButtonListner
OkButtonListener okListen = new OkButtonListener();
// add actionListener for the cancel/ok button
cancelButton.addActionListener(cancelListen);
okButton.addActionListener(okListen);
// use Box layout to arrange panels
Box hbox2 = Box.createHorizontalBox();
hbox2.add(topPanel);
Box hbox3 = Box.createHorizontalBox();
hbox3.add(middlePanel);
Box hbox4 = Box.createHorizontalBox();
hbox4.add(lowerPanel);
Box hbox5 = Box.createHorizontalBox();
hbox5.add(buttonPanel);
Box vbox = Box.createVerticalBox();
vbox.add(hbox2);
vbox.add(Box.createGlue());
vbox.add(hbox3);
vbox.add(Box.createGlue());
vbox.add(hbox4);
vbox.add(Box.createGlue());
vbox.add(hbox5);
this.add(vbox, BorderLayout.NORTH);
private class CancelButtonListener implements ActionListener
public void actionPerformed(ActionEvent event)
Object source = event.getSource();
if(source == cancelButton)
NewChartTest.instance.wizardFrame.setVisible(false);
private class OkButtonListener implements ActionListener
public void actionPerformed(ActionEvent event)
String nameText = projectName.getText().trim();
int textSize = nameText.length();
daySelect = (String)projectDay.getSelectedItem();
monthSelect = (String)projectMonth.getSelectedItem();
yearSelect = (String)projectYear.getSelectedItem();
durationSelect = (String)projectDuration.getSelectedItem();
if(textSize > 20)
//display a JOptionPane
JOptionPane.showMessageDialog(NewWizardPanel.instance1, "You have entered a title that is greater than 20 characters. Please change this.",
"Text too Long", JOptionPane.ERROR_MESSAGE);
else if(textSize == 0)
//display a JOptionPane
JOptionPane.showMessageDialog(NewWizardPanel.instance1, "You have not entered a project name. Please do so (Maximum 20 Characters).",
"No Project Name Entered", JOptionPane.ERROR_MESSAGE);
else if(daySelect == "30" && monthSelect == "02" || daySelect == "31" && monthSelect == "02" || daySelect == "31" && monthSelect == "04" ||
daySelect == "31" && monthSelect == "06" || daySelect == "31" && monthSelect == "09" || daySelect == "31" && monthSelect == "11")
JOptionPane.showMessageDialog(NewWizardPanel.instance1, "You have selected an invalid date. Please re-check that the date is valid.",
"Invalid Date Selected", JOptionPane.ERROR_MESSAGE);
else
NewChartTest.instance.wizardFrame.setVisible(false);
drawChart = new JFrame("Milestone Chart Panel");
DrawPanel drawingChart = new DrawPanel();
drawChart.getContentPane().add(drawingChart);
drawChart.setSize(1000, 510);
drawChart.setVisible(true);
* DrawPanel.java
* 27/11/02 (Date start)
* This class is for test purposes for
* the "New Chart" wizard
import javax.swing.*;
import javax.swing.event.*;
import java.awt.*;
import java.awt.event.*;
import java.awt.geom.*;
import java.io.*;
public class DrawPanel extends JPanel
private JLabel aName;
private JLabel date;
private JLabel day;
private JLabel forwardSlash1;
private JLabel month;
private JLabel forwardSlash2;
private JLabel year;
private JLabel empty;
private JLabel startingMonth;
private JPanel nameHolder;
private JPanel dateHolder;
private JPanel emptyPanel;
private JPanel calendarPanel;
private JPanel timelinePanel;
private JPanel zoomInButtonPanel;
private JPanel zoomOutButtonPanel;
private JTextField projectName;
private String daySelect;
private JButton zoomIn;
private JButton zoomOut;
private JScrollPane timeLineScroll;
private String theDuration;
private String startMonth;
private String monthStart;
private String[] theMonths = {"January", "February", "March", "April", "May", "June", "July", "August",
"September", "October", "November", "December"};
//private String requiredMonths;
public DrawPanel()
nameHolder = new JPanel();
dateHolder = new JPanel();
emptyPanel = new JPanel();
calendarPanel = new JPanel();
calendarPanel.setBackground(Color.white);
timelinePanel = new timeLinePanel();
timelinePanel.setBackground(Color.white);
zoomInButtonPanel = new JPanel();
zoomInButtonPanel.setBackground(Color.black);
zoomOutButtonPanel = new JPanel();
zoomOutButtonPanel.setBackground(Color.black);
String name = NewWizardPanel.instance1.projectName.getText().trim();
aName = new JLabel(name, JLabel.CENTER);
date = new JLabel("Date Start:");
String dayStart = NewWizardPanel.instance1.daySelect;
day = new JLabel(dayStart);
forwardSlash1 = new JLabel("/");
monthStart = NewWizardPanel.instance1.monthSelect;
month = new JLabel(monthStart);
forwardSlash2 = new JLabel("/");
String yearStart = NewWizardPanel.instance1.yearSelect;
year = new JLabel(yearStart);
empty = new JLabel(" ");
// initialise buttons required for panel
zoomIn = new JButton(new ImageIcon("D:/My Uni Work/Final Year Project/Test/zoomIn.gif"));
zoomOut = new JButton(new ImageIcon("D:/My Uni Work/Final Year Project/Test/zoomOut.gif"));
// set the tool tips for the buttons
zoomIn.setToolTipText("Zoom In");
zoomOut.setToolTipText("Zoom Out");
theDuration = NewWizardPanel.instance1.durationSelect;
drawTimeLine(monthStart, theDuration);
nameHolder.add(aName);
dateHolder.add(date);
dateHolder.add(day);
dateHolder.add(forwardSlash1);
dateHolder.add(month);
dateHolder.add(forwardSlash2);
dateHolder.add(year);
emptyPanel.add(empty);
zoomInButtonPanel.add(zoomIn);
zoomOutButtonPanel.add(zoomOut);
dateHolder.setPreferredSize(new Dimension(200, 30));
emptyPanel.setPreferredSize(new Dimension(750, 30));
calendarPanel.setPreferredSize(new Dimension(950, 30));
timelinePanel.setPreferredSize(new Dimension(950, 300));
zoomInButtonPanel.setPreferredSize(new Dimension(100, 50));
zoomOutButtonPanel.setPreferredSize(new Dimension(100, 50));
// use Box layout to arrange panels
Box hbox1 = Box.createHorizontalBox();
hbox1.add(nameHolder);
Box hbox2 = Box.createHorizontalBox();
hbox2.add(dateHolder);
hbox2.add(emptyPanel);
Box hbox3 = Box.createHorizontalBox();
hbox3.add(calendarPanel);
Box hbox4 = Box.createHorizontalBox();
hbox4.add(timelinePanel);
Box hbox5 = Box.createHorizontalBox();
hbox5.add(zoomOutButtonPanel);
hbox5.add(zoomInButtonPanel);
Box vbox = Box.createVerticalBox();
vbox.add(hbox1);
vbox.add(Box.createGlue());
vbox.add(hbox2);
vbox.add(Box.createGlue());
vbox.add(hbox3);
vbox.add(Box.createGlue());
vbox.add(hbox4);
vbox.add(Box.createGlue());
vbox.add(hbox5);
this.add(vbox, BorderLayout.NORTH);
public void drawTimeLine(String aStartMonth, String aDuration)
if(monthStart == "01")
startMonth = theMonths[0];
System.out.println(theDuration);
int duration = Integer.parseInt(theDuration);
switch(duration)
case 1:
JLabel months = new JLabel(startMonth);
calendarPanel.add(months);
break;
case 2:
JLabel months1 = new JLabel(startMonth + " " + theMonths[1]);
calendarPanel.add(months1);
break;
case 3:
JLabel months2 = new JLabel(startMonth + " " + theMonths[1] + " " + theMonths[2]);
calendarPanel.add(months2);
break;
case 4:
JLabel months3 = new JLabel(startMonth + " " + theMonths[1] + " " + theMonths[2] + " " + theMonths[3]);
calendarPanel.add(months3);
break;
case 5:
JLabel months4 = new JLabel(startMonth + " " + theMonths[1] + " " + theMonths[2] + " " + theMonths[3] + " " + theMonths[4]);
calendarPanel.add(months4);
break;
case 6:
JLabel months5 = new JLabel(startMonth + " " + theMonths[1] + " " + theMonths[2] + " " + theMonths[3] + " " + theMonths[4]
+ " " + theMonths[5]);
calendarPanel.add(months5);
break;
case 7:
JLabel months6 = new JLabel(startMonth + " " + theMonths[1] + " " + theMonths[2] + " " + theMonths[3] + " " + theMonths[4]
+ " " + theMonths[5] + " " + theMonths[6]);
calendarPanel.add(months6);
break;
case 8:
JLabel months7 = new JLabel(startMonth + " " + theMonths[1] + " " + theMonths[2] + " " + theMonths[3] + " " + theMonths[4]
+ " " + theMonths[5] + " " + theMonths[6] + " " + theMonths[7]);
calendarPanel.add(months7);
break;
case 9:
JLabel months8 = new JLabel(startMonth + " " + theMonths[1] + " " + theMonths[2] + " " + theMonths[3] + " " + theMonths[4]
+ " " + theMonths[5] + " " + theMonths[6] + " " + theMonths[7] + " " + theMonths[8]);
calendarPanel.add(months8);
break;
case 10:
JLabel months9 = new JLabel(startMonth + " " + theMonths[1] + " " + theMonths[2] + " " + theMonths[3] + " " + theMonths[4]
+ " " + theMonths[5] + " " + theMonths[6] + " " + theMonths[7] + " " + theMonths[8] + " " + theMonths[9]);
calendarPanel.add(months9);
break;
case 11:
JLabel months10 = new JLabel(startMonth + " " + theMonths[1] + " " + theMonths[2] + " " + theMonths[3] + " " + theMonths[4]
+ " " + theMonths[5] + " " + theMonths[6] + " " + theMonths[7] + " " + theMonths[8] + " " + theMonths[9] + " " + theMonths[10]);
calendarPanel.add(months10);
break;
case 12:
JLabel months11 = new JLabel(startMonth + " " + theMonths[1] + " " + theMonths[2] + " " + theMonths[3] + " " + theMonths[4]
+ " " + theMonths[5] + " " + theMonths[6] + " " + theMonths[7] + " " + theMonths[8] + " " + theMonths[9] + " " + theMonths[10] + " " + theMonths[11]);
calendarPanel.add(months11);
break;
} // + loads more "if else" and "switch" statements - there must be an easier and more effiecient way!!!!
class timeLinePanel extends JPanel
private int x1 = 50;
private int x2 = 50;
private int y1 = 7;
private int y2 = 13;
public void paintComponent(Graphics g)
super.paintComponent(g);
Graphics2D g2 = (Graphics2D)g;
Line2D timeLine = new Line2D.Double(50, 10, 900, 10);
g2.draw(timeLine);
g2.setColor(Color.blue);
Line2D separatorStart = new Line2D.Double(50, 7, 50, 13);
g2.draw(separatorStart);
Line2D separatorEnd = new Line2D.Double(900, 7, 900, 13);
g2.draw(separatorEnd);
Line2D Separator1 = new Line2D.Double(x1 + 100 , y1, x2 + 100, y2);
g2.draw(Separator1);
Line2D separator2 = new Line2D.Double(x1 + 200, y1, x2 + 200, y2);
g2.draw(separator2);
Line2D separator3 = new Line2D.Double(x1 + 300, y1, x2 + 300, y2);
g2.draw(separator3);
Line2D separator4 = new Line2D.Double(x1 + 400, y1, x2 + 400, y2);
g2.draw(separator4);
Line2D separator5 = new Line2D.Double(x1 + 500, y1, x2 + 500, y2);
g2.draw(separator5);
Line2D separator6 = new Line2D.Double(x1 + 600, y1, x2 + 600, y2);
g2.draw(separator6);
Line2D separator7 = new Line2D.Double(x1 + 700, y1, x2 + 700, y2);
g2.draw(separator7);
Line2D separator8 = new Line2D.Double(x1 + 800, y1, x2 + 800, y2);
g2.draw(separator8);
//Line2D separator9 = new Line2D.Double(x1 + 900, y1, x2 + 900, y2);
//g2.draw(separator9);
g2.setColor(Color.lightGray);
Line2D dividerLine = new Line2D.Double(150, 14, 150, 300);
g2.draw(dividerLine);
Line2D dividerLine1 = new Line2D.Double(250, 14, 250, 300);
g2.draw(dividerLine1);
Line2D dividerLine2 = new Line2D.Double(350, 14, 350, 300);
g2.draw(dividerLine2);
Line2D dividerLine3 = new Line2D.Double(450, 14, 450, 300);
g2.draw(dividerLine3);
Line2D dividerLine4 = new Line2D.Double(550, 14, 550, 300);
g2.draw(dividerLine4);
Line2D dividerLine5 = new Line2D.Double(650, 14, 650, 300);
g2.draw(dividerLine5);
Line2D dividerLine6 = new Line2D.Double(750, 14, 750, 300);
g2.draw(dividerLine6);
Line2D dividerLine7 = new Line2D.Double(850, 14, 850, 300);
g2.draw(dividerLine7);

Haven't looked at all your code by can't you use a loop?
int index = comboBox.getSelectedIndex();
StringBuffer buf = new StringBuffer("Start Month ");
JLabel label = new JLabel();
for (int counter = 0; counter < index; ++ counter)
buf.append(theMonths[counter] + " ");
label.setText(buf.toString());

Similar Messages

  • Hi i am new to labview. i want to extract data from a text file and display it on the front panel. how do i proceed??

    Hi i am new to labview
    I want to extract data from a text file and display it on the front panel.
    How do i proceed??
    I have attached a file for your brief idea...
    Attachments:
    extract.jpg ‏3797 KB

    RoopeshV wrote:
    Hi,
    The below code shows how to read from txt file and display in the perticular fields.
    Why have you used waveform?
    Regards,
    Roopesh
    There are so many things wrong with this VI, I'm not even sure where to start.
    Hard-coding paths that point to your user folder on the block diagram. What if somebody else tries to run it? They'll get an error. What if somebody tries to run this on Windows 7? They'll get an error. What if somebody tries to run this on a Mac or Linux? They'll get an error.
    Not using Read From Spreadsheet File.
    Use of local variables to populate an array.
    Cannot insert values into an empty array.
    What if there's a line missing from the text file? Now your data will not line up. Your case structure does handle this.
    Also, how does this answer the poster's question?

  • Can I obtain the date of the exe and display it on the fropnt panel?

    Hello,
        Is there a way that a Labview program can display the date of the exe and display it on the front panel? I am aware of the version info on the application builder, but I did not see a way to get the date when the exe was created.
    Regards,
    Kaspar

    Hi
    You could use File/Directory Info function in your code like this
    cheers
    David
    Message Edited by David Crawford on 02-24-2010 11:11 PM
    Message Edited by David Crawford on 02-24-2010 11:12 PM
    Attachments:
    App Last Mod.png ‏17 KB

  • Displaying a .jpg on a panel

    Whats the easiest way to display a .jpg on a panel? I haven't done this for so long the implementation seems to have changed... when I tried looking it up I got all kinds of confusing junk like prepare image etc.. I don't need to render or do any b.s. Just display it.
    Thank you for your time and assistance.

    import java.awt.*;
    import java.io.*;
    import java.net.*;
    import javax.imageio.*;
    import javax.swing.*;
    public class JPGDisplay {
      public static void main(String[] args) {
        String url = "file:images/cougar.jpg";
        Image image = null;
        try {
          image = ImageIO.read(new URL(url));
        catch(MalformedURLException mue) {
          System.out.println(mue.getMessage());
        catch(IOException ioe) {
          System.out.println(ioe.getMessage());
        JLabel imageLabel = new JLabel(new ImageIcon(image));
        JPanel panel = new JPanel();
        panel.add(imageLabel);
        JFrame f = new JFrame();
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        f.getContentPane().add(panel);
        f.pack();
        f.setLocationRelativeTo(null);
        f.setVisible(true);
    }

  • How to create a task list view in c# that doesn't display the timeline

    How can I create a view for a task list using c# that doesn't display the timeline.  I want to do this using server side code but I can't seem to find a view property that will hide the timeline.  I know how to do it manually through the UI but
    I need to automate it.
    Caroline

    Hi Garoline,
    We can set ViewData of the view to empty to achieve your requirement. The following code snippet for your reference:
    using (SPSite site = new SPSite("http://sp2013sps/"))
    using (SPWeb web = site.OpenWeb())
    SPList list = web.Lists["TaskList"];
    SPViewCollection allviews = list.Views;
    string viewName = "Test View";
    System.Collections.Specialized.StringCollection viewFields = new System.Collections.Specialized.StringCollection();
    viewFields.Add("Checkmark");
    viewFields.Add("LinkTitle");
    viewFields.Add("Due Date");
    viewFields.Add("Assigned To");
    string myquery = "<where><gt><fieldref name='ID' /><value type='Counter'>0</value></gt></where>";
    allviews.Add(viewName, viewFields, myquery, 100, true, false);
    SPView view=list.Views[viewName];
    view.ViewData = "";
    view.Update();
    Best Regards,
    Dennis Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Workspace displays all timeline objects at once

    As I recall Captivate 1, the workspace was like Flash: It only displayed the objects that appear on screen where the playhead (red line) is located in the timeline.
    Since I upgraded to v5, the workspace always displays EVERYTHING. If I move the playhead, they are all still displayed. Overlapping objects:
    Yes, i can turn off object layers, but this is annoying.
    What am I missing? a setting somewhere?
    thanks SO MUCH,
    christine

    HI Christine
    Methinks your memory is a wee bit too hazy.
    To my knowledge, Captivate has always behaved the same way. All objects are always visible on the stage while editing slides. No way to turn that behavior off other than what you mentioned.
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • Export Options not displaying in Object Style Options panel

    Hi,
    I'm trying to create an object style for decorative images as artefacts and set that style for export to PDF, but in the Object Style Options panel the Export Options settings (which I've seen before, bottom left of the panel) are not displayed. Can anyone tell me how I can make them visible? I'm on InDesign CS6.
    Thanks, Ally

    Hi changilainen2,
    Yes, we are following Adobe Forum!!!
    Thanks for your inputs. Actually while implementing this feature we were bit confused if it is of more importance to have these options in the Object Styles. That's why you are finding it missing from there.
    But feedback from you and some other folks, made us realize that we should have it in object styles too.
    Thanks we'll try incorporating this in the feature.
    ~Monica.

  • SunMC Webconsole - not display correctly - accordian-tasks.zul panel blank?

    Hi,
    I have recently installed Sun MC 4 onto a Solaris 10u4 environment, patched to late '08.
    Currently experience problems with the display of the web console environment.
    We can launch a browser, login to the web console, click on the app "sun management center 4.0". What normally expect to see, is a frame page, with the the three areas. We do get the header at the top, the main panel to right listing domains, but the left menu panel is blank.
    The panel in question, referes to itself as "/sunmcweb/faces/pages/accordian-tasks.zul"
    when checking the properties.
    Reviewing the debug logs from /var/log/webconsole/console
    Login to web consle, and pre-launch of SunMC.
    debug   April 3, 2009 4:01:47 PM Thread-25: Registering security scheme 'medium' (default)
    debug   April 3, 2009 4:01:47 PM Thread-25: Registering security scheme 'strong'
    debug   April 3, 2009 4:01:47 PM Thread-25: Registering security scheme 'weak'
    debug   April 3, 2009 4:01:47 PM Thread-25: Registering security scheme 'medium' (default)
    debug   April 3, 2009 4:01:47 PM Thread-25: Registering security scheme 'strong'
    debug   April 3, 2009 4:01:47 PM Thread-25: Registering security scheme 'weak'
    info    April 3, 2009 4:01:47 PM Thread-25: Using security scheme 'medium'
    Apr 3, 2009 4:01:48 PM com.sun.faces.lifecycle.Phase doPhase
    SEVERE: JSF1054: (Phase ID: RENDER_RESPONSE 6, View ID: /jsp/login/UserLogin.jsp) Exception thrown during phase execution: javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl@15863e4]Launch SunMC...
    many iterations of...
    com.sun.web.ui.theme.ThemeManager::No theme instance found for locale English (United Kingdom)
    com.sun.web.ui.theme.ThemeManager::Trying to use the default locale EnglishOf which an exception follows.
    Apr 3, 2009 4:02:21 PM org.apache.catalina.core.ApplicationDispatcher invoke
    SEVERE: Servlet.service() for servlet zkLoader threw exception
    java.lang.NoClassDefFoundError: org/apache/commons/el/ExpressionEvaluatorImpl
            at org.zkoss.el.RequestResolver$PageContextImpl.getExpressionEvaluator(RequestResolver.java:358)
            at org.zkoss.web.el.PageELContext.getExpressionEvaluator(PageELContext.java:54)
            at org.zkoss.zk.ui.impl.AbstractExecution.evaluate0(AbstractExecution.java:111)
            at org.zkoss.zk.ui.impl.AbstractExecution.evaluate(AbstractExecution.java:94)Hopefully, someone can give pointers on what has gone wrong and where should be looking to resolve this.
    Thanks.
    -Paul.

            at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
            at java.security.AccessController.doPrivileged(Native Method)
            at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
            at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
            at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:283)
            at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:56)
            at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:189)
            at java.security.AccessController.doPrivileged(Native Method)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
            at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:654)
            at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:445)
            at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)
            at org.apache.catalina.core.ApplicationDispatcher.access$000(ApplicationDispatcher.java:65)
            at org.apache.catalina.core.ApplicationDispatcher$PrivilegedForward.run(ApplicationDispatcher.java:80)
            at java.security.AccessController.doPrivileged(Native Method)
            at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:284)
            at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:415)
            at com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:475)
            at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:143)
            at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
            at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
            at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
            at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
            at sun.reflect.GeneratedMethodAccessor221.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
            at java.security.AccessController.doPrivileged(Native Method)
            at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
            at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
            at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:283)
            at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:56)
            at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:189)
            at java.security.AccessController.doPrivileged(Native Method)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
            at com.sun.management.services.session.CoreSessionManagerFilter.handleRequest(CoreSessionManagerFilter.java:649)
            at com.sun.management.services.session.CoreSessionManagerFilter.doFilter(CoreSessionManagerFilter.java:412)
            at sun.reflect.GeneratedMethodAccessor142.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
            at java.security.AccessController.doPrivileged(Native Method)
            at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
            at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
            at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:218)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
            at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:56)
            at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:189)
            at java.security.AccessController.doPrivileged(Native Method)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
            at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
            at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
            at java.lang.Thread.run(Thread.java:595)
    Apr 3, 2009 4:02:21 PM com.sun.faces.lifecycle.Phase doPhase
    SEVERE: JSF1054: (Phase ID: RENDER_RESPONSE 6, View ID: /pages/accordian-tasks.zul) Exception thrown during phase execution: javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl@130c8e9]
    SMTopologyGroup Entering
    SMTopologyGroup ExitingThanks in advance, for help offered in solving this problem.

  • Display faux spreadsheet on front-panel

    Hey, thanks to all that have been helping me answer all my LV questions. This site is awesome.
    My newest question:
    I am writing data to a spreadsheet in my program... I recieve a measurement from my scale via rs232... then, I display the data (floating point), the time (string) it was collected, and a comment (string) that the operator enters on the front-panel... They are prompted to "accept the data into spreadsheet"... when they accept, the data gets sent to the Excel file and the indicator boxes for the data, time, and comment go blank.
    What I would really like to do is have a "faux spreadsheet" (in addition to the indicator boxes) that displays the data that is sent to my Excel file. It's appearance would be similar to the Excel file. I tried using "build table", but it doesn't seem to accept strings... only numbers. Is there another method I could use?
    Next, I need to format the Excel file with column widths, fonts, etc... is the ActiveX control the best way to do this? Any examples out there?
    Man, thanks for all the help. This program has taken on a life of it's own (as these automation projects ALWAYS do).
    Thanks!

    You must have tried the Express Table function. Instead, use the normal table on the control palette. It is a 2D string array. The other way to do it is to embed an actual Excel spreadsheet on the front panel by using an ActiveX container.
    Yes, you need to use ActiveX to format the spreadsheet file. NI sells a toolkit that will do this and if you were search the forum for "Excel", you'd find hundreds of posts on the subject and many include example code.

  • How to display field when using Query Panel..

    Hello,
    I created a Named Criteria with a bindvariables then I drag the Named Criteria I created to the page with ADF Query Panel, then I drag the VO where the Named Criteria to the page with ADF Form.
    now what I need ..
    I need the Fields in ADF Form (input text....) to be displayed befor I cliked the search button. becasue the page design will appear bad. so how can I dislpay them when the page load.
    Thanks,

    May be you need to update the values of the screen field like:
    DATA BEGIN OF LNA_DYNPF OCCURS 1.
    INCLUDE STRUCTURE DYNPREAD.
    DATA END OF LNA_DYNPF.
        l_total = l_total + S10_QUANTITY.
        LNA_DYNPF-FIELDNAME  = 'S10_TOTAL_PRICE'.   " field name
        LNA_DYNPF-FIELDVALUE = l_total.   " value
        APPEND LNA_DYNPF.
        CALL FUNCTION 'DYNP_VALUES_UPDATE'
             EXPORTING
                  DYNAME               = l_cporg        " your program
                  DYNUMB               = '0100'  " your screen
             TABLES
                  DYNPFIELDS           = LNA_DYNPF
             EXCEPTIONS
                  INVALID_ABAPWORKAREA = 1
                  INVALID_DYNPROFIELD  = 2
                  INVALID_DYNPRONAME   = 3
                  INVALID_DYNPRONUMMER = 4
                  INVALID_REQUEST      = 5
                  NO_FIELDDESCRIPTION  = 6
                  UNDEFIND_ERROR       = 7
                  OTHERS               = 8.
    Regards,
    Naimesh Patel

  • Displaying thumbnail images in another panel when it  mouse clicked

    hi,
    I am using JAI, what i am trying to do is i am decoding the tiff file and creating thumbnail of that images and adding thumbnail images to one panel and enlarged images to another panel using DisplayJAI. Now when i will click i thumbnail images on left panel then that image should be display to another panel on right side. Adding both panel to JSplit panel.
    I have no idia how to do it, i tried to do in different way but not able to do that. I hope anybody can give me the hints about this.
    Thanks

    i am adding thumbnail of all images in left panel and enlarged view of each thumbnail is added in right panel , and what i require that when i click thumbnail in left side it's corresponding enlarged image should be visible, suppose in right panel page no. 1 is visible and when i click thumbnail of 13 page in left panel that should be in viewport of right panel.You should put your right panel inside a JScrollPane and call [scrollRectToVisible() |http://java.sun.com/javase/6/docs/api/javax/swing/JComponent.html#scrollRectToVisible(java.awt.Rectangle)] from your panel. You can put the rectangles corresponding to enlarged images in a hash map with the keys being some unique attribute of your thumbnails in left panel. That will help in getting the rectangle to make visible, real fast. Or, you can just put the rectangles in some array indexed according to the thumbnails in left panel.
    I also want to hide the left panel, i think it's possible by Frame.Yes it is possible, but you said you have both your panels in a split pane, so maybe you can use its setDividerLocation() function to hide your left panel.
    Thanks!

  • Displaying video on the front panel

    Hello,
    I want to be able to display a live stream video on my labView front panel.
    I was wondering if there is a way to do this? Whenever I google it,
    it just get videos about LabVIEW, otherwise I would try and I figure this
    out myself,
    It doesn't have to be anything fancy, I just want the video displayed like you
    can display a picture.

    Taki1999 wrote:
    Look at the .NET and ActiveX Control Palette.
    There is Windows Media Player Control or a Web Browser control that should work for video and streaming.
    Active X media player
    Jeff

  • Clips not displaying in timeline

    I've been having a nightmare of a time editing a project because my clips are randomly not displaying in my sequence timeline.  The project recognizes them as being there and will play them when I preview, but some clips aren't represented graphically.  This makes it nearly impossible to edit, because I'm constantly dropping new clips over existing ones on accident.  In this image, inbetween the two cross dissolves, there should be a clip.  I can only see it if I zoom in to a level that makes editing very difficult.  Does anyone have any suggestions?  My clips are all AVCHD, by the way. 

    Yes, I'm sure the clips aren't on a track I've scrolled out of view.  As I said, when I zoom in on the timeline, I can see that there is a clip in the gap, at least in the example I posted above.  Here is a screenshot of my entire timeline after making some changes.
    Where the playhead is, there should be a clip on track 1.  What does the 'V' at the far left of the track indicate?  Because it seems like maybe I've enabled some kind of overlapping video mode.  I'm a new convert to Premiere from Final Cut, so I'm not very comfortable with this yet.  I was able to fix the problem by deleting the two clip fragments to the left of the playhead.  When I deleted one, the other clip fragment, to the left of the first one, stretched out to fill the gap.  I haven't had the problem since, but I'd still like to know what was going on.  Seemed like a bug to me, but the 'V' also went away after I deleted the clips, so I'm wondering if maybe I had entered some kind of mode that I wasn't aware of.

  • Wave forms won't display in timeline

    Hello:
    I just upgraded to FCP version 5.1 from version 4.5 on my G4 powerbook. The audio plays fine, but for some reason I can't get the waveforms to show up in the timeline. All I see are the red lines and the small "x" symbols on each audio clip. When openning individual audio clips in the viewer the waveforms do not show up there either. I made sure that the "Show audio waveforms" box was checked on the timeline options tab. Could it be a ram issue? I only have 1 gb installed. Any sugggestions would be greatly appreciated. Thanks.
    --jaypee100

    I've seen a certain waveform lag on projects, before. You get the X's, and you have to sit at one space in your time line to get the waveforms to update. If you're scrolling a lot, they might appear to not be displaying at all.
    Could certainly be a memory issue. Could also be an issue with your audio's codec. I would image an mp3 would take a little longer than an aiff to update, because of the compression.

  • Tabbed Panels displaying all content in first panel

    I'm trying to add a tabbed panels widget to my site but when it displays in browsers, the content from all of the tabs displays as a list in the first tab, and clicking the rest of the tabs does nothing.  I just put the out-of-the-box widget onto my site and that won't work either.  W3 validating only came up with one error, being: (Line 104,         Column 42:     there is no attribute "tabindex" <li class="TabbedPanelsTab" tabindex="0">Tab 1</li>)
    The page I thew the widget on to test it is http://www.herbsmithrx.com/test.asp
    What am I missing?

    You are missing the javascript constructor script, which should have been inserted on your page below your widget when you inserted the tabbed panels:
    Somehow, the script is appearing above your widget in your page. Place this code BELOW your tabbed panels widget on your page:
    <script type="text/javascript">
    var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");
    </script>
    That should fix it right up.
    Beth

Maybe you are looking for

  • "Cannot create file" error in Safari

    I've created a new user (my wife), and when attempting to download a new Widget in Safari, I'm getting a "Cannot create file" message in the Downloads window. When I log back in as myself, no problem, so I'm guessing the issue has to do with the new

  • Webcam for ichat or Skype?

    Hi, could anyone give me any advice on a good webcam to use with iChat or Skype? Thanks, John

  • Can anyone help with PaintComponent???

    Can someone give me a bit of backgroubd on the paintComponent method in a JPanel? I am under the impression that it is called by paint(), and that paint is only called when the screen needs to be refresed. However, in my program, paintComponenet is c

  • Webutil File upload

    I am using the webutil in our 9ias R2 server, when I try to upload a file to AS using the function WEBUTIL_FILE_TRANSFER.CLIENT_TO_AS_WITH_PROGRESS(fname,'/tmp/testing','Transfering','Transfer',true,null); The error WUT-121 prompt. I had the followin

  • How do you find a filechooser file's absolute path ?

    Hi everyone, I'm a little confused. I'm using a filechooser in my GUI to get two files. I then pass their names to another class where I am attempting to read them. When I choose testfile1 from C:\My Documents And Settings\ Danielle \ My Documents \