My question about second INTERFACE DESIGN

i create one interface( main interface created by JFRAME)
in main interface i want to click button
then create second interface.
i should use which class to build second interface?
i tried JFrame but it doesnot work
JFrame is top cotainer .and it need main() also
thanks in advance
please give some hints

i tried JFrame but it doesnot work - JFrame is top cotainer .and it need main() alsoThat's not true - you can create a JFrame instance without it having its own main() method.
When the user clicks the button, do this:JFrame secondFrame = new JFrame("Second Frame");
secondFrame.add(....whatever you need to add to it - JPanels etc...);
secondFrame.setBounds(100,100,400,300);
secondFrame.show();

Similar Messages

  • Question about IDashedAttributeValues interface

    Hi to everyone,<br />I have a question about IDashedAttributeValues interface.<br />If I would like to apply custom dashes kDashedAttributeValuesBoss to a page item. I would expect that my code will look like this:<br /><br />InterfacePtr<IDashedAttributeValues> pAttribute(::CreateObject(kDashedAttributeValuesBoss));<br /><br />pAttribute->SetPhase( nPhase );<br />pAttribute->SetCornerAdjustment((IDashedAttributeValues::CornerAdjustment)nCornerAdjust ment);<br />pAttribute->SetValue( 0, nDash0 );<br /><br />But InDesign crashes at SetValue code. I could understand InDesign. It is out of range. But, how to specify the length of value array or to add value into array?<br /><br />Thanks in advance,<br />Alexander Staroverov<br />Developer Engineer<br />Comosoft GmbH

    Thank you to all, I have found the answer in SDK samples:<br /><br />void SnpGraphicHelper::AddDashedValues(const K2Vector<PMReal>& dashAndGapValues)<br />{<br />IDataBase* db = fItemList.GetDataBase();<br />InterfacePtr<IDocument> theDocument(db, db->GetRootUID(), UseDefaultIID());<br />     InterfacePtr<IUIDData> uidData(::CreateObject2<IUIDData>(kDashedAttributeValuesBoss));<br />     ASSERT(uidData != nil);<br />     uidData->Set(::GetUIDRef(theDocument));<br />     InterfacePtr<IDashedAttributeValues> dashedAttributeValues(uidData, UseDefaultIID());<br />     if (dashedAttributeValues != nil && dashAndGapValues.size() > 0) {<br />          for (int32 i = 0; i < dashAndGapValues.size(); i++) {<br />               dashedAttributeValues->SetValue(i, dashAndGapValues[i]);<br />          }<br />          this->AddAnAttribute(dashedAttributeValues);<br />     }<br />}

  • Question about service layer design

    I have a question about the design/architecture of service model layers, specifically the task service layer.
    Could a task service be a small "action", ie an operation that doesn't require composition? So if I have a requirement to allow customers to update their personal info, like address, would I have a task service named ChangeCustomerMailingAddress, that in turn calls the update operation on the Customer entity? Or would it be better to call the entity service directly? Another example would be retrieving data, like RetrieveCustomerBillingHistory, would that be a separate task service, or just a get/read operation on the Customer entity service?
    Any insight is appreciated.
    Thanks

    You seem to be confused what all the different parts of Java do.
    JRE - runtime environment, the minimum needed to run standard java applications
    Java Standard Edition - the standard set of API's that form the base of most java applications. You need the J2SE SDK to compile these applications and the JRE to run them.
    Now talking about "application design", I'm not sure what you mean. Are you talking about graphical user interfaces? In that case you would want to look into Swing, and that is indeed part of the standard edition API set.

  • Some question about the query designer

    hello, dear all,
    I am a new comer of here, and I am intersting in BI, but I have no basic knowledge about it.
    so I just want someone could give me some advice about it.
    our boss need I do the developer about the query designer,  I just have searched in this forum. but nothing founded for I am a new comer here,
    I heard there are some training document of the query designer, could someone give me the URL, thanks.

    Hi,
    Query desinger is used to develop a Query, Query can be created on following data targets
    -Info Cube
    -DSO
    Virtual data target
    -MultiCube
    -Infoset
    -Multiprovider
    We have 5 section in query designer
    - Infoprovider : where we select the data target , on which report to be created
    -Filter : to restrict value at infoprovider level ( if you want data for year 2008, for example)
    -Free Characterstic : this allow you to drill down
    -Columns : char/keyfigs to be display in columns can be added here
    Row: key/char to be display in Rows can be added here
    gv me ur mailid i will let u have Bex manual,
    I would suggest , if you have any IDES ( training ) system , where you can log in and then go to RRMX,
    and try to create new query and add any data target ( which is already created ) and then drag and drop the char/key fig to the required section ,
    save it and execute it .....
    if you play arround and see the output , that would help u to understand how to work with query designer.
    Hope this helps
    Sukhi
    Edited by: Sukhvidner Singh on Nov 4, 2009 5:36 PM

  • Question about redundant NW design

    Guys,
    I have 9 L2 2960x flexstack and one L3 3560. I'M curious how i would design this network with as much redundancy as i can ?
    Lest say i have 8 Vlans ,I figure setting 2/3 ports ether-channel/vlan trunk from L3 to first L2 switch in stack. Then for redundancy god for bid any one of my switches went bad or even flex cable ,setup another ether-channel for each switch back to the l3 switch or just connect cable without ether-channel and let STP do it's job, should be in blocking mode until other link dies ?
    My real serious question is my I only have one L3 switch , so if that goes I'm screwed, so if i bought another L3 switch one how would i make it redundant for the other access switches to the net?, do i need hsrp/vrrp because on i only have ip base (SMI) not EMI, so that would not work, plus the isp router only has one connecting? Any hep would be great ,thanks guys
    SO HERE MY SETUP I'm looking to design..
    NET <----isp router----->L3intervlan------>9 L2 flex stack 8 switches

    If your 2960-S stacks contain the full 4 stack members and you plan to present a pair of 3560 EtherChannel uplinks to each stack, then Cisco recommend you terminate your two EtherChannel links on stack members 2 and 4. There is some logic to this, but see the following for details (figure 9): -
    http://www.cisco.com/en/US/prod/collateral/switches/ps5718/ps6406/white_paper_c11-578928.html
    If you stick to a single core/distribution layer switch and use EtherChannel, then you won't need Spanning Tree to actively block an any uplinks between the core and access layer stacks. Instead, EtherChannel can load balance across all uplinks.
    Yes, you are 'screwed' if the 3560 or ISP router fails. Shame you haven't got a 3750 instead of the 3560, because you could then buy another 3750 and stack them. There are pro's and con's to stacking a pair of 3750s verses a pair of 3560s though.
    If you buy another core/distribution layer 3560, then you would need to rely on Spanning Tree to actively block the redundant uplink to each 2960-S acces switch stack. This is because you cannot run EtherChannel load balancing between both 3560s and each stack. EtherChannel will only work between each individual 3560 and each stack (a pair of 3750s would get around this limitation though).
    Reference connectivity between a pair of core 3560s and your ISP router, HSRP would be nice and simple, but if not available, then you could implement layer-3 routed links. Either way, the ISP router would need two LAN interfaces, one connected to each 3560. You'll also need a direct link between the two 3560s.
    If using routed links, then you'll need to establish routing between all three devices. This can be done with an IGP, such as OSFP, or static routing.
    Any plans to add a second ISP link for redundancy? What's the primary circuit link type?
    Where's your firewall?
    Hope that helps. Let me know if anything is unclear.

  • Question about message interface

    I developed a jdbc to file scenario, it works, but I'm confused.
    I designed a message interface for jdbc outbound,
    CustomerRow
    |--row
         |--CUST_NO
         |--......
    I set Document Name = 'resultset' in jdbc sender adapter.
    I can see payload in SXMB_MONI.
    <?xml version="1.0" encoding="utf-8" ?>
    - <resultset>
    - <row>
      <CUST_NO>pp3433</CUST_NO>
      <SALES_ORG>org1</SALES_ORG>
      <DISTRIBUTION_CHANNEL>dis1</DISTRIBUTION_CHANNEL>
      <DIVISION>div1</DIVISION>
      <FLAG>N</FLAG>
      <LAST_UPDATE>2008/11/05 15:24:53:843</LAST_UPDATE>
      </row>
    - <row>
      <CUST_NO>ppy3233</CUST_NO>
      <SALES_ORG>org2</SALES_ORG>
      <DISTRIBUTION_CHANNEL>dis2</DISTRIBUTION_CHANNEL>
      <DIVISION>div2</DIVISION>
      <FLAG>N</FLAG>
      <LAST_UPDATE>2008/11/05 15:24:53:843</LAST_UPDATE>
      </row>
      </resultset>
    You noticed that resultset is not 'CustomerRow' in message interface which I defined.
    I don't know how it can work.

    The parameter Document Name should ideallly contain ur Message Type root name. As u have changed it to 'resultset', it is replaced at the sender adapter and then flow continues.
    There are very few occasions when success raises a question
    Regards,
    Prateek

  • I have a question about flash website design and google indexing!

    first off i want to say I hate HTML (call it HTM HELL) I love Flash.Im a big propononent of flash.OK about a month ago I built a 100% flash site,told google to crawl it,then come to find out they cant see any text inside images.So I did what i didnt want to do,I took all my hard work down and had to work even harder and created a fully 100% HTM hell site.and just under 4 weeks later google still has my flash site in its cache.the question im trying to get at is if google cant read 100% flash sites whats the point in creating flash sites(mine's a business site.)I want to get into creating flash sites for other people too but if google cant read them how would a person be able to do a search for say what i do:pc repair in google & then my flash site would come up in googles search results.This is potentially costing me lots of money.I dont like "coding" HTML i want to design in flash.HEEEeeelllppp!

    Google can crawl Flash, though I'm not sure how well, but either way nothing can read text that is not text - ie an image. The workaround - and still relevant for all other search engines, is to put all your content inside the div tag that your Flash is written into. The alternate content that one would see if they didn't have Flash, or didn't have JavaScript enabled.
    There is a good tutorial on SEO with Flash on the SWFObject site: http://blog.deconcept.com/2006/03/13/modern-approach-flash-seo/
    You can also just Google 'Flash SEO' and get a good deal of info.

  • Question about video surveillance design

    Test question

    You seem to be confused what all the different parts of Java do.
    JRE - runtime environment, the minimum needed to run standard java applications
    Java Standard Edition - the standard set of API's that form the base of most java applications. You need the J2SE SDK to compile these applications and the JRE to run them.
    Now talking about "application design", I'm not sure what you mean. Are you talking about graphical user interfaces? In that case you would want to look into Swing, and that is indeed part of the standard edition API set.

  • Question about Object Oriented Design in Oracle

    Hi everyone,
    Right now I'm updating my oracle skills, years ago without programming (last time with Oracle 7.3 :O)
    Well, if I have to design a new system with this features:
    1.- Using Oracle as DB
    2.- Web enable
    3.- OO Design
    My questions:
    1.- What is the best practice to make database design? E-R + Object Types? I mean is better making the design on Oracle directly or in Java-UML environment?
    2.- I was thinking in programming with Forms, but it works well with OO design?
    3.- If I want to program some web services based, Could I do it with PL/SQL and Jdeveloper?
    please if you know about articles and whitepapers about OO design approach with Oracle let me know!
    Thanks.

    I have been involved in some of these projects that have used Java, C#, VB, C++ etc. as front-end languagaes. I have been able to implement these projects successfully using the following approach:
    1. create a relational model of the database - third-normal form (assuming it is an OLTP application)
    2. Write PL/SQL code (packages and procedures mainly)
    3. Interact with the front-end layer by sending and receiving ref curosors and/or PL/SQL tables
    If you want to use Forms (I am assuming Oracle Forms) then there may not be much need for an OO design. Embeeding SQL in the forms will do most of what you want.
    Shakti
    http://www.impact-sol.com
    Developers of Guggi Oracle - Tool for DBAs and Developers

  • Question about photo interface...please help

    hi. i'll explain what i want to do, and hopefully you can help. when exporting a photo album from iphoto to iweb, it creates thumbnails...and then when you double click on one of those thumnails, it brings up a much nicer looking interface with that photo nice and big, and all the others lined up above. Is there anyway i can skip the first set of thumbnails, and only display the second method of display. so when someone clicks on my photo page, they are presented with a nice big photo, and all the others lined up above. thanks...much appreciated, ben

    Add your photos to your website as a flash slideshow using, for example, the FAExporter plugin......
    http://roddymckay.com/VisualMedia/FlashAlbumExporter.html

  • Question about Serizable interface

    Which one of the following are true:
    - Serizable interface defines no memebers.
    - Serializable inteface extends the externalizable interface.
    - only an object that implements the serializable interface can be saved and restored by serialization facilities.

    Next time don't wait till Sunday midnight to do homework that has to be submitted Monday morning.
    db
    Hint: You can find the answers to all 3 questions in the API for Serializable
    {color:0000ff}http://java.sun.com/javase/6/docs/api/java/io/Serializable.html{color}

  • Question about inbound interface

    Hi!
    Here, there is an inbound interface using idocs.
    My question is: if there are five idocs ready to be processed, is the function module executed five times? I mean, one time for each idoc or is there a single function module execution that processes the five idocs?
    Thanks!
    Regards,
    Cristian

    hi,  Cristian
    Actually it depend on IDOC inbound setting for your message type.
    in WE20, go to Partner Profiles:Inbound parameters setting.
    you will be request to set Process Code for Inbound.
    if you choose some Process Code, which support Packet Inbound, you IDOC will be executed Packetize.  E.G. once 5 IDOCs.
    And you inbound function also needed to support Packet.

  • Questions about use of designer

    Hello -
    I've noticed now that after add a certain amount of HTML code to the source of a page, the designer goes grey and the Application Outline view is no longer available. For a few pages I'm building, this happens simply after I add my own Table HTML code. My main question is, does anyone know exactly at what point the designer and Application Outline become unavailable? (After adding certain elements, etc.)
    I do understand that JSC is really more of a prototyping or RAD tool, but having to switch to editing source so quickly after only adding a little HTML seriously cuts down on the overall value of using JSC. I hope I'm not sounding too critical, I really like the JSC product. I'm just looking for some suggestions or hints of upcoming enhancments/features that will help me decide whether JSC is a good tool to add to my team's portfolio.
    Any thoughts would be greatly appreciated - thanks so much!
    Tom

    Thanks so much for the reply.
    Before I posted my code, I double-checked my syntax and think I found the problem. I using Fragments at the beginning of my page, and at the end, to construct a wrapper table where I can put some fancier graphics, etc. I'm using the fragments and plain old HTML because using another gridpanel on each page is a bit cumbersome, and also I need the flexibility of possibly doing some dynamic things to this table... Because each fragment doesn't have matching tags to complete the page, I think that's screwing up the designer, as you suggested. For instance, here is my fragment at the top of each page :
    <TABLE WIDTH="100%" BORDER="1">
    <TR>
    <TD ALIGN="CENTER" VALIGN="TOP">
    <TABLE WIDTH="595" BORDER="2" CELLSPACING="0" CELLPADDING="0" BORDERCOLOR="#184266">
    <TR>
    <TD WIDTH="50%" ALIGN="LEFT" BGCOLOR="#184266"> </TD>
    <TD WIDTH="50%" ALIGN="RIGHT" BGCOLOR="#184266"> </TD>
    </TR>
    <TR>
    <TD COLSPAN="2" ALIGN="CENTER" VALIGN="TOP">
    <!-- WIZARD GRID BEGINS HERE -->
    Any suggestions on a better way to use includes to break out some necessary HTML??
    THANKS very much!
    Tom

  • Where 2 go for help with some questions about a logo design?

    I'm an absolute novice Illustrator user (CS4). Im doing a web site for a mate and he's given me a logo that I have made a vector drawing of. It was black and white, and I made it coloured but I have discovered that colour gets difficult when you go for grayscale! You all knew that, didn't you?
    I'm not putting the logo up here because I don't want to ask a question that's too far off the purpose of the board. So, if I can't show it here can anyone suggest another forum where people do that kind of stuff and are kind to novices please?
    Many thanks
    Martin
    Well, having a look around I think I might not be going to far off by asking so...
    http://www.imagesandwords.org.uk/test/illylogo.html
    Anything really, but bear in mind It's very like the original except it had no style, no color and less er.. precision

    >How can I make the logo better for colour and B&W?
    As I understand it, you are troubled -- among many things -- by the lack of differentiation among the spheres when you convert to grayscale. Is that correct?
    If so, there are some things to consider. For example, the original uses only two attributes -- color and size -- to differentiate the spheres. Otherwise, you have the same shapes and the same gradient fills (other than base color).
    When you remove color from the equation, you're left with only one differentiating attribute: size. Not surprisingly, you find yourself facing a dull uniformity -- the monotonicity produces monotonousness. Now, the challenge is to add back some differentiating features.
    Not a whole lot of choices here. You can develop different gradient fills for a subtle effect, but you have to be careful: If the "lighting" changes dramatically among spheres, you'll end up with an unnatural look.
    You might consider forgetting about gradient fills altogether and go with solid or texture fills. Sometimes, simpler is better... especially with a logo.

  • Question about documentation & interface inheritance

    If I have interface Foo that extends interface Bar, I'm wondering if there's a way for Foo to add more documentation to one of Bar's methods.
    For example, if I have:
    public interface Foo {
      * The "stuff" that gets done by this method should be more properly defined in the implementing class.
      void doStuff();
    public interface Bar extends Foo {
    }Is there any way for me to specify for Bar to override the doc on the doStuff() method inherited from Foo (such that it might read something like "The doStuff() method of all implementers of Bar should [behave in x manner]")?
    I realize I'm probably not articulating myself totally clearly, so let me know if I need to shed light on anything.
    Thanks!
    Edited by: Caryy on Nov 30, 2010 4:06 PM

    jverd wrote:
    I think you're allowed to declare an identical doStuff() method in Bar and give it its own documentation. It won't just get concatenated on to the supertype's doc, but the javadoc tool might generate a link to the parent method like it does when a class overrides or implement a method.Wow... >_< I thought I tried that and failed before asking this question, but it appears that you are correct (I must have typo'd or something)! Thanks for the fast reply and sorry for the n00b question....

Maybe you are looking for