Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. pete1970

    GridBagLayout with Panels

    I don't know if this helps or not but here is a little shorter version: import javax.swing.*; import java.awt.*; import java.awt.event.*; public class SMG3AuditInterface extends JFrame { JComboBox comboBox; JLabel lblComponent, lblObjectName, lblFileName, lblDirectName; JTextField...
  2. pete1970

    GridBagLayout with Panels

    I obviously did not expect what I got. I set it up very similarly to other examples I have seen. No, I suppose you do not need all of those listeners and components to answer my question. The way I have it set up makes sense to me but if you could point me in the right direction where I went...
  3. pete1970

    GridBagLayout with Panels

    I am trying to create an interface using GridBagLayout with Panels and everything is just put on one line. Here is the code: import javax.swing.*; import java.awt.*; import java.awt.event.*; public class SMG3AuditInterface extends JFrame { JComboBox comboBox; JLabel lblComponent...
  4. pete1970

    readdir and print file issue

    I moved the my @parents = (); and my %parents = (); outside of the foreach my $file and it worked. Thanks!
  5. pete1970

    readdir and print file issue

    Please forgive the length and inefficiency. Here is the whole thing: #!/usr/bin/perl use strict; use XML::Parser; use XML::SimpleObject; use Getopt::Std; use File::Basename; my %opts = (); getopts('d:', \%opts); die "No Flow directory specified with -d!\n" unless exists $opts{d}; opendir...
  6. pete1970

    readdir and print file issue

    I am looping through files in a directory and printing to csv files with: . . opendir D, $opts{d} or die ...; . . foreach my $file (readdir D) { my ($filebase, $dirname, $ext) = fileparse($file, '\..*'); my $csvFile = "$opts{d}\\$filebase.csv"; open FILE_OUT, ">$csvFile" or die ...; ...
  7. pete1970

    Bigger XML::Simple Problem

    Using: my $doc = $xs1->XMLin($file, forcearray => 1, keyattr => {client_system => 'Customer Care'}); the Data::Dumper gives me: $VAR1 = { 'client_system' => [ { 'business_area' => [ { 'component' => [ { 'component_lib' => [...
  8. pete1970

    XML::Simple

    I used: print $doc->{species}{$key}->{'physical-characteristics'}[0]->{mass}[0]; Thanks
  9. pete1970

    XML::Simple

    I have done that but am still confused on the syntax of how to access the deeper data.
  10. pete1970

    XML::Simple

    This is most of an example from perl-xml-quickstart: <?xml version="1.0"?> <camelids> <species name="Camelus bactrianus"> <common-name>Bactrian Camel</common-name> <physical-characteristics> <mass>450 to 500 kg.</mass> <appearance> The most noticeable feature of...

Part and Inventory Search

Back
Top