Saturday, December 28, 2019

Java Events and How They Work With Event Listeners

An event in Java is an object that is created when something changes within a graphical user interface. If a user clicks on a button, clicks on a combo box, or types characters into a text field, etc., then an event triggers, creating the relevant event object. This behavior is part of Javas Event Handling mechanism and is included in the Swing GUI library.   For example, lets say we have  a JButton. If a user clicks on  the  JButton,  a  button click event is triggered, the event will be created, and it will be sent to the relevant event listener (in this case, the ActionListener). The relevant listener will have implemented code that determines the action to take when the event occurs.   Note that an event source must be paired with an event listener, or its triggering will result in no action. How Events Work Event handling in Java is comprised of two key elements: The event source, which is an object that is created when an event occurs. Java provides several types of these event sources, discussed in the section Types of Events below.The event listener, the object that listens for events and processes them when they occur. There are several types of events and listeners in Java: each type of event is tied to a corresponding listener. For this discussion, lets consider a common type of event, an action event represented by the Java class ActionEvent, which is triggered when a user clicks a button or the item of a list.   At the users action, an ActionEvent object corresponding to the relevant action is created. This object contains both the event source information and the specific action taken by the user. This event object is then passed to the corresponding ActionListener objects method:   Ã¢â‚¬â€¹void actionPerformed(ActionEvent e) This method is executed and returns the appropriate GUI response, which might be to  open or close a dialog, download a file, provide a digital signature, or any other of the myriad actions available to users in an interface. Types of Events Here are some of the most common types of events in Java: ActionEvent: Represents a graphical element is clicked, such as a button or item in a list. Related listener:  ActionListener.ContainerEvent: Represents an event that occurs to the GUIs container itself, for example, if a user adds or removes an object from the interface.  Related listener:  ContainerListener.KeyEvent: Represents an event in which the user presses, types or releases a key.  Related listener:  KeyListener.WindowEvent: Represents an event relating to a window, for example, when a window is closed, activated or deactivated.  Related listener:  WindowListener.MouseEvent: Represents any event related to a mouse, such as when a mouse is clicked or pressed.  Related listener:  MouseListener. Note that multiple listeners and event sources can interact with one another. For example, multiple events can be registered by a single listener, if they are of the same type. This means that, for a similar set of components that perform the same type of action, one event listener can handle all the events. Similarly, a single event can be bound to multiple listeners, if that suits the programs design (although that is less common).

Friday, December 20, 2019

Urban Geography The Chicago Pilsen Neighborhood - 2425 Words

Urban Geography paper Chicago Pilsen neighborhood Urban Geography paper Chicago Pilsen neighborhood Executive Summary The traditional working class nature of Pilsen is presently endangered by the gentrification of this mainly Mexican-American locality. The Pilsen Alliance, a waged peoples organization created in 1998, coupled with city geography classes at DePaul University to carry out a building list of Pilsen in order to spot and coordinate around issues connected to gentrification. Â What are trends that you have identified that are affecting this block? Property Values and Taxes The area has highly been affected by the raising taxes and other property values. The homeowners have had difficulties in buying and living in these houses because of the increased taxes. This is because the property values have gone high due to the demand causing increase in taxes. This rise is usually extended to the tenants by the landlords and they find themselves vacating the houses due to high rents. The landlords might sometimes be unable to pay the tax leading to a sell of the houses. Zoning This is when both land use and the building density gets regulate by the local government. This has attracted developers because most of the zones have been marked as under developed. Research shows that over 300 single families are in the under developed zones. This means that the developers can buy these single homes and build storeys that will accommodate many families without the

Thursday, December 12, 2019

Budget of Malaysia

Question: Analysethe budget of Malaysia for 2016. Answer: Introduction The article that has been taken up for analysis is one that highlights the budget of Malaysia for 2016. The article takes into account the speech by Najib Razak, the one which discussed the budget that highlights the governments plans to narrow its budget deficit and address the issue of the rising cost of living. The plans included the budget allocation along with the scheme for taxes, government expenditures, subsidies and handouts, Development, Oil project, Minimum wage and Macroeconomic highlights. Although the plans for each of these issues have been thoroughly created, the analysis of the issues of monetary policy and fiscal policy needs to be carried out. The analysis can be carried out with the help of two of the most widely accepted models. The classical economic model and the production possibility frontier model are the two models which can be utilized to efficiently evaluate the issues. The two models are to be used in conjunction with the issues in order to scale their f easibilities in the system of Malaysia. The two models are ones that do not provide a fixed number but instead put things on a comparative scale on the basis of the need to perform and the degree to which it is being performed. In such a case, these economic models are the perfect scales to measure the feasibility of a budget of a country. Economic Analysis Definition of the Classical Economic Model The classical economic model is a model of assessment through assessing the demand and supply where the practicality of any action or step is measured by directly comparing it with the need for performing that particular course of action(Abel and Bernanke, 2001). For example, the classical model is used in the factor of demand and supply. In such a case, the law of demand states that with all other factors remaining unchanged, the quantity of a product or service that is demanded will increase when the price has decreased. The law of supply states, with all other factors remaining unchanged, an increase in price will result in an increase in the quantity of the product or service that is supplied to the market(Basu and Kronsjo, 2009). The laws of supply and demand are one of the most important factors in identifying the degree of success that the ideas could experience. Definition of the Production Possibility Frontier Model The production possibility economic model is more of a graph based model which takes into account the productivity likelihood for the products. However, the products must possess a specific set of inputs which include technology, labor and capital(Blanchard, 2006). In such a case, the model is mainly used for commercial products. However, the model is also used to a certain degree in the analysis of the budget. The factor of tax schemes can be assessed via this model as the tax models are essentially products that are supposed to deliver certain results(Gartner, 2003). The results of the tax schemes can be considered to be products of some kind as it is something that has an effect on the budget as a whole. The effect on the budget is a factor that can be measured via a graph of this nature which measures the likelihood of the success of the initiative. Application of the theories to the issues The two theories that have just been mentioned should be used in a combination to analyze the issues of the monetary policies which include tax schemes and minimum wage. First of all, the tax schemes can be evaluated via the classical economic model and the production possibility frontier model. The tax scheme puts forth the system of levying higher taxes on income and products. However, this process can impact the overall monetary system of the government. According to the tax scheme, the income tax is to be increased to 26 percent from the earlier 25 percent(Hubbard and O'Brien, 2006). However, the tax on certain goods has also been increased. Although some tax benefit has been provided to the middle income population this process cannot be very useful as a decrease in income would severely affect the sales of goods that have higher taxes levied on them. The classical economic model thus comes to play in this scenario. The government has made the essential needs tax free. However, the taxes on certain goods and services have been increased(Krugman and Wells, 2009). This means that those goods and services would not be availed to a higher extent. Although the middle income group has been offered some tax benefits, the higher prices of goods on which taxes have been levied would act as a deterrent for the middle class. However, the majority of the government revenue generation comes from that particular class. The government has planned an allocation of RM 267.2 billion from an earlier 260.7 billion. However, with the presence of such a structure, the monetary policy of this field is supposed to take a hit. The production possibility frontier model analyzes the productivity of this scheme. The scheme is created with a view to generating greater revenue for the government. Although the government would be able to gain a significant amount of revenue out of the income tax, the higher amount of tax that is generated from the sales and services would be significant ly lost. The issue of minimum wage can also provide us with an idea of the fiscal policy. According to the budget, the minimum wage is to be increased from RM900 per month to RM1000 in peninsularMalaysia. however, it is very clear that the increase is not enough in this case(McKenzie, 2002). The classical economic model can be used in this scenario in order to measure the effectiveness of this measure. While the process does not bring about any significant change with it, this practice is set to bring about huge changes in the market prices of goods and services(Salvadori, 2003). While the increase of just RM 100 is extremely less to bring about any change in the lives of the workers, it is supposed to drive up the production costs in every sector. With such a high production cost, it is only natural that the prices of all the associated goods and services would increase. However, the increase in prices to such an extent would only create more problems for the economy(Tabb, 2004). The consump tion would be cut down by the middle class earners. In such a case, the revenue generation of the government would go down to a significant extent. The production possibility frontier is again useful in this matter. It can be used to measure the possibility of such a step bringing about any measurable change(Urai, 2010). The model again finds out that the step would just be a waste of resources as the step would not bring about any change in the overall system. The fiscal policy of the government itself is measurable through the production possibility of frontier. While the system gives us an idea of how to handle the resources, the fiscal policy can also be decided on the basis of how much output the scheme provides. Conclusions and recommendations The Malaysian budget came at a time when it was much needed. The various issues of tax schemes, expenditures, subsidiaries and handouts, development, oil projects and minimum wage have all been put into separate categories in order to ensure a system that takes into account all the proper application of the schemes into the various sectors. The plans for tax schemes and minimum wage are two of the most important issues to take into notice for the further development. While the tax schemes have been changed to a slight exchange, the problem that lies here are the problems in revenue generation for the government. The solution to this lies in a slight change in the tax schemes. First of all, the taxes need not be increased for the middle income groups. As for the taxes on goods and services, the amount of tax that has been increased can be extremely less on each thing. In such a case, the slight increase in prices would not be a problem for the people. In the case of a slight increase, the people could consider availing those goods and services as a slight increase in the prices would not be much of a problem for the people. Also, the taxes might be increased for the higher income groups but the middle income groups would be at a disadvantage if the taxes are increased. In such a case, the taxes for the middle income groups can remain the same. In the case of daily wages, the slight increase of the daily wages is not going to provide much of an advantage to the working class population. While the increase in wages is a welcome step, the fact remains that such a low increase is more of a disadvantage than advantage. It is because of the slight increase that traders get a reason to drive up the prices. If the minimum wage is to be increased, the wages need to be increased by a significant amount. Also, the prices for certain essentials need to be bound by laws to a fixed amount. References Abel, A. and Bernanke, B. (2001).Macroeconomics. Boston: Addison-Wesley. Basu, D. and Kronsjo, T. (2009).Economic models. Hackensack, NJ: World Scientific. Blanchard, O. (2006).Macroeconomics. Upper Saddle River, N.J.: Pearson Prentice Hall. Gartner, M. (2003).Macroeconomics. Harlow, England: Financial Times/Prentice Hall. Hubbard, R. and O'Brien, A. (2006).Macroeconomics. Upper Saddle River, N.J.: Pearson Prentice Hall. Krugman, P. and Wells, R. (2009).Macroeconomics. New York, NY: Worth Publishers. McKenzie, L. (2002).Classical general equilibrium theory. Cambridge, Mass.: MIT Press. Salvadori, N. (2003).The theory of economic growth. Cheltenham, U.K.: Edward Elgar. Tabb, W. (2004).Economic governance in the age of globalization. New York: Columbia University Press. Urai, K. (2010).Fixed points and economic equilibria. Singapore: World Scientific. Williamson, S. (2005).Macroeconomics. Boston: Pearson Addison Wesley.

Thursday, December 5, 2019

Managing Operation Essential Operating Resources

Question: Discuss about the Managing Operation for Essential Operating Resources. Answer: Introduction Practice Operations is one of the essential learning resources, which is introducing the reinforcements of the key concepts regarding the strategic decision making. It is a 3D concept, which involves game-based simulations that have been allowing the students for managing the operational activities in distribution of clothing manufacturing company. I have participated in an operational activity undertaken by a clothing manufacturing company. I have learnt that during the Practice Operations, the players are considered as the operation managers of a clothing manufacturing company. I shall critically reflect the contribution of this McGraw Hill Practice Operations Game during an operational activity. Both the positive and negative contributions will be discussed much significantly. Discussion In this current era, the internet and information technology have been offering us various tools and methods, which work as the instructor of developing few learning approaches. McGrew Stimulation game based on the Practice Operations is mainly designed for the operational activities. The players are the major responsible people here who have been managing both the physical and human resources. The game involves different types of activities like ordering raw materials and manufacturing refined clothing from these materials. The manufactured clothes are then sent to the shipping process for delivering to the clients. The game is associated with different modules, which are generally dealing with the production process issues, capacity building, and supply chain management. Apart from these segments, the modules are also defining the labour management process, customer satisfactory rate, and quality control process. Apparently, the process is quite beneficial for enhancing our learning skills. Simulation is defined as the model of reality. Baker (2012) argued that simulation will only be valuable if it is characterised by the concept called omomorphism. In one word, omomorphism is the measuring degree of authenticity of the stimulations by considering the reality. On the other hand, Vasilescu, Popa and Codrean (2013) explained that omomorphism is pointing out the number of necessary traits in reality, which are essentially needed to be taken into account. I have observed that it becomes a critical challenge for me to balance the need for simplifying the reality and maintaining the authenticity. Even though, the simulation process is providing me the idea of the proper reality, the complexity in this process may overlap the educational utility. As a learner, I have gathered benefits from using such process through different experiments based on the changes of the input values, process constraints , and parameters. However, I have experienced the changes in the output. If we discuss the cons of using such simulation games, we can find that such programmes do not really have the competitive element or any specific goal. I can infer that games are always associated with some level of competition. It has been observed that the process does not include the specific goals. In presenting the argument, Belekoukias, Garza-Reyes and Kumar (2014) implied that the programme has several positive influences. First of all, the game is quite interactive through which we are able to communicate in a transparent manner. This simulation game is connected to the players making and implementation of the choices between the available alternatives. During the time of such game, the players can be interactive and provide proper feedback in every situation (Worc.ac.uk, 2016). I have noticed that the game becomes complex, as it is absolutely open-ended. Such open-ended procedures have been allowing other strategies to take place. Due to such functionalities, this simulation game is considered as one of the most cognitively demanding games that are used for learning process. The alignment of simulations and games is often pervasive. In many of the cases, I have seen that the simulations games are associated with the decision-making process. In such process, the players or the learners have to select the apt option amongst a range of contrived environment based real scenarios. As a learner, I can observe the decision by facing the real-time scenario. While learning through such artificial game, I can connect the reality accordingly. It is important to mention that this simulation process is classified into seven genres. These genres are adventure games, role-playing games, fighting games, action games, sports games, experimental games, and strategy games. It is noted that these types of games are free from the mutual exclusiveness and are overlapped in combination. The game has been portraying more analysis on the operation management process. I have learnt that maintaining the proper time schedule is essential. We need to understand the value of time more precisely. Meeting the deadline is one of the major concerns for each of the employees. It is essential to manage the priority list. The on-time delivery of work is supposed to be the highest priority for an associate. When the clients have been receiving the works on time, it creates the positive impacts. Moreover, it determines the sense of reliability as well. Hence, it is important to maintain the timeliness-delivery, which drives towards customer satisfaction. The increasing level of the customer satisfaction helps in enhancing the loyalty senses. Eventually, it is proven to be much beneficial for strengthening the organisational reputation. In a clothing manufacturing company, we are assigned with a operational activity that involves the arrangements of the raw materials and delivering the readymade clothes to the customers. In a conference room, we performed the role-play activity for making the decision about the distribution of low-cost raw materials. I have found that the participation of the players as the managers is quite complex. The conflict occurs when different people present their diversified perspectives. However, the discussion, which has the clear link with the reality is making the decision making process quite easier. I have found that we are able to interact with each other while making any proper decision. We have even conducted the survey for generating the idea about the customers demands. In every situation, we are allowed to provide the justification or feedback. I can even mention that the maintenance of the transparency while playing the managerial role, I can gather much knowledge from others. However, I have observed that we have not received the expected output. The team management is essential for facilitating the operational management process. Moreover, the complex scenario sometimes confused us in understanding the proper scenario. Hence, I can interpret that the simulation process is associated with both the positive and negative influences. However, it is still can be taken into account as the most significant process of understanding the reality before implementing any strategic decision. In considering the effectiveness of simulation games, it is noted that the process is defined as the traditional dyadic method for teaching and learning. One receives the sense of novelty, which eventually stimulates the interests of the learners. As per my experience, it has been a promising game for me since I faced a number of difficulties along with the benefits. I have learnt that if the communication becomes less, it would be difficult for a learner to obtain the idea about the particular subject matter. On the other hand, the continuous feedback session and the analysis of the real market scenario would be accordingly beneficial for the learners. Conclusion The study has been discussing about the positive and the negative influence of McGraw Hill Practice Operation games. The associated simulation game has been connecting the real scenario of the business with the operational activities. The above discussion has been reflecting that the communication with the players is beneficial in deriving ideas about the operational activities. The connection with the real life scenario by performing the artificial activities is foreseen in this simulation process. In spite of such apparent benefits, it is noted that the outcome is not at par the expectations. In majority cases, the strategic decision becomes too complex and lack of specific goals. It becomes challenging for the players or the managers who have participated in this simulation game. However, the proper communicational transparency and the obtained ideas from the different perspectives will be helpful enough in making the strategic decisions. References Baker, L.M., 2012. Fun and Games: Connecting for learning.International Journal of Disability, Development and Education,59(1), pp.119-123. Belekoukias, I., Garza-Reyes, J.A. and Kumar, V., 2014. The impact of lean methods and tools on the operational performance of manufacturing organisations.International Journal of Production Research,52(18), pp.5346-5366. Vasilescu, C., Popa, B.M. and Codreanu, A., 2013. Challenges of integrating learning games into e-learning environments. InConference proceedings of eLearning and Software for Education (eLSE)(No. 02, pp. 121-126). Universitatea Nationala de Aparare Carol I. Worc.ac.uk, (2016). [online] Available at: https://www.worc.ac.uk/edu/documents/Affect_Based_effects_of_simulation_games_Loon.pdf [Accessed 5 Sep. 2016].