TeaRound Java Application Design Stage

Hi All
This would be a basic requirement. It will be a single user/Desktop
application.
The application I want to put together is :-
We have a Tea Round at work. Basically there are members in the tea
round who take it in turn to fetch it.
So what I want to do is be able to add/delete a member's name and IP
address of Desktop and then set a thread running which would wake up
on every 10 or 60 mins and send a network message saying it is your
turn.
Eventually I want a gui front-end to add/delete member or see a list
of members.
This would be a basic requirement as it develops I would evolve it
further on.
Gui Layer Classes
not worried about the classes in here yet
Data Layer Classes
Class MembersList
private Member memlist;
private int index;
final static int nextmemNo;
MembersList(){
memlist=new Member[10]
index=0
nextmemNo=1}
void AddMem(memNo, name,ipA)
void DltMem(memNo)
etc
Class Member{
private int memNo;
private String name;
private String ipAddress;
member()
member( memNo, name, ipAdd)
getters()
setters()
and maybe
Static Class WhosTurnIsItThread{
int LastMemToDoit
So MembersList would be a Container for Member Class.
Questions
1. As I said not worried about the Gui Layer yet. What other
Classes/Interfaces am I missising in the data layer.
Is there any other layers that I need to consider.
2. How where do I fit the the Thread that will wake up to send network
message.
I am a newbie trying to learn via real life secenrios so any help
would be appreciated. I want to think in Java and OO.
Sorry for bad syntax in the Java I just want get over overviews of the
Classes I have thought about.
Thanks in advance for any help
Gurmej

It's a sarcastic remark, the information you provided is too vague...
Like your question...
2. How where do I fit the the Thread that will wake up to send network message.answer:
Place the Thread in the place that does the wakeup in the part of your code that will wakeup and send the message...
by the way... this...
private Member memlist; // not declared as an array
memlist=new Member[10];// so this will generate a compiler errorchange to...
private Member [] memlist;// declared as an array with unknown number of elements
memlist=new Member[10];// initialized to an array with 10 elements indexed 0-9My suggestion is to write out your algorithm in psuedo code on "paper" and work out the logic, then you will get a better idea of the logic involved...
after all if it does not make logical sense to you, then the computer will throw a fit...
for example...
psuedo code algorithm for a Basic GUI
1. create window with close button
2. create input prompt
3. create input field
4. create input button
5. create output field
5. get user input when button is pressed
6. display data input in output field
7. close application if close button pressed
Now looking at the psuedo code, I can determine what I need...
1. create window with close button ==> JFrame for window creation
2. create input prompt ==> JLabel with text to prompt user for appropiate input
3. create input field ==> JTextField for user to type in data
4. create input button ==> JButton to creae button
5. create output field ==> JLabel to output results
5. get user input when button is pressed ==> ActionListener to listen for button being pressed
6. display data input in output field ==> actionPerformed() ( from ActionListener ) method to update output label
7. close application if close button pressed use setDefaultCloseOperation() ( from JFrame ) to close window.
Now that I have all this I can start building my GUI in actual code...
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class SimpleGUI extends JFrame implements ActionListener {
     private JLabel prompt;  // variable declarations
     private JTextField input; 
     private JButton submit;
     private JLabel output;
public SimpleGUI(){
     super("SimpleGUI"); // calls the parent JFrame's contructor
         /*close application if close button pressed*/
     setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); // exits when close button pressed
     setLayout(new GridLayout(4,1));
     prompt = new JLabel("Type in your Name"); // create input prompt
     input = new JTextField(40);  // create input field
     submit = new JButton("Submit");  //create input button
     submit.addActionListener(this);  // adds the ActionListener to listen for button press
     output = new JLabel();  // and of course create output field
     getContentPane().add(prompt);  // blah blah...
     getContentPane().add(input);
                     getContentPane().add(submit);
     getContentPane().add(output);
     pack();
     setVisible(true);
/*display data input in output field via actionPerformed() method */
public void actionPerformed(ActionEvent ae){  // when submit button is presses it get the input
     output.setText(input.getText()); // and send the data to the output label
public static void main(String[] theArgs){
     SimpleGUI simple = new SimpleGUI();//creates window  with close button
}And now I have working code...
Hopefully this helps...
- MaxxDmg...
- ' He who never sleeps... '

Similar Messages

  • Old java applications and Asha touch devices, are ...

    Hi,
    I've read a bit "here and there", but nothing found in this forums or any official thing by Nokia about this.
    Looks like the Asha 306 and 311 phones, both touch devices, are compatible with Java applications. But I have a doubt I can't find an answer to, without a keypad, how manageable are the old java applications designed for a keypad in a touch screen for the Asha touch devices?
    I've read that is possible to manage them because you can display a virtual keypad, but some say that the keypad is very large, covering all the screen. What is truth about this? What is the behavior of such touch devides with old java applications?
    For example, this application if for a keypad to be manageable with the numbers as directions, is it really manageable? could someone test it?
    http://www.languagebug.com/kana_q/
    (this application is just an example, there are lots of applications managed the same way around)
    Are all old java applications manageable the same way?
    Thanks for all your information.
    Regards.

    All you can do is to search apps/games for touch screen.
    There are many games designed to work with all kinds of phones. Many old java games support touch screen too.
    Virtual keypad on my 701 for java apps covers half of the screen. It is comfortable to use though. Virtual keypad has navigation buttons to play games. It appears only for non touch screen games.
    Hope this helps.
    -------------------If this post helped you, click on accept as solution.------------------
    -----------------------------Appreciate by clicking on white star.----------------------------

  • Best book for designing and architecting a java application?

    Hi,
    Please recommend the best book(s) in the market or on line tutorials which would help me architect and design a java application using SWING.
    I have used most of the swing components in many small GUI apps I have developed [JTable, JTree, etc, etc ....] and do not need a beginners books [online tutorials at sun site are good for that]. A book tackling advance topics, which may not concentrate on coding but has very good cases to understand the design [both class level and usuablity] and architecture of the application.
    I need to develop an editor for a GUI based language + a code genertor + mapper application [which will run as a application and may use webstart to run from a browser.]
    THANKS !

    I like "Pure JFC Swing" it's got a well written example for each and every Swing component. When I was learning to use swing each component I came across I could easily look at the example for that component and incorporate it into code for my app. That combined with the Javadoc was all I've ever needed.

  • Best design running multiple instances of desktop based java applications b

    Hi,
    I am not sure if this is the right forum...
    Please suggest on what should be the best design for running 10 instances of same desktop based java applications (No Enterprise or Webcomponents) on different machines BUT still using the same database.
    Summary:
    a) Each application will do writes/updates to same database but will run from different locations.
    b) These applications will reside at different locations (example country, city) but same domain, so it will use separate JVM.
    c) How to tell application where it resides and what should be the best way to determine location automatically from the network? (we would like to avoid any property setting as update will require to change this file also), if database is good approach, what should be the best design.
    d) Best way to handle transaction...
    for example, if one component that writes to an Oracle table, then a downstream component reads the new insert from the table. In this case what should be the best practice in the code for transaction awareness, to avoid issues.
    Thanks
    Val

    Oracle runs a transaction control model on a thread--each login. All other threads will not be able to see the data that is updated or inserted until a commit is done. The same thread can, however, see the updated or inserted information as soon as the update or insert takes place a transaction commit is not needed for that to happen and it is not an error--you must do a commit to make the changes to the data visible to other users and persistent. If you do not commit the changes they will rollback once your session is terminated.
    If you turn autocommit on, then each update or insert will automatically commit and be available to all users, but each statement becomes a transaction and you loose the ability to rollback any changes.

  • RSBOLAP 018  Java system error in BEx Web Application Designer

    Hello,
    while doing inside BEX Web Application Designer "validation of webtemplate" with
    command "validate on server"  I get following error message of WAD  :
    " Message RSBOLAP 018   description : Java system error : an Unknow Error occured during portal communication"
    My procedure till now was ( please see results as screenshots in attachment) :
    a) ckecking prerequisites for "Java template installer'" --> result "prerequisites.jng"
    b) running "Java template installer" ->  " result templateInstaller.jpg"
    c) running Bex Web Application Designer as mentioned above results in error
       message as mentioned above
    d) running Diagnostic & Support Desktop Tool  --> "result Diagnostic support desktop tool.jpg"
    It says that something is wrong with "BI Mastersystem" because of failed connect to
    message server.
    Please advice me what I should do.
    Thanks in advance
    Regards,
    Oscar

    Hello
    It is obvious that the connection between the ABAP and the Java is not working.
    There should be a JCo RFC from the portal side to the ABAP stack set up and an RFC from the ABAP stack to the portal.
    Check the entries of the table RSPOR_T_PORTAL
    The RFC specified here should be the one mentioned above (ABAP - Java)
    Check the name of the system should be SAP_BW
    Is the parameter icm/host_name_full set on the ABAP stack with the domain name ?
    Connect to the BI portal:
    http://FQDN:5NN00/irj/portal
    Navigate to system administration -> system configuration -> system landscape -> expand "portal content" -> systemlandscape -> SAP_BW
    Right click on SAP_BW - Open - Object
    Here you need to maintain these:
    ITS Description - BW ABAP Logical System Name - Tx SCC4 or BD54
    ITS Host Name  - FQDN_OF_BW_ABAP:port - You can use the value of icm/host_name_full parameter and retrieve port number from Tx SMICM - Services
    ITS Path - /sap/bc/gui/sap/its/webgui
    ITS Protocol  - Select http
    Logical System Name  - BW ABAP Logical System Name - Tx SCC4 or BD54
    Logon Method  -SAPLOGONTICKET
    Message server - BW ABAP FQDN
    SAP Client - BW ABAP Client Number
    SAP System ID (SID) - BW ABAP SID
    Server Port - 39NN
    Web AS Description - BW ABAP Logical System Name - Tx SCC4 or BD54
    Web AS Host Name - FQDN_OF_BW_ABAP:port - icm/host_name_full and retrieve port number from Tx SMICM - Services
    Web AS Path - /sap/bw/BEx
    If everything is set properly then do a test connection.
    Good Luck
    RB

  • BEX Web application Designer displaying Java Communication Error

    Hi,
    When we are using the BEX Web application Designer to create new web template, it throws error saying "Java Communication Error: An UnKnown Error Occured During Portal Communication."
    ====================================================
    Diagnosis
    An error occurred during communication with the BI components on the SAP J2EE Engine.
    System Response
    Procedure
    Contact your system administrator to have the error analyzed in detail.
    ====================================================
    Kindly help to resolve this issue.
    Regards, Krish

    Hi,
    Please check below document for connection between BI and Portal
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d082fe32-5037-2b10-3288-fd009f695c74
    You might be doing something wrong in any of these steps.
    Regards,
    Kams

  • How to design Java application?

    What are the general guidelines and best practices to keep in mind while designing Java application?
    Hi
    I recently completed Java programming tutorial from Sun and practised core java (I have previous programming experience). Now I understand the basics of Inheritance, Abstraction , Polymorphism,Encapsulation
    Now i am writing Java code without much difficulty, but am not sure of application design. This is my main problem: "DESIGNING" the application. Say if i have given a task to create an application in Java, What should I start up with? How to think about? Any formal/informal guidelines I should follow while developing class hierarchies? I am really confused (abstract class or interface or sub class..?). Should I start by model everything, before writing code?
    It would be very useful for people like me to have a SET OF GENERAL GUIDELINES/BEST PRACTICES, which we can follow while start developing a new java application.
    Please provide me some guidelines/thoughts/books/resources/tools I should read or Use
    Thanks in advance
    Scott

    Not necessarily. While some programmers may be Software Engineers others may not have the knowledge base of someone who has read at least one SE book. An practical example is outsourcing. Typically, the code writing (programming) bit is outsourced with the requirements gathering (an SE task), cost management (project mgmt. or SE task), time management (PM or SE), etc. kept locally.
    Look, I'm not going to reply further because this is going to run on and on and on. To put it into my local patois, "Alz I'm gonna tell youse is ta read da software engineering book, okay?"*
    *Where's Kel when youse need 'em?  Yo! Kel!                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Web Application Designer standstill since BW SP25 / BI Java SPS 23

    Hi experts,
    in February we implemented the latest SPs into a SAP development system of our customer.
    Since then the BEx Web Application Designer doesn't work anymore for them.
    It just hangs up and you cannot even close it.
    I will provide the tracefile in an answer to this post because otherwise the post won't be readable.
    I've found note 1437358 concerning NullPointerException (but not NullReferenceException) but I doubt that this has something to do with our issue.
    Does anybody have an idea what could cause this problem and how it could be solved?
    WAD 7.20 is used.
    Best wishes
    Marie

    10:57:23.559: Info: Web Application Designer Start. Revision: 7100.4.1200.491
    BExCheckFrontend.CheckFrontend: No Check performed (20110322) 0
    10:57:32.933: Connected. System: HWT
    -EXCEPTION-START- 10:57:35.198: DEBUG EXCEPTION ###  ---
    Exception Name: ArgumentException
    Exception Message: Das Element wurde bereits hinzugefügt. Schlüssel im Wörterbuch:tartitle. Hinzuzufügender Schlüssel: tartitle.
    Exception    bei System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add)
       bei System.Collections.Hashtable.Add(Object key, Object value)
       bei System.Collections.Specialized.StringDictionary.Add(String key, String value)
       bei com.sap.bi.et.wad.wadconst.WADShortNames.InitShortNames(XmlDocument iTagList, XmlNamespaceManager insmgr)
       bei com.sap.bi.et.wad.man.WADfrmMainWindow.PubMainWindow_Load(Object eventSender, EventArgs eventArgs)
       bei System.EventHandler.Invoke(Object sender, EventArgs e)
       bei System.Windows.Forms.Form.OnLoad(EventArgs e)
       bei System.Windows.Forms.Form.OnCreateControl()
       bei System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
       bei System.Windows.Forms.Control.CreateControl()
       bei System.Windows.Forms.Control.WmShowWindow(Message& m)
       bei System.Windows.Forms.Control.WndProc(Message& m)
       bei System.Windows.Forms.ScrollableControl.WndProc(Message& m)
       bei System.Windows.Forms.ContainerControl.WndProc(Message& m)
       bei System.Windows.Forms.Form.WmShowWindow(Message& m)
       bei System.Windows.Forms.Form.WndProc(Message& m)
       bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    Full Stack:   bei com.sap.bi.et.common.appl.Log.Debug.WriteTraceToFile(Level lLevel, String lString, Exception ex)
       bei com.sap.bi.et.common.appl.Log.Debug.Exception(Exception ex, String iAdditionalInformation)
       bei com.sap.bi.et.common.appl.Handlers.OnGuiUnhandledException(Object iSender, ThreadExceptionEventArgs iEventArgs)
       bei System.Windows.Forms.Application.ThreadContext.OnThreadException(Exception t)
       bei System.Windows.Forms.Control.WndProcException(Exception e)
       bei System.Windows.Forms.Control.ControlNativeWindow.OnThreadException(Exception e)
       bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
       bei System.Windows.Forms.NativeWindow.DefWndProc(Message& m)
       bei System.Windows.Forms.NativeWindow.WndProc(Message& m)
       bei Syncfusion.Windows.Forms.Tools.CommandBarController.AppMainFormWnd.WndProc(Message& m)
       bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
       bei System.Windows.Forms.NativeWindow.DefWndProc(Message& m)
       bei System.Windows.Forms.NativeWindow.WndProc(Message& m)
       bei Syncfusion.Windows.Forms.Tools.XPMenus.MenuActivationControl.WndProc(Message& m)
       bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
       bei System.Windows.Forms.NativeWindow.DefWndProc(Message& m)
       bei System.Windows.Forms.NativeWindow.WndProc(Message& m)
       bei Syncfusion.Windows.Forms.Tools.MainWindowSubclass.WndProc(Message& m)
       bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
       bei System.Windows.Forms.SafeNativeMethods.ShowWindow(HandleRef hWnd, Int32 nCmdShow)
       bei System.Windows.Forms.Control.SetVisibleCore(Boolean value)
       bei System.Windows.Forms.Form.SetVisibleCore(Boolean value)
       bei System.Windows.Forms.Control.Show()
       bei com.sap.bi.et.wad.BexWebApplicationDesigner.Launch.Main()
    -EXCEPTION-END----
    -CALLING-FROM- 10:57:35.198: DEBUG EXCEPTION ###  ---
       bei com.sap.bi.et.common.appl.Log.Debug.WriteTraceToFile(Level lLevel, String lString, Exception ex)
       bei com.sap.bi.et.common.appl.Log.Debug.Exception(Exception ex, String iAdditionalInformation)
       bei com.sap.bi.et.common.appl.Handlers.OnGuiUnhandledException(Object iSender, ThreadExceptionEventArgs iEventArgs)
       bei System.Windows.Forms.Application.ThreadContext.OnThreadException(Exception t)
       bei System.Windows.Forms.Control.WndProcException(Exception e)
       bei System.Windows.Forms.Control.ControlNativeWindow.OnThreadException(Exception e)
       bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
       bei System.Windows.Forms.NativeWindow.DefWndProc(Message& m)
       bei System.Windows.Forms.NativeWindow.WndProc(Message& m)
       bei Syncfusion.Windows.Forms.Tools.CommandBarController.AppMainFormWnd.WndProc(Message& m)
       bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
       bei System.Windows.Forms.NativeWindow.DefWndProc(Message& m)
       bei System.Windows.Forms.NativeWindow.WndProc(Message& m)
       bei Syncfusion.Windows.Forms.Tools.XPMenus.MenuActivationControl.WndProc(Message& m)
       bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
       bei System.Windows.Forms.NativeWindow.DefWndProc(Message& m)
       bei System.Windows.Forms.NativeWindow.WndProc(Message& m)
       bei Syncfusion.Windows.Forms.Tools.MainWindowSubclass.WndProc(Message& m)
       bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
       bei System.Windows.Forms.SafeNativeMethods.ShowWindow(HandleRef hWnd, Int32 nCmdShow)
       bei System.Windows.Forms.Control.SetVisibleCore(Boolean value)
       bei System.Windows.Forms.Form.SetVisibleCore(Boolean value)
       bei System.Windows.Forms.Control.Show()
       bei com.sap.bi.et.wad.BexWebApplicationDesigner.Launch.Main()
    -EXCEPTION-START- 10:57:47.399: DEBUG EXCEPTION ###  ---
    Exception Name: NullReferenceException
    Exception Message: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
    Exception    bei com.sap.bi.et.wad.man.WADfrmMainWindow.RefreshInitialTemplateList()
       bei com.sap.bi.et.wad.man.WADTemplateController.OnTemplateOpened(WebTemplate iTemp)
       bei com.sap.bi.et.wad.pageobjects.WebTemplateFactory.TemplateOpenedEventHandler.Invoke(WebTemplate iTemplate)
       bei com.sap.bi.et.wad.pageobjects.WebTemplateFactory.AddTemplateOrLibrary(WebTemplate iTemplate)
       bei com.sap.bi.et.wad.pageobjects.WebTemplateFactory.RegisterTemplateOrLibrary(IWebTemplate iWebTemplate)
       bei com.sap.bi.et.wad.man.WADTemplateController.LoadTemplate(EnumLoadMode iLoadMode, String iFileName, String iTechName, Boolean iAsLibrary, String iEnqueueMode, Boolean iAsCopy, Boolean iForceRawEdit)
       bei com.sap.bi.et.wad.man.WADTemplateController.DoLoadTemplateFromBW(String iTechname)
       bei com.sap.bi.et.wad.man.WADfrmMainWindow.itmOpenWebTemplate_Click(Object eventSender, EventArgs eventArgs)
       bei Syncfusion.Windows.Forms.Tools.XPMenus.BarItem.OnItemClicked(EventArgs args)
       bei Syncfusion.Windows.Forms.Tools.XPMenus.BarItem.PerformClick()
       bei Syncfusion.Windows.Forms.Tools.XPMenus.BarRenderer.OnMouseUp(MouseEventArgs e)
       bei Syncfusion.Windows.Forms.Tools.XPMenus.BarControlInternal.OnMouseUp(MouseEventArgs e)
       bei System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
       bei System.Windows.Forms.Control.WndProc(Message& m)
       bei Syncfusion.Windows.Forms.Tools.XPMenus.BarControlInternal.WndProc(Message& m)
       bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    Full Stack:   bei com.sap.bi.et.common.appl.Log.Debug.WriteTraceToFile(Level lLevel, String lString, Exception ex)
       bei com.sap.bi.et.common.appl.Log.Debug.Exception(Exception ex, String iAdditionalInformation)
       bei com.sap.bi.et.common.appl.Handlers.OnGuiUnhandledException(Object iSender, ThreadExceptionEventArgs iEventArgs)
       bei System.Windows.Forms.Application.ThreadContext.OnThreadException(Exception t)
       bei System.Windows.Forms.Control.WndProcException(Exception e)
       bei System.Windows.Forms.Control.ControlNativeWindow.OnThreadException(Exception e)
       bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
       bei System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
       bei System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
       bei System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
       bei System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
       bei System.Windows.Forms.Application.Run(Form mainForm)
       bei com.sap.bi.et.wad.BexWebApplicationDesigner.Launch.Main()
    -EXCEPTION-END----
    -CALLING-FROM- 10:57:47.399: DEBUG EXCEPTION ###  ---
       bei com.sap.bi.et.common.appl.Log.Debug.WriteTraceToFile(Level lLevel, String lString, Exception ex)
       bei com.sap.bi.et.common.appl.Log.Debug.Exception(Exception ex, String iAdditionalInformation)
       bei com.sap.bi.et.common.appl.Handlers.OnGuiUnhandledException(Object iSender, ThreadExceptionEventArgs iEventArgs)
       bei System.Windows.Forms.Application.ThreadContext.OnThreadException(Exception t)
       bei System.Windows.Forms.Control.WndProcException(Exception e)
       bei System.Windows.Forms.Control.ControlNativeWindow.OnThreadException(Exception e)
       bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
       bei System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
       bei System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
       bei System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
       bei System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
       bei System.Windows.Forms.Application.Run(Form mainForm)
       bei com.sap.bi.et.wad.BexWebApplicationDesigner.Launch.Main()

  • How to let users run your Java application

    Hello,
    I'm writing an application using JBuilder7 and it's wonderful designer: so far it is composed by only 2 class and imports java.awt.* and javax.swing.* (SDK 1.4)
    Now, I've yet to finish it but I was wondering: "how will users be able to use it?"
    I don't want them to install 30+ Mb of SDK so I've looked into the forums and elsewhere and come up with several answers:
    1) Let them install JRE: but it's 10+ Mb and they would need to download it separately from my program.
    2) Let them use somehow their browser's JVM..(should I turn my application into applet for this? I guess so)
    3) Make an .exe: I know there are many programs to make .exe from java but they would make a one-platform-based file.
    Also there were many hints about using .jar files to get things easier.
    Is there a 4th option in which users have to download only a few mbs to use the application?
    And about .jar, how should I use it?
    Thank you very much for all your help :)

    Simply put - the users must download or be supplied the JRE. This must be installed before they can execute your java application.
    As to distributing the application itself - You can jar (Java Archive) your classes into a single file.
    You could as has been suggested create an EXE, but these generally are very large and tend to severely restrict the range of java technologies able to be used (EG Serialization, RMI, Reflection, class loading, ...)
    Java is not intended for little tools that get installed separately - It is intended for larger applications or small applets in which case the download of the JRE is a minor concern.
    Note that applets targeting Java 1.1.7 functionality work fine with most old browsers inbuilt JVMs - Your customers browser may not however have an inbuilt JVM and the user will still need to download the JRE to execute a SWING based applets.
    Talden

  • Web Application Designer need help ASAP

    Hi All,
    I have a requirement to customize the analysis item in a web application designer.
    I have created new templetes and added a analysis with a query view as data provider .
    in the output I require to hide some rows of the query view and also change the color of the text i.e the numbers.
    How to modify the output of the analysis item which is coming from a query view or is there any way where I can modify the output of the web templete.
    Thanking You,
    Rukmini

    Dear Devi,
    If you do not want to use the default display and behavior of the Analysis Web item, you can use the Modification parameter to change them. You can modify the table structure and the table cells.
    The Modification parameter provides modules whose use can be controlled using additional parameters.
    This function enables you to use similar options to those available in earlier releases with the Web Design API for Tables. Unlike the Web Design API for Tables, modifications enable you to make targeted changes to the display and behavior without any programming.
    Prerequisites
    The modules are the main prerequisites for making modifications to the Analysis Web item. The modules are implemented in Java. The SAP Basis infrastructure in SAP NetWeaver 7.0 does not support any customer modifications or extensions to Java coding. Customers are therefore not able to develop their own modules for modifications to the Analysis Web item.
    SAP delivers a number of sample modules. You can use parameters to modify the display and behavior of these modules.
    Procedure
    You use the modules as follows:
           1.      Select a module from the sample modules.
           2.      Specify the module in the Modification parameter of the Analysis Web item.
           3.      Control the display and behavior of the module by specifying the module-specific parameters.
    Result
    The table of the Analysis Web item is displayed in an individual manner using the modules. The behavior of the table may also be different. For example, you can define commands for table cells.
    Example
    For example, you can define a fixed column width or display comments in cells.
    For more info :
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/1a/456a3badc1b315e10000000a114084/frameset.htm
    Hope this helps u..
    Best Regards,
    VVenkat..

  • To use Web Application Designer release 2004s do we need to have portals???

    Hi
    I would like some clarity regarding whther we need a portal or not.
    If you use Web Application Designer (SAP BW 3.x) it works fine, you can create reports and then it shows in SAP Easy Access under favourites. Executes fine, no portal is used.
    Now when I want to use the new Web Application Designer I can not execute the reports. Gives me error
    "Java communication error: RFC destination NOT_CONFIGURED does not exist", the window it appears in has a text saying it can't conect to the portal. Then notes that I look at regarding this seems that the connection between SAP BW and Portal must be set up.
    So can please someone tell me whether you need the portal to use the new Web Application Designer release 2004s
    Thanks in advance

    YOu neeed BI Java configured
    If you do not use any new BEx Web functions, do you have to install the usage types BI Java and EP?
    answer -SAP EP 6.0 Portals could be integrated into a federated portal system landscape using URL iViews.
    For more insights - FAQ
    Pls read carefuly should answer all your current and future questions.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/43008b6a-0901-0010-90af-c848d878bac3?rid=/library/uuid/a5067965-0901-0010-6f8a-bbf0b7424283
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/43008b6a-0901-0010-90af-c848d878bac3?rid=/library/uuid/cea68c65-0901-0010-f5a4-fd34189d8078
    Hope it Helps
    Chetan
    @CP..

  • Error in Web application designer in BI7.0

    Hi,
    If we try to create the template and save, it is showing the following error.
    JAVA COMMUNICATION ERROR RFC_DESTINATION IS NOT CONFIGURED.
    we tried some RFC connections in the backend . It is showing BI metadata for BSM is outdated. I checked the necessary settings according to note :888687.
    But we are able to check the RFC connection between ABAP and portal.
    But we are getting the same error. While saving the template which created. it showing the error and i am not able to save the template
    Please help in this issue..
    thanks in advance.
    Regards,
    Mohankumar.G

    I was working on similar issue for 2 days & I am able to overcome the error mention by you related to WAD now I am able to execute the WAD application through portal.
    Send me your mail Id I will fwd u the configuration steps
    Meanwhile chk Trans: SM59 for RFC connection
    IN Visual Admin check the JCo RFC Provider is properly configured with backend username.
    Chk all the JCo related to BI are working properly either with SSO or User mapping
    Chk in Table RSPOR_T_PORTAL the portal URL is proper or not
    (transaction code SM30).
    2. Enter RSPOR_T_PORTAL as the table.
    3. Choose Maintain.
    4. Choose New Entries to create a new entry.
    5. Maintain the connected portal:
    RFC destination: <RFC_DESTINATION>
    System name: <SYSTEMALIAS>
    Default: <DEFAULT>
    Portal URL prefix: <PORTAL_URL_PREFIX>, for example, http://<portalserver><domain>:<port>
    Prefix of RM for BW Metadata: <KM_RM_METADATA_PREFIX>, for example, /bw_metadata
    KM service URL: <blank>
    Referesh the MetaData Service in BI Web Application Designer under settings try to connect you SAPRFC.ini file set enviroment variables for the same.
    Swapnil

  • What are the reporting tools available for Java applications??

    hi..
    please tell me some reporting tools available for java applications.... if there are some, please mention how to find their documentation????

    http://jasperreports.sourceforge.net is a nice one, there is also a link to a graphical design tool.

  • How to make use of Windows authentication from my Java application

    I have a Java application, Instead I design one more login page for my application, I want to make use of Windows Authentication.
    How should I use that windows authentication in my java application
    can any help me in suggesting a solution

    How will they be able to access your application if they aren't users of the system?

  • Can i use single database connection in a hole java application?

    can i use single database connection in a hole java application?.I have so many forms to use database connection.

    Theoretically you can. Not only theoretically. I've seen lots of application which only uses one database connection (they were using, oracle or mysql)
    The first reply given here assumed that the answer to
    your question depends only on the design of your
    application. That is not true.Yes it's true. Nothing in the original questions says that you aren't allowed to open or close the single connection that you have. It's looks more like the OP is interested in sharing a connection (i.e having a singleton or a connection pool with only one connection)
    It does also depend on the behaviour of the database
    in the background.
    Most databases have a time out for connections that
    are idle Not a problem. Most implementations of connection pools and applications which keeps a connection open have a timer which calls e.g. select * from dual (if you are using oracle) when the connection has been idle for X minutes.
    (some, like db2 on z/OS, even cancel
    connections, that are not idle, if they are open a
    certain amount of time or have reached a given limit
    of cpu seconds.)You would also have that problem if you had a connection pool with several connections.
    In essence: If you have no control over the time
    your application runs (and therefore your connection
    is open) or over type or the configuration of the
    database you are accessing, you can't do it.See above.
    The closest thing to what you want would be using
    PooledConnections, iif those are supported for the
    database you want to access.Not true.
    Kaj

Maybe you are looking for

  • Error handling in File - XI - SOAP scenario without BPM

    Hello! We have a File -> XI -> SOAP scenario without BPM. The problem is that if the Web Service sends back an error XI tries to reprocess the same message again and again instead of taking the next one. We do not want set the retry interval to NULL

  • I can't sign in to ExportPDF and my subscription is current.

    Question: One of my paralegals received a message that our Adobe ExportPDF Annual subscription has lapsed.  When I try to renew it shows that I'm up to date and will not be billed until 2015.  What does she need to do?  I have three paralegals with A

  • MM Planned Freight Costs with

    Dear friend Does anyone could guide me to setting up the  freight costs by condition FRB1 to ECC put the value of condition as part of costs of material ! Could you explain the behavior of MIRO(Accounting posting) with main item together with planned

  • Checkout/Checkin View problem

    Hi, I need to do checkout a user view and update the values in that and then checkin the view. When i do a trace, only user.waveset.accountId is being displayed. The global variables like user.global.firstname, user.global.lastname are all coming as

  • Doubt in module pool programing

    hi all i am doing type 'm' programing... and getting Purchase Order and corresponding vendor as input in screen 9001.i do validations for the same in the pai of 9001 and displaying error messages.when error occurs i change the vendor and excecute aga